aspose file tools*
The moose likes Tomcat and the fly likes Unauthorized Access (Tomcat) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unauthorized Access (Tomcat)" Watch "Unauthorized Access (Tomcat)" New topic
Author

Unauthorized Access (Tomcat)

Edmund Yong
Ranch Hand

Joined: Nov 16, 2003
Posts: 164
My tomcat-users.xml file looks like this:



When I entered http://localhost:8080/manager, it prompted me for a userid/password. I entered "admin" for userid and "password", but I got a "401 Unauthorized" error.

What's wrong?

Thanks.


SCJP 1.2, SCWCD 1.4
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
Did you restart Tomcat? It doesn't pick up changes to that file from what I've seen.


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Edmund Yong
Ranch Hand

Joined: Nov 16, 2003
Posts: 164
Yes I did restart Tomcat but it was still the same. In any case I didn't even change tomcat-users.xml. It is still the same file since I installed Tomcat months ago.
Edmund Yong
Ranch Hand

Joined: Nov 16, 2003
Posts: 164
I also get a dialog box asking me for userid/password whenever I tried to access any web application deployed under webapps.
Edmund Yong
Ranch Hand

Joined: Nov 16, 2003
Posts: 164
I know what's the problem now. There is some application using port 8080. Somehow Tomcat server is still able to start up, but I get an error in catalina.log ("Address already in use: JVM_Bind:8080"). I changed Tomcat's port to 8081, and now I'm able to access my application. I have no idea who is using port 8080. I did a "netstat -b" and there is no 8080.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unauthorized Access (Tomcat)