我已经将 Netbeans 与 Tomcat 6.0.37 一起使用了几个星期,没有任何问题。今天我安装了 Tomcat 7.0.40 并更改了 Home 文件夹。
当我在 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', 'org.apache.jasper.compiler.TldLocationsCache@6e9b86ea')
build-impl.xml:1033 是:
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
如果我将 Tomcat 主文件夹更改回版本 6,它会再次运行。这使我相信这是一个tomcat问题,但我无法弄清楚。
我确实找到了一个文件 local_access_log.[date].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