Awesome Mark, that worked perfectly!

I'd like to actually run the app out of the war file without exploding it and I 
was able to accomplish this by setting unpackWARs="false" in the server.xml. 

I know this isn't 'preferred' but how would I go about 'hot-patching' let's say 
a JSP for the webapp in this setup? Typically I do this within the exploded 
directory and the next time the JSP is requested, it re-compiles and life is 
good.

Regarding the documentation... I think it's great. I think a concrete example 
and mentioning (with an example) that the docBase needs to be outside of the 
'webapps' directory would have prevented me from mailing the alias. I think I 
was close with what I originally had using the docs alone but it wasn't clear 
to me that the docBase needed to be outside of the appBase. 

Keep in mind I could have overlooked the area where it may clearly state this, 
it just wasn't apparent to me. It appears that you rarely want to adjust the 
default 'appBase' (webapps) and I found myself jacking with this value which 
was probably hosing up my configuration for hours prior to emailing the list.

Thanks for all your help on this and please let me know about the unpackWARs 
configuration.

Thanks!


On Mar 22, 2011, at 3:14 PM, Mark Thomas wrote:

> On 22/03/2011 21:09, Billy Bacon wrote:
>> 2nd:
>> So I then tried using an absolute path for the docBase in the Context.
> 
> Yes it will need to be absolute. Relative docBases are resolved relative
> to the Host's appBase.
> 
>> <Context docBase="/usr/local/tomcat8081/wars">
> 
> Getting closer. A docBase needs to specify the WAR or directory so
> you'll need:
> <Context docBase="/usr/local/tomcat8081/wars/onlinecourses.war">
> 
> All of this should be in the docs. If you see any scope for improvement,
> please let us know.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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

Reply via email to