2016-03-04 66 views
0

我想在NetBeans中建立並運行一個java web應用程序。雖然建設很好,但試圖運行時,它正在顯示一條消息netbeans - build-impl.xml:1032:模塊沒有被部署(錯誤)

 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) 

如何克服此錯誤?

+0

檢查了這個問題? [build-impl.xml:1031:該模塊尚未部署](http://stackoverflow.com/q/16400810/4290096) –

+0

@JAVY是我也累了,但錯誤仍然存​​在。 – krocks

回答

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。