简体   繁体   English

Jetty 8无法在AWS EC2服务器上启动Java Web App

[英]Jetty 8 cannot launch java web-app on AWS EC2 server

I am trying to launch a war (dss-server.war) file using Jetty on Ubuntu 13.10 Server using the Amazon EC2 service. 我正在尝试使用Amazon EC2服务在Ubuntu 13.10服务器上使用Jetty启动war (dss-server.war)文件。 The project in question uses maven, java, apache-camel, spring and SIGAR. 有问题的项目使用maven,java,apache-camel,spring和SIGAR。 However the process is killed for no apparent reason at all: 但是,该过程完全没有任何明显的原因被终止:

Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
2014-02-26 22:40:48.737:INFO:oejs.Server:jetty-8.1.14.v20131031
2014-02-26 22:40:48.798:INFO:oejdp.ScanningAppProvider:Deployment monitor /home/ubuntu/jetty-distribution-8.1.14.v20131031/webapps at interval 1
2014-02-26 22:40:48.814:INFO:oejd.DeploymentManager:Deployable added: /home/ubuntu/jetty-distribution-8.1.14.v20131031/webapps/dss-server.war
2014-02-26 22:40:49.096:INFO:oejw.WebInfConfiguration:Extract jar:file:/home/ubuntu/jetty-distribution-8.1.14.v20131031/webapps/dss-server.war!/ to /tmp/jetty-0.0.0.0-8080-dss-server.war-_dss-server-any-/webapp
2014-02-26 22:41:17.170:INFO:dss-server:No Spring WebApplicationInitializer types detected on classpath
2014-02-26 22:41:19.193:INFO:dss-server:Initializing Spring root WebApplicationContext
2014-02-26 22:41:32.409:INFO:dss-server:Initializing Spring FrameworkServlet 'dss'
Killed

I am launching the project using the following command line: 我正在使用以下命令行启动该项目:

java -jar -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:PermSize=128M -XX:MaxPermSize=256M start.jar > output.txt

And the output file does not show anything incriminatory as well. 输出文件也不会显示任何可识别的内容。 What am I missing? 我想念什么?

Finally got it. 终于明白了。 The problem lies with OpenJDK. 问题出在OpenJDK上。 The previous configuration that I have mention will NOT work with openJDK (probably because Jetty does not like it). 以前的配置,我有提到会不会与OpenJDK的工作(可能是因为码头不喜欢它)。 It has to be Java from oracle. 它必须是oracle的Java。 I fixed the problem by installing Oracle's Java by following this article: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html 我通过按照以下文章安装Oracle的Java来解决此问题: http : //www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM