This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
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.
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>
Joined: Sep 27, 2005
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?
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 -