This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 403 access denied on default app

 
Dennis Menis
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic