File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Apache Tomcat Manager Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Tomcat Manager Configuration " Watch "Apache Tomcat Manager Configuration " New topic

Apache Tomcat Manager Configuration

Ray Udo

Joined: Sep 27, 2005
Posts: 9
Hello All,

Internet Explorer 6.0
Apache HTTP Server 2.0.55
Tomcat 5.5
Oracle 10g
J2SE 5.0

please be patient with me...just starting out

Goal: To create and launch webapps using Tomcat Manager app, but more
immediately to launch Tomcat Manager app using the url-->

I am trying to get tomcat manager app to display to my IE browser. I
use the url http://localhost:8080/manager, it brings up an "XDB"
"Connect to Localhost" screen where it only accepts scott and tiger and
immediately goes to a page with the error HTTP 404 - File not found.

Steps I have taken:
0) Downloaded and installed Oracle 10g successfully
1) Download and installed apache successfully
2) Downloaded and installed Tomcat successfully
3) Downloaded and installed apache-ant successfully
4) Downloaded and installed J2SE 5.0 w/jre 1.5 successfully
5) With each successful step, created it's corresponding environment
6) Even wrote a little jdbc program to create and populate a users and
user_roles table

Attempts made to resolve issue:
0) Read and re-read a gazillion times the link: and
tried following setting
up the JDBCRealm instructions as well as the others.
1) After playing with the file for a long time, I even renamed the
server.xml file under
%CATALINA_HOME%\conf directory and it seems that Tomcat didn't even
2) After creating and populating the users, and user_roles table and
granting scott the
manager role, I added the line <user name="scott" password="tiger"
roles="manager" />
to the tomcat-users.xml file, still no show

-Any help would be greatly appreciated.

Thanks in advance,

Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
Maybe you simply forgot to include it, but the link should be
/manger/html not just /manager
Ajith George
Ranch Hand

Joined: Dec 22, 2005
Posts: 109
If you have downloaded a fresh tomcat and didnt do any modifications in the configurations file of tomcat and inside webapps. U better click on manager link on tomcat home page. This will ask you for networking password. Type it ! This is what you specified during the setup. Previously the default was username:manager password:manager.

Hope this will solve your problem.

SCJP 1.4, Brainbench
LinkedIn - Blog
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Martin Simons:
Maybe you simply forgot to include it, but the link should be
/manger/html not just /manager

This is correct.
The manager app has two interfaces.
The first, /manager, doesn't really have gui type page.
It is intended to be use like a command line app (with all input as querystring variables).

The second /manager/html is a more graphical version with reports and links that can be clicked on.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ray Udo

Joined: Sep 27, 2005
Posts: 9
Thank yous to Martin, Ajith, and Ben for the prompt reply to my post! I reinstalled Tomcat, followed the link like Ajith suggested, and end up with the Unauthorized page error. I used the username and password that I set during installation of Tomcat-didn't work. So, I left it alone and just used the default that was populated, "admin" for username and "" null for password-that was my last attempt. I just clicked on the installer which was already downloaded for re-installation, can anyone sense anything fishy with the file below? If not, any more ideas? Thanks.

Here is the contents of my tomcat-users.xml file:
(this file was unedited by me)
<?xml version='1.0' encoding='utf-8'?>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="" roles="admin,manager"/>
Ray Udo

Joined: Sep 27, 2005
Posts: 9
The login seems to be looking at the Oracle database for authentication. I don't know what to do, I am really lost, any ideas?

Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Originally posted by Ray Udo:
The login seems to be looking at the Oracle database for authentication. I don't know what to do, I am really lost, any ideas?


Ray, if you haven't changed the server.xml file, access to manager should be throught the tomcat users xml file.

What makes you think that the login is looking at the Oracle for authentication.

I am using Tomcat 5, so I can't test it to see if that is the problem, but I see that username 'admin' with role 'manager' has an empty password.
If you haven't already tried, try adding another user like -

<user username="user1" password="password" roles="manager"/>

and see what you get.


The future is here. It's just not evenly distributed yet. - William Gibson
Sonny Gill LinkedIn
Ray Udo

Joined: Sep 27, 2005
Posts: 9
Thanks guys,

Yes, I was right, Tomcat was looking at the oracle port for authentication that was the problem...port conflict.

I agree. Here's the link:
subject: Apache Tomcat Manager Configuration
It's not a secret anymore!