File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 14432
    
  23

"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 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Admin login issue