469,362 Members | 2,352 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

tomcat 5.5.7 autoDeploy/reload trouble

Hi there.

I have migrated from tomcat 4.1.31 to tomcat 5.5.7
I have a setup with many virtual hosts.
I ame using the option in 5.5 to put context information
in /CATALINA_BASE/conf/[engine]/[host]/context.xml.default

in server.xml each host is defined like this

<host name="name.example.com" autoDeploy="true"... appBase="webapps"/>

and the contexts
<Context docBase="/home/xxxx/public_html" reloadable="true"/>

If the appBase in server.xml is within the docBase of the context tomcat 5.5
says no host matches name name.example.com...

But changing a /home/xxxx/public_html/WEB-INF/web.xml, does not make tomcat
redeploy the Context. the catalin_base/conf/context.xml makes web.xml a
watched resourse.

I'm thinking that the appBase=webapps, is the problem but as mentiod
changing it does not work....

What to do ? Any suggestion appriciated

TIA
Jesper
Jul 17 '05 #1
4 10875
Try this:
1. Create a directory /home/xxxx/public_html/META_INF
2. Create a file named context.xml in the directory with following
line:
<Context reloadable="true" />
************************************************** ************************
Please let me no if this solves your problem.
Viator

Jul 17 '05 #2
viator wrote:
Try this:
1. Create a directory /home/xxxx/public_html/META_INF
2. Create a file named context.xml in the directory with following
line:
<Context reloadable="true" />
************************************************** ************************
Please let me no if this solves your problem.
Viator


Did not help.

<Host name="foo" appBase=/home/foo autoDeploy="true"/>

in CATALINA_HOME/conf/Catalina/foo/context.xml.default

<Context docBase="/home/foo" reloadable="true" />

/home/foo/WEB_INF/web.xml
/home/foo/META-INF/context.xml

Still does not reload context after changes to web.xml

I can only make tomcat reload context in CATALINA_HOME/webapps ....

regards
Jul 17 '05 #3
That is exactly what happens for application outside
CATALINA_HOME\webapps directory.
I have been through same problem; so I moved my application inside
CATALINA_HOME\webapps; for now that's fine. If you get a solution
please let me know any ways.

Regards and thanks
Viator

Jul 17 '05 #4
Roland
3
I had the same problem, and I found the solution is to add the ROOT application to the directory specified in the Host element, appBase property. So you can set that property to the directory you want to, but it has to contain the ROOT subdirectory as default web app.
Jun 27 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by kimbuba | last post: by
5 posts views Thread by Tom Martin | last post: by
1 post views Thread by SPG | last post: by
reply views Thread by Liza | last post: by
1 post views Thread by Maziar Aflatoun | last post: by
1 post views Thread by oaklander | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.