我正在尝试使用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"]
我有什么想法可以纠正这个问题吗?