麻烦与heroku webapp-runner发动战争

时间:2013-05-01 04:43:36

标签: heroku wavemaker

我正在尝试使用Heroku教程中的指示启动非常简单的 Wavemaker战争:Deploying Tomcat-based Java Web Applications with Webapp Runner

本教程使用以下java语法来运行war:     $ java -jar target / dependency / webapp-runner.jar target / * .war

当我部署到Heroku或在本地运行此命令时,我得到了同样的错误行为。页面打开时带有永不停止的旋转计时器。该应用程序永远不会启动。

我会发布一个屏幕截图,但我显然没有足够的“堆栈溢出点”。 :(。这个link有一个附有屏幕截图的附件。

11:53:12.52>java -jar .\lib\webapp-runner.jar --port 8080 .\dist\*.war
Adding Context / for .\dist\HerokuTest.war 
Apr 30, 2013 11:54:20 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Apr 30, 2013 11:54:20 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Apr 30, 2013 11:54:20 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Apr 30, 2013 11:54:20 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Apr 30, 2013 11:54:26 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Documents and Settings\rbroersma\WaveMaker 6.5.3.Release\projects\HerokuTest\target\tomcat.8080\work\Tomcat\localhost\_\WEB-INF\lib\webapp-runner.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Apr 30, 2013 11:54:26 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Apr 30, 2013 11:54:41 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 30, 2013 11:54:41 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Apr 30, 2013 11:54:43 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'springapp'
Apr 30, 2013 11:54:43 AM org.apache.coyote.AbstractProtocol start
INFO:  Starting ProtocolHandler ["http-nio-8080"]

我有什么想法可以纠正这个问题吗?

1 个答案:

答案 0 :(得分:0)

你是对的,问题不是Heroku;它很可能是由你的构建引起的,包括servlet-api jar。看看this post,它可以帮助您解决问题。