Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Need Help running Tomcat 5.0.28 on OS X

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed tomcat 5.0.28 on osx 10.3. java 1.4 was already preinstalled in the system.The environment variables CATALINA_HOME & JAVA_HOME properly set. I put my application "MyApp" under webapps with Test.jsp in it. After starting tomcat "http://localhost:8080" takes me to the default tomcat webapge.

when I type the page "http://localhost:8080/MyApp/Test.jsp" ,All I get a error message "Resource not available, 404-error". I am not sure why tomcat is not registering "MyApp" with the container during startup. It only works when I move the "MyApp" under "../webapps/ROOT".

Could you please let me know how to fix the application under webapp ?
Anyone know when java 5.0 will be available for OS X ?

Thanks,
Chandra.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you add a context to '<tomcat-root>/conf/server.xml'?

e.g.


Rene
 
Chandrasekar Sundaresan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No ,did not. where exacltly should I be adding the context tag on server.xml ? Any location works or it should follow a secific tag ?

Thanks,
Chandra.
 
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At the point you are at, the fact that you are on OS X is moot, so I'm going to move this to the Tomcat forum for further discussion.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Starting with version 5, the Tomcat documentation no longer recommends putting Context entries in server.xml.

You don't need to do this anyway. If the directory structure of your webapp is correct, Tomcat will do this for you.

Just make sure you have a 'WEB-INF' (case-sensitive) directory under the root directory of your app. You should also put a web.xml file under WEB-INF but it's not requried.

Example:
TOMCAT_HOME/webapps/MyApp/WEB-INF

There are some sample war files at http://simple.souther.us that you can download and drop in your webapps directory. They all have the correct directory structure and a proper web.xml file.
 
reply
    Bookmark Topic Watch Topic
  • New Topic