我一直在使用Netbeans和Tomcat 6.0.37几个星期,现在没有问题。今天我安装了Tomcat 7.0.40,并更改了Home文件夹。Netbeans无法部署到Tomcat 7,与Tomcat 6一起工作6
当我在NetBeans中单击运行,我得到以下几点:
In-place deployment at /Users/sean/NetBeansProjects/WebApplication1/build/web
Deployment is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2F6q%2Fwn580_m52f14dh0r5j1zm0v00000gn%2FT%2Fcontext1472679556924624209.xml&path=/WebApplication1
http://localhost:8080/manager/deploy?config=file%3A%2Fvar%2Ffolders%2F6q%2Fwn580_m52f14dh0r5j1zm0v00000gn%2FT%2Fcontext1472679556924624209.xml&path=/WebApplication1
/Users/sean/NetBeansProjects/WebApplication1/nbproject/build-impl.xml:1033: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 36 seconds)
服务器日志不显示任何有益的,据我所知道的,但在这里它是:
Jun 11, 2013 3:26:58 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 11, 2013 3:26:58 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 11, 2013 3:26:58 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', '[email protected]')
build-impl.xml:1033是:
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
如果我将Tomcat Home文件夹更改回到版本6,它将再次运行。这导致我相信这是一个tomcat问题,但我无法弄清楚。
我找到了一个文件local_access_log。[日期] .txt有以下内容,是否是线索?
[my ip] - - [11/Jun/2013:15:27:54 -0700] "GET /manager/deploy?config=file%3A%2Fvar%2Ffolders%2F6q%2Fwn580_m52f14dh0r5j1zm0v00000gn%2FT%2Fcontext1472679556924624209.xml&path=/WebApplication1 HTTP/1.1" 404 1549
您可以添加您的更新作为答案,并接受它,让人们更容易找到这样的问题的解决方案 – MaVRoSCy
作为一个新的用户让我等了一天才回答。现在再来标记它是正确的: -/ – Sean256