• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access to Tomcat server has not been authorized.

 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am deploying a simple servlet with NetBeans IDE 6.0.
But I got tons of error.

I saw in the file tomcat-user.xml

I already set the username and password in NetBeans 6.0 as "tomcat" and "tomcat".
Why I get errors?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use the manager app, you'll need to add a new role entry in tomcat-users.xml named "manager",
Then add a new user with "manager" in the list of roles for that user.

You'll have to restart Tomcat for these changes to take effect.
 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. It does work.
But if I shut down NetBeans 6.0, I failed to start Tomcat by executing startup.bat from dos command, unless I delete this line.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What errors are being reported to the Tomcat logs?
 
TRAN THO
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

NOTE
You can edit or see usernameand password in
C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\conf\tomcat-users.xml to input username and password.
Defaul username: ide and pass auto create

[ April 07, 2008: Message edited by: TRAN THO ]
[ April 07, 2008: Message edited by: TRAN THO ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic