This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to set server.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to set server.xml?" Watch "How to set server.xml?" New topic

How to set server.xml?

Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
I installed JBuilder6 in which there are tomcat 3 and 4.
1. When I run the startup.bat under Jbuilder6/jakarta-tomcat-4.0.1/bin and http://localhost:8080, tomcat 3 index page showed. Why not tomcat 4 index page? I set the CATALINA_HOME = C:/Jbuilder6/jakarta-tomcat-4.0.1, JAVA_HOME = C:/Jbuilder/jdk1.3.1.
2. I put a folder called "test" under Jbuilder6/jakarta-tomcat-4.0.1/webapps. "test" dir contains all jsp pages and I put the class files under WEB-INF/classes. When I run http://localhost:8080/test/index.jsp, it said file not found. How should I configure the jakarta-tomcat-4.0.1/conf/server.xml?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
1. When that happened to me it was due to CATALINA_HOME pointing at the old installation.
2. If you don't have a file named web.xml under WEB-INF, Tomcat will not recognize the test directory as containing a web application. You should not have to change anything in server.xml unless you have special requirements.
Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
1. I set the CATALINA_HOME envirnoment variable to have the path to point to the tomcat4 under Win2000. How should I let it point to the new version of tomcat?
2. I have web.xml under WEB-INFO.

How should I configure it?
Thanks for help.
Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
For Q.1, I changed the port 8080 to 8888 in server.xml of tomcat 4 and port 5555 in tomcat 3. When I input localhost:8888, tomcat 4 startup page can be loaded.
However, when I changed 8888 back to 8080 of tomcat 4 and I typed localhost:8080, tomcat 3 startup page was shown even I changed tomcat 3 with port 5555.
Any idea?
I agree. Here's the link:
subject: How to set server.xml?
It's not a secret anymore!