PDA

View Full Version : [ubuntu] Apache & tomcat 5.5


pierre_netsource
November 12th, 2008, 08:11 AM
Could somebody please help me with the following:

I downloaded a .war file from sourceforge that I would like to install by dropping it in the webapps folder of tomcat.

I used synaptics to "install" tomcat and apache - but I am not sure were and how to start the tomcat service?

Secondly when I drag and drop the .war file in the usr/share/tomcat5.5/webapps folder - where the installation manual says it should (or rather it says tomcat/webapps) be - I get the following message

Error moving file: Permission denied


http://ubuntuforums.org/images/smilies/confused.gif

I would really appreciate some help

Pierre

oneloveamaru
November 12th, 2008, 10:15 PM
I never use auto deploy, it's messy and better to configure it yourself. BUT, give it a try, I haven't done it in a while, so be patient with me.

The main config file is /etc/tomcat55/server.xml. Make sure this isn't commented out:

<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

If that's good, check the permissions on that war file you downloaded. Tomcat runs as tomcat55 by default, so if it's not the owner, obviously it can't do much with that file.


Start there, let me know what you find out. You are welcome to IM me on AIM as well.