Tomcat 6 configuration example for Ubuntu Linux?

Posted by intargc on Stack Overflow See other posts from Stack Overflow or by intargc
Published on 2010-03-14T22:20:39Z Indexed on 2010/03/14 22:25 UTC
Read the original article Hit count: 286

Filed under:
|
|

I'm very new to Tomcat and I'm having some issues figuring out how to set it up. I set it up on Ubuntu Linux and started reading and trying to follow the information given on the apache website here: http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html

Apparently I'm missing something. I have a WAR named MyWebapp.war and it's in a directory /home/mywebapp. In /etc/tomcat6/Catalina/localhost/MyWebapp.xml, I have the following line:

<Context path="/MyWebapp" docBase="/home/mywebapp" antiResourceLocking="false" />

Everything else is the default configuration that came with tomcat6 via the Ubuntu package. When I restart Tomcat and try to go to http://localhost:8080/MyWebapp, I get a 404. The WAR file isn't unpacked and nothing seems to be working.

I'm going to be deploying two Grails applications on this server with Tomcat.

Is there a more straight forward way to do this?

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about ubuntu