我一直在使用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