我正在运行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$
错误可能在哪里?
答案 0 :(得分:3)
我知道这将在未来帮助很多人。 您必须安装tomcat [v] -admin软件包才能从netbeans安装中成功部署应用程序。后面的内容不确定。所以在运行之前执行
sudo apt-get install tomcat7-admin
将tomcat版本替换为您的版本。 快乐的编码。