Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set server.xml?

 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic