我正在运行ubuntu 12.04 64位。我正在使用Netbeans开发Java Web应用程序。我已在netbeans中配置了tomcat7。但是,当我尝试运行Web应用程序时,出现此错误
http://localhost:8080/manager/text/deploy?config=file%3A%2Ftmp%2Fcontext6600200080241952336.xml&path=/ussdHello
/home/mungaih/NetBeansProjects/ussdHello/nbproject/build-impl.xml:1050: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 37 seconds)
指向build-impl.xml中的行是这个
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="${forceRedeploy}"/>
我什至尝试将debugmode更改为false,但未成功。服务器日志中包含以下条目
127.0.0.1 - - [08/Nov/2013:16:50:33 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:33 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:33 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:45 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:45 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:45 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:45 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:46 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:49 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:52 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:55 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:58 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:50:58 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:51:01 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:51:04 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:51:07 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:51:10 +0300] "GET /manager/text/list HTTP/1.1" 404 -
127.0.0.1 - - [08/Nov/2013:16:51:10 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext6600200080241952336.xml&path=/ussdHello$
127.0.0.1 - - [08/Nov/2013:16:51:13 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext6600200080241952336.xml&path=/ussdHello$
127.0.0.1 - - [08/Nov/2013:16:51:16 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext6600200080241952336.xml&path=/ussdHello$
127.0.0.1 - - [08/Nov/2013:16:51:19 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext6600200080241952336.xml&path=/ussdHello$
127.0.0.1 - - [08/Nov/2013:16:51:22 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext6600200080241952336.xml&path=/ussdHello$
错误可能在哪里?
我知道这会在将来对很多人有所帮助。您必须安装tomcat [v] -admin软件包才能从netbeans安装中成功部署应用程序。不确定其背后的原因。因此在运行do之前
sudo apt-get install tomcat7-admin
用您的版本替换tomcat版本。快乐的编码。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句