- From: Mark Nichols <
>
- To: "
" <
>
- Subject: [chef] Re: Re: Using `artifact` cookbook with Tomcat
- Date: Sun, 15 Feb 2015 16:43:50 -0600
>
On Feb 15, 2015, at 4:32 PM, Mark Pimentel
>
<
>
>
wrote:
>
>
You could explode the war somewhere else and symlink the current folder
>
into the webapps/foo where tomcat expects to find things.
I tried that, and it does work. However, I wasn’t happy with the idea of
having a “staging” area where the apps lived that Tomcat was symlinked to.
We’ve gotten into binds in the past by having non-standard setups.
The whole current symlink is already a departure (at least for Tomcat).
My hope is that I can use artifact to expand the app and somehow configure
Tomcat to find the expanded war.
On the surface this seems to be what a context xml file was designed for.
However I can’t get past the appbase defined on the host. The error I get
says:
WARNING: A docBase /var/lib/tomcat7/webapps/foo/current inside the host
appBase has been specified, and will be ignored
This happens whether or not I have appbase set to nil (“”) or webapps. Nor
does it matter where I put the context: I’ve tried in server.xml and in a
`foo.xml` file under `/etc/tomcat7/Catalina/localhost`
— Mark
Archive powered by MHonArc 2.6.16.