Discussion:
Tomcat Reload Problem with .zul file
Mohsen Saboorian
2009-01-09 09:25:49 UTC
Permalink
Hi,

I'm developing an application with ZK. The standard file names for ZK
page is .zul, which is an XML files being parsed and interpreted by a
filter. Whenever I change something in a zul file, Tomcat fully
reloads the module. Is this possible to specify some file extensions
for tomcat, to ignore reloading module when they are changed? For
example Tomcat doesn't reload when a JSP is changed.

Thanks,
Mohsen.
Caldarale, Charles R
2009-01-09 15:09:11 UTC
Permalink
Subject: Tomcat Reload Problem with .zul file
Whenever I change something in a zul file, Tomcat fully
reloads the module.
Don't suppose you'd want to tell us a few basics: what version of Tomcat, what JRE/JDK, what platform, and are you running Tomcat under and IDE?

What's in the <Context> element for your webapp? In particular, are there any nested <WatcheResource> elements?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Mohsen Saboorian
2009-01-09 15:23:32 UTC
Permalink
On Fri, Jan 9, 2009 at 6:39 PM, Caldarale, Charles R
Post by Caldarale, Charles R
Subject: Tomcat Reload Problem with .zul file
Whenever I change something in a zul file, Tomcat fully
reloads the module.
Don't suppose you'd want to tell us a few basics: what version of Tomcat, what JRE/JDK, what platform, and are you running Tomcat under and IDE?
What's in the <Context> element for your webapp? In particular, are there any nested <WatcheResource> elements?
- Chuck
I'm on Tomcat 6.0.13 + JDK 1.6.0 + WinXP. Eclipse's WTP is used for
managing tomcat server. Here is my <Context> element in server.xml:
<Context docBase="myapp" path="/myapp" reloadable="true"
source="org.eclipse.jst.jee.server:myapp"/>

WTP does nothing with any resource. It just deploys a resource as soon
as it's changed to tomcat webapp folder. Tomcat decides then to reload
the webapp.

Mohsen.
Caldarale, Charles R
2009-01-09 15:33:33 UTC
Permalink
Subject: Re: Tomcat Reload Problem with .zul file
I'm on Tomcat 6.0.13 + JDK 1.6.0 + WinXP. Eclipse's WTP is used for
<Context docBase="myapp" path="/myapp" reloadable="true"
source="org.eclipse.jst.jee.server:myapp"/>
This doesn't affect your problem, but the <Context> element should not be placed in server.xml; its proper location is in the webapp's META-INF/context.xml file. Note that neither the docBase nor the path attributes are allowed when the <Context> element is in the standard place. Also, there is no source attribute for <Context>.
WTP does nothing with any resource. It just deploys a resource as soon
as it's changed to tomcat webapp folder. Tomcat decides then to reload
the webapp.
The default <Context> element in conf/context.xml contains a <WatchedResource> for WEB-INF/web.xml; I suspect Eclipse is rewriting that (or possibly redeploying the .war file for the webapp) every time you change something.

What happens if you run Tomcat by itself (don't use the IDE) and edit a .zul file in the webapp? If the webapp doesn't reload, you've got an Eclipse, not Tomcat, problem.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Loading...