unpackwars="false" should only mean that the app runs from the packed .war
file, or so the Tomcat documentation seems to say.
I do also have a web.xml but I don't see where this comes in to the
configuration of the <Host> elements?
Andoni.
----- Original Message -----
From: "David Brown" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 11:47 AM
Subject: Re: Host & Context - Unpacking of WARs
Andoni writes:
> Hello,
>
> I have two configurations: 1st one works 2nd doesn't. I want to get the
2nd> to work though as it stops .war files unpacking. Can anyone tell me howto> make the 2nd one work? The error I get is: > > Forbidden > You don't have permission to access / on this server. > > But I think that's coming from the Apache server so it isn't evengetting to> tomcat? > > Thanks, > Andoni. > > <Host name="animo.andoni.[mydomain].ie" debug="0" > appBase="webapps/animo" > unpackWARs="true"> > <Alias>andoni.[mydomain].ie</Alias> > <Context path="" > docBase="" > debug="0" > workDir="[disk_name]/apache/jakarta/tomcat/work/animo" > reloadable="false"> > </Context> > </Host> > > <Host name="animo.andoni.[mydomain].ie" debug="0" > appBase="webapps/animo.war" > unpackWARs="false"> > <Alias>andoni.[mydomain].ie</Alias> > <Context path="" > docBase="" > debug="0" > workDir="[disk_name]/apache/jakarta/tomcat/work/animo" > reloadable="false"> > </Context> > </Host> > > > -- > To unsubscribe, e-mail:<mailto:[EMAIL PROTECTED]>> For additional commands, e-mail:<mailto:[EMAIL PROTECTED]>>
Hello Andoni, so did u look at ur httpd.conf directives: <directory...,
<alias... etc? but tc is a web server too when requests r handed off from
apache. tc looks at "/" as docbase or appbase root so what u have in ur
warfile becomes /<application_context> where <application_context> is the web app u have defined 4 tc to unpack. i don't see how the web app can execute if unpackWARS="false". r u defining a web.xml at all or r u onlyinterestedin configuring server.xml? thanx, david.
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>For additional commands, e-mail:<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Hello Andoni, for sake of experimentation or argument try a minimally uncommented server.xml and go w/ ur web.xml (below WEB-INF not $CATALINE_HOME/conf/web.xml). in fact this begs the question: WEB-INF is created when the .war file is unpacked. this is the whole beauty of .ear, .war, .jar techonoly namely one word: deployment. i have 4 domains running and a lot of servlets and jsp running over the range of tc services running both http and https. i can make any number of reasonable changes, update and redeploy w/o a user so much as noticing a hiccup. all of dev is more or less directly from tc docs reflected in books, online how-to's and ml's such as this one. follow the instructions of these resource and u should succeed. that's my $0.02, david.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>