473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 11060
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kimbuba | last post by:
Hi all, i'm writing cause i'm not able to find any good resources about this topic. I'm programming on tomcat and i have my browser open to see changes i made. The problem is that i'd like to see...
5
by: Tom Martin | last post by:
I'm a Java Web developer NEWBIE that has inherited a website that fails every 2 hours due to poor connection pooling between Tomcat 4.0.6 and mySQL. In efforts to resolve this problem, I've...
1
by: SPG | last post by:
Hi, I am relatively new to TOMCAT, and am trying to deploy a web app using it. I have a domain name that I want to use to access my web app directly. By default, I deploy my WAR, and it deploys...
0
by: Liza | last post by:
Hi, I run Tomcat5.0.24 on Fedora Core 1. I have two hosts defined in server.xml in a following way: <Host name ="WebTest1.something.com" debug="0" appBase="webapps" unpackWARs="true"...
1
by: Maziar Aflatoun | last post by:
Hi everyone, I'm really new to jsp (and java). Is there a way to automatically pick up newly compiled class files. I have a .jsp page which calls a class file (using Beans). Everytime I modify...
0
by: Monica Ferrero | last post by:
Hi! I'm not sure if this is the most adequate mySQL list for this post. If not, please indicat me which one I should use... I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the...
2
by: rdettwyler | last post by:
I have tomcat 5.5 working on both linux and Windows. I am using the default configuration. When I copy a WAR file to webapps/, it will be autodeployed successfully but only the first time. If I...
0
by: androusm | last post by:
Hi all, I have a problem with reload my servlet with tomcat 5.0.27 My servlet is the one example of the struts "struts-example". I also make changes and want to reload it by tomcat 5.0.27. ...
1
by: oaklander | last post by:
In my Tomcat 4.1.27 local development container (on Windows XP) I cant seem to get any of my War files to deploy. War files did work in the past and now anytime I put a War file in the webapps...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.