Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Tomcat Manager Configuration

 
Ray Udo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Environment:
WindowsXP
Internet Explorer 6.0
Apache HTTP Server 2.0.55
Tomcat 5.5
apache-ant-1.6.5
jdk1.5.0_06
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-->
http://localhost:8080/manager.


Problem:
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
variable
6) Even wrote a little jdbc program to create and populate a users and
user_roles table
successfully


Attempts made to resolve issue:
0) Read and re-read a gazillion times the link:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html 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
notice.
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,
Tom


Reply
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you simply forgot to include it, but the link should be
/manger/html not just /manager
 
Ajith George
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ray Udo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'?>
<tomcat-users>
<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"/>
</tomcat-users>
 
Ray Udo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks,
Ray
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks,
Ray


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.

HTH.
 
Ray Udo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys,

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

Ray
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic