• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

How to set server.xml?

 
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
 
Author and all-around good cowpoke
Posts: 13078
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?
 
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic