tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Deploying .war-file in Tomcat 5.5
Date Fri, 05 Jun 2009 16:16:11 GMT
Hash: SHA1


On 6/5/2009 9:04 AM, Kai Behncke wrote:
> Thank you very much.
> When I just did "apt-get install tomcat 5.5" and I copied the .war file then
> to /var/lib/tomcat5.5/webapps
> it`s unpacked without any problems.

So, the webapps directory is really /var/lig/tomcat5.5/webapps. You were
trying /usr/lib/tomcat5.5/webapps before, which is why it didn't work.

> But if I call then
>  I don`t see anything in the browser?? 

See Chuck's response: you aren't using the right URL. Give us some
specifics (like the name of the WAR file and the url mapping for the
servlet you're trying to invoke) and we'll try to help you make contact.

> But if I copy the unpacked-sources from
> /var/lib/tomcat5.5/webapps/my_servlet
> to /usr/share/tomcat5.5-webapps/ROOT/ I get a result by doing

That's because you're re-naming your own webapp to ROOT, essentially.

> Do I need "apt-get install tomcat5.5-webapps" to see a result in the
> browser?


> And what is the difference between tomcat 5.5 and tomcat5.5-webapps?

tomcat5.5-webapps just includes the sample webapps that come with
Tomcat, probably including the default ROOT webapp.

I disagree with Chuck's complaint about this packaging: it actually
looks quite sane to me: system-installed stuff goes into
/usr/share/tomcat5.5/webapps and probably has XML context files in an
appropriate location (don't ask me where!) to load those.
/var/lib/tomcat5.5/webapps is the auto-deploy directory that mere
mortals get to use (though usually /var is read-only for non-root users,
so... wtf?).

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message