netbeans-build-impl.xml:1032:模块尚未部署(错误) [英] netbeans - build-impl.xml:1032: The module has not been deployed (error)

查看:110
本文介绍了netbeans-build-impl.xml:1032:模块尚未部署(错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在netbeans中构建和运行Java Web应用程序.虽然构建起来很好,但是尝试运行时却显示了一条消息

I am trying to build and run a java web application in netbeans. While building it was fine, but while trying to run, it is showing a message

 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)

如何克服此错误?

推荐答案

我遇到了完全相同的问题,为了解决这个问题,必须安装软件包"tomcat8-admin" .

I had exactly the same issue, in order to overcome it it's necessary to install package "tomcat8-admin".

对于debian/ubuntu:

For debian/ubuntu:

sudo apt-get install tomcat8-admin

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

Configure the file /etc/tomcat8/tomcat-users.xml with the following roles and users:

<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提示您输入用户名和密码后,您应该一切顺利.

After this netbeans will prompt you for the user and password,and you should be good to go.

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

You can also check if it is working by trying to acces http://localhost:8080/manager/html, if it prompts you for password, tomcat8-admin is installed.

这篇关于netbeans-build-impl.xml:1032:模块尚未部署(错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆