WAR文件生成错误 [英] WAR file generation error

查看:87
本文介绍了WAR文件生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功完成了书店应用程序,并且到目前为止,它已经在运行.我想将应用程序打包到WAR文件中,并使其在其他计算机/环境中运行.

环境: Windows 7的 JDK 8 Maven的3.3.9 NodeJS 5.3

我运行以下命令 mvn -Pprod软件包

问题#1-Bower执行失败,通过更新https://而不是git://的git config来解决

问题#2-与Python相关的错误-我需要设置Python吗?

C:\Source\jhipster-projects\bookstore1\node_modules\utf-8-validate>if not     defined npm_config_node_gyp
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 

问题#3-与PhantomJS相关的错误,我确实仍然以相同的错误更新了PhantomJS

PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 46 of 46 SUCCESS (34.659 secs /  1.536 secs)
←[1A←[2KPhantomJS 1.9.8 (Windows 7 0.0.0): Executed 46 of 46 SUCCESS (34.659  secs / 1.536 secs)
Missing error handler on `socket`.
TypeError: sockets.forEach is not a function
at disconnectBrowsers (C:\Source\jhipster-        projects\bookstore1\node_modules\karma\lib\server.js:314:13)
at null.<anonymous> (C:\Source\jhipster-    projects\bookstore1\node_modules\karma\lib\server.js:291:7)
at emitTwo (events.js:92:20)
at emit (events.js:172:7)
at emitRunCompleteIfAllBrowsersDone (C:\Source\jhipster-   projects\bookstore1\node_modules\karma\lib\server.js:256:12)
at null.<anonymous> (C:\Source\jhipster-projects\bookstore1\node_modules\karma\lib\server.js:278:9)
at emitTwo (events.js:92:20)
at emit (events.js:172:7)
at onComplete (C:\Source\jhipster-projects\bookstore1\node_modules\karma\lib\browser.js:142:13)
at Socket.<anonymous> (C:\Source\jhipster-projects\bookstore1\node_modules\karma\lib\events.js:13:22)
at emitTwo (events.js:92:20)
at Socket.emit (events.js:172:7)
at Socket.onevent (C:\Source\jhipster-   projects\bookstore1\node_modules\socket.io\lib\socket.js:335:8)
at Socket.onpacket (C:\Source\jhipster- projects\bookstore1\node_modules\socket.io\lib\socket.js:295:12)
at Client.ondecoded (C:\Source\jhipster-projects\bookstore1\node_modules\socket.io\lib\client.js:193:14)
at Decoder.Emitter.emit (C:\Source\jhipster-projects\bookstore1\node_modules\component-emitter\index.js:134:20)

谢谢

解决方案

看来,此问题已在几小时前在Karma v0.13.19中得到解决:

https://github.com/karma-runner/karma/版本/tag/v0.13.19

https://github.com/jhipster/generator-jhipster/issues/2574

I have successfully completed the bookstore application and It's been running so far. I wanted to package the application in an WAR file and have it run of a different machine/environment.

Environment: Windows 7 JDK 8 Maven 3.3.9 NodeJS 5.3

I run the following command mvn -Pprod package

Issue #1 - Bower execution failed, resolved by updating git config for https:// instead of git://

Issue #2 -Python related errors - Do I need to setup Python?

C:\Source\jhipster-projects\bookstore1\node_modules\utf-8-validate>if not     defined npm_config_node_gyp
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 

Issue #3 - PhantomJS related errors, I did update PhantomJS still with the same errors

PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 46 of 46 SUCCESS (34.659 secs /  1.536 secs)
←[1A←[2KPhantomJS 1.9.8 (Windows 7 0.0.0): Executed 46 of 46 SUCCESS (34.659  secs / 1.536 secs)
Missing error handler on `socket`.
TypeError: sockets.forEach is not a function
at disconnectBrowsers (C:\Source\jhipster-        projects\bookstore1\node_modules\karma\lib\server.js:314:13)
at null.<anonymous> (C:\Source\jhipster-    projects\bookstore1\node_modules\karma\lib\server.js:291:7)
at emitTwo (events.js:92:20)
at emit (events.js:172:7)
at emitRunCompleteIfAllBrowsersDone (C:\Source\jhipster-   projects\bookstore1\node_modules\karma\lib\server.js:256:12)
at null.<anonymous> (C:\Source\jhipster-projects\bookstore1\node_modules\karma\lib\server.js:278:9)
at emitTwo (events.js:92:20)
at emit (events.js:172:7)
at onComplete (C:\Source\jhipster-projects\bookstore1\node_modules\karma\lib\browser.js:142:13)
at Socket.<anonymous> (C:\Source\jhipster-projects\bookstore1\node_modules\karma\lib\events.js:13:22)
at emitTwo (events.js:92:20)
at Socket.emit (events.js:172:7)
at Socket.onevent (C:\Source\jhipster-   projects\bookstore1\node_modules\socket.io\lib\socket.js:335:8)
at Socket.onpacket (C:\Source\jhipster- projects\bookstore1\node_modules\socket.io\lib\socket.js:295:12)
at Client.ondecoded (C:\Source\jhipster-projects\bookstore1\node_modules\socket.io\lib\client.js:193:14)
at Decoder.Emitter.emit (C:\Source\jhipster-projects\bookstore1\node_modules\component-emitter\index.js:134:20)

Thanks

解决方案

It looks that this issue has been resolved a few hours ago in Karma v0.13.19:

https://github.com/karma-runner/karma/releases/tag/v0.13.19

https://github.com/jhipster/generator-jhipster/issues/2574

这篇关于WAR文件生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆