我正在尝试将Tomcat 8.0与Netbeans 8.0.2连接起来,并用这两个运行项目。

我已经正确设置了Tomcat,并且从Services-> Servers中可以看到它正在运行。当我尝试构建项目时,我正在处理的项目正在构建而没有任何失败,但是当我尝试运行它时,它带有以下消息:

C:\Users\Aris\Desktop\ted\Ted_auctions\nbproject\build-impl.xml:1052: The module has not been deployed.See the server log for details.

尽管服务器日志未提供任何信息,但我正在查看build-impl.xml @第1052行,它的内容如下:

<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>


1052 line beeing a middle ..任何人都不知道为什么部署失败?很抱歉,如果其他地方都已经回答了这个问题,我还找不到其他解决方案。

提前致谢!

最佳答案

对不起,这是服务器日志,我也应该张贴此日志。

Jun 06, 2015 2:39:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 06, 2015 2:39:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 06, 2015 2:39:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@317f2eba')
Jun 06, 2015 2:41:42 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jun 06, 2015 2:41:42 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jun 06, 2015 2:41:48 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 06, 2015 2:41:48 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 06, 2015 2:41:48 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@4ba3b734')
Jun 06, 2015 4:18:29 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jun 06, 2015 4:18:29 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jun 06, 2015 7:16:35 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 06, 2015 7:16:35 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 06, 2015 7:16:35 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@13a57a45')
Jun 06, 2015 9:18:39 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jun 06, 2015 9:18:39 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jun 06, 2015 9:19:07 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 06, 2015 9:19:07 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 06, 2015 9:19:07 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5c523672')

08-26 15:34