• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

netbeans cant run the project on tomcat MacOS

 
Stefan Telefan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I Installed and removed Netbeans 6.7 (full package with glassfish and tomcat) few times on MacOS and now whenever I install it, the Tomcat package is not there anymore so I decided to install it manually and provide details into netbeans.

I installed apache-tomcat-6.0.20 in /usr/local provide account that im logged in the rw permission to whole apache directory and modified tomcat-user.xml (file content provided below) then i added /usr/local/apache-tomcat-6.0.20 into netbeans tomcat 6.0 configuration and also provided tomcat/tomcat account details to start the server. When I Run the project in netbeans it start apache tomcat correctly however than it asked be for manager authorization I noticed that Im also unable to open Tomcat Manager on the default http://localhost:8080/ using tomcat/tomcat account. Im starting apache tomcat from Netbeans application. I restarted apache tomcat after every change and also restarted MacOS once.

content of the tomcat-user.xml:

-->
<tomcat-users>
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>

Thanks
 
Stefan Telefan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

and here is the exact error that im getting:

Caused by: java.lang.IllegalStateException: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager" role in the Tomcat customizer in the Server Manager.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic