2

我正在运行 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$

错误可能在哪里?

4

1 回答 1

3

我知道这将在未来帮助很多人。您必须安装 tomcat[v]-admin 软件包才能从您的 netbeans 安装中成功部署应用程序。背后的原因不确定。所以在运行之前执行

sudo apt-get install tomcat7-admin

将 tomcat 版本替换为您的版本。快乐编码。

于 2013-11-08T14:24:54.260 回答