tomcat-users mailing list archives

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

Kai,

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
> http://www.mysite.de:8180/my_servlet  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
> 
> http://www.mysite.de:8180/my_servlet

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?

No.

> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkopRMsACgkQ9CaO5/Lv0PDnNQCfWWqdfJ5MHG/9ljiiMSVusRtW
dOcAnRsDkdQ6vbpaL344923rboSj1Ars
=Kr6M
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message