File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help running Tomcat 5.0.28 on OS X

 
Chandrasekar Sundaresan
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you add a context to '<tomcat-root>/conf/server.xml'?

e.g.


Rene
 
Chandrasekar Sundaresan
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic