netbeans - build-impl.xml:1032:尚未部署模块(错误)

时间:2016-03-04 10:01:29

标签: java jsp netbeans tomcat7

我正在尝试在netbeans中构建和运行java Web应用程序。虽然构建它很好,但在尝试运行时,它正在显示一条消息

 deps-module-jar:
deps-ear-jar:
deps-jar:
Copying 83 files to /home/.../Desktop/bs/t1/build/web
Copied 22 empty directories to 11 empty directories under /home/prabhjeet/Desktop/bs/t1/build/web
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
In-place deployment at /home/..../Desktop/bs/t1/build/web
Deployment is in progress...
deploy?config=file%3A%2Ftmp%2Fcontext8772160632455666295.xml&path=/bstore
http://localhost:8080/manager/text/deploy?config=file%3A%2Ftmp%2Fcontext8772160632455666295.xml&path=/bstore
/home/.../Desktop/bs/t1/nbproject/build-impl.xml:1032: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 36 seconds)

如何克服此错误?

1 个答案:

答案 0 :(得分:0)

我有完全相同的问题,为了克服它安装包" tomcat8-admin"

对于debian / ubuntu:

sudo apt-get install tomcat8-admin

使用以下角色和用户配置文件/etc/tomcat8/tomcat-users.xml:

<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="YourUser" password="YourPassword" roles="admin-gui,manager-gui,manager-script"/>

重启:

/etc/init.d/tomcat8 restart

在此netbeans将提示您输入用户名和密码后,您应该好好去。

您还可以通过尝试访问http://localhost:8080/manager/html来检查它是否正常工作,如果它提示您输入密码,则会安装tomcat8-admin。