wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Access to Tomcat server has not been authorized. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Access to Tomcat server has not been authorized." Watch "Access to Tomcat server has not been authorized." New topic
Author

Access to Tomcat server has not been authorized.

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
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

Joined: Dec 11, 2004
Posts: 13410

What errors are being reported to the Tomcat logs?
TRAN THO
Greenhorn

Joined: Apr 07, 2008
Posts: 2
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access to Tomcat server has not been authorized.