I've a really big problem. I installed the new NetBeans 8.0
and by the way doing this I also changed my Tomcat
to 7.0
. Also I set Tomcats tomcat-users.xml (../Tomcat 7.0/conf/tomcat-users.xml)
manager role and set the name and password in Tomcat options in NetBeans.
If I'm running my project now (which was running perfectly befor, but i unfortunately deleted my old environment befor the new setup) the server start but the project is not deployed on Tomcat.
If I go to localhost:8080
Tomcat server
is running. I can access Tomcat with my username and password I specified but if I try to see Tomcats Web Applications
folder in NetBeans I alway recieve the error message:
"Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in Tomcat customizer in the Server Manager."
It is not the first time I set up Netbeans with Tomcat but I never had this problem, if somebody have any idea how to solve this problem I would be really thankful.
Thanks in advance.
You can try to create or update tomcat-users.xml
in tomcathome\\conf
folder by adding manager role
<tomcat-users>
<role rolename="admin"/>
<user username="admin" password="admin" roles="manager"/>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
</tomcat-users>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.