This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Admin login issue 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 Admin login issue" Watch "Tomcat Admin login issue" New topic
Author

Tomcat Admin login issue

Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
For my Tomcat 4.1.27 Java container (on Windows server) I have to use the startup.bat and shutdown.bat to start and stop the Web Server.

I tried using the http://myserver:8080/admin/login.jsp with the correct username and password that I got from conf/tomcat-users.xml.

It gives me back a reply:
Access to requested resource has been denied

The form looks like this:


I tried to find j_security_check and there doesnt seem to be any reference to it anywhere in the Tomat folder. Please advise how I can correct this issue so I can use the Tomcat Admin GUI.
[ July 16, 2007: Message edited by: Mike Jenkins ]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

"j_security_check" is a special value that Tomcat (and any other servlet container) recognises. Why are you putting this in a "response.encodeURL(...)" call? Just try it without that:

<form method="post" action="j_security_check" name="loginForm">


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat Admin login issue
 
Similar Threads
<auth-constraint> in web.xml
Sharpen Your Pencil - PN 658
Trouble with Authentication
LoginFilter & j_security_check
Resin 3 Forms Authentication