File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat 403 access denied on default app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 403 access denied on default app" Watch "Tomcat 403 access denied on default app" New topic

Tomcat 403 access denied on default app

Dennis Menis

Joined: Feb 16, 2011
Posts: 3
Hi all,

I have a strange problem that I don't understand. My Tomcat installation is 6.0.20 on Windows Server 2003 (sorry for this construct that's not my idea ;)) and if I try to open my default app under http://localhost:8080 I get the tomcat login box but I have nothing securty options in my default app? I tested this with the probe application if I remove in the probe.war the security parts in the web.xml I could connect to the probe application without login.

We have tried to update tomcat and before that we update the windows machine and sql server but after the windows updates everything was OK. After the tomcat update I get this phenomen I have tried to go back to the original tomcat version but everytime the same result.

Have anybody an idea what I do wrong?
Thanks Dennis

p.s: sorry for the bad english but I hope you understand my problem
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

what do you expect to see when you go to http://localhost:8080? are you trying to get to a webapp you wrote and configured to be the root (default) application or are you trying to get to some default app that came with tomcat? I'm thinking you are missing a role from users.xml?
Dennis Menis

Joined: Feb 16, 2011
Posts: 3
thanks for your reply.

First I get the login box from tomcat. I have configured tomcat to display our application if you go to http://localhost:8080 and not the default tomcat screen. Here you can see what we have done in the server.xml

In the web.xml of our application are no security tags set, so I think tomcat have to show our application with no security authorization. Do you have an idea what's the problem? In the above context tag I have changed the IP for database and username and password

thanks for your help.
Dennis Menis

Joined: Feb 16, 2011
Posts: 3
damn damn damn sometimes I am blind stupid and so on.

I haven't seen the security part in our application web.xml and after I saw this I add the roles and user to the user.xml and everything works fine. sorry for this.
I agree. Here's the link:
subject: Tomcat 403 access denied on default app
Similar Threads
Tomcat 5.5.9 Admin Application
Can Tomcat serve apps on two different IP addesses, both on port 80
Websphere6 Problem: Multiple Server Profiles on a single machine.
Catalina.jar issue
Weblogic to Tomcat session problem