aspose file tools*
The moose likes Tomcat and the fly likes Need Help running Tomcat 5.0.28 on OS X Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Need Help running Tomcat 5.0.28 on OS X" Watch "Need Help running Tomcat 5.0.28 on OS X" New topic
Author

Need Help running Tomcat 5.0.28 on OS X

Chandrasekar Sundaresan
Greenhorn

Joined: Dec 28, 2004
Posts: 7
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.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

did you add a context to '<tomcat-root>/conf/server.xml'?

e.g.


Rene


Regards, Rene Larsen
Dropbox Invite
Chandrasekar Sundaresan
Greenhorn

Joined: Dec 28, 2004
Posts: 7
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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help running Tomcat 5.0.28 on OS X