473,609 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.def ault

in server.xml each host is defined like this

<host name="name.exam ple.com" autoDeploy="tru e"... appBase="webapp s"/>

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

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

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 11071
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="tru e" />
*************** *************** *************** *************** **************
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="tru e" />
*************** *************** *************** *************** **************
Please let me no if this solves your problem.
Viator


Did not help.

<Host name="foo" appBase=/home/foo autoDeploy="tru e"/>

in CATALINA_HOME/conf/Catalina/foo/context.xml.def ault

<Context docBase="/home/foo" reloadable="tru e" />

/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\w ebapps directory.
I have been through same problem; so I moved my application inside
CATALINA_HOME\w ebapps; 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 New Member
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
9504
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 changes immediatly, is there a way to do this, but using start-stop-reload from tomcato manager admin? I tried to add this to server.xml <Context path="/info" docBase="info" debug="0" reloadable="true">
5
6458
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 created another replica DEVELOPMENT website and upgraded it to Tomcat 4.1.27. I was told this version of Tomcat supports Database Connection Pooling (DBCP) better than previous versions. I followed the instructions as listed at:...
1
10271
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 to webapps/myApp. To access this I have to use a url like http://mydomain.com/myApp?someparam=1 What I want to do is use this: http://mydomain.com?someparam=1
0
1840
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" autoDeploy="true" xmlValidation="false" lNamespaceAware="false"> <Context path="" docBase="WebTest1" debug="5"/>
1
1927
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 the .java file my .jsp complains of missing methods...etc. Once I restart the service everything becomes fine. Is there a way to setup Apache Tomcat to automatically pickup the changes in my class. Thank you
0
3669
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 mysql- connector-java-2.0.14-bin.jar in commons/lib. The application runs normally, and usually about once or twice a day I get this exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server configuration denies access to data...
2
4315
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 "touch" that same WAR file, the autodeploy will fail, leaving only the webapps//.log file, which it cannot remove. I have to stop tomcat, remove that file, then restart tomcat, touch the WAR file again and only then will it autodeploy. What am I doing...
0
1350
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. So I tried it with ant and I 've following relevant entrys in the build.xml file : <project name="My Project" default="compile" basedir=".">
1
1510
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 directory and stop and start Tomcat the War file doesnt create the new webapp directory. The autoDeploy is set to true in the conf/server.xml. Please advise how I can get War file to work?
0
8091
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8408
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7024
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6064
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5524
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4032
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.