You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nils Leßmann <ni...@students.uni-mannheim.de> on 2002/12/29 14:24:20 UTC
class reloading?
Hi!
I dont know wether its good style but im currently using a lot of
helper classes in my logicsheets, simply because i need an ide and
hating writing my java-code directly into the xsp. Id be interested how
you folks do it, by the way.
Thing is, I have to restart tomcat everytime I recompile my external
java classes, which can be pretty time consuming. Is there a way to
reload the classes while tomcat is running?
Thanks, nils
Re: class reloading?
Posted by Frank Ridderbusch <fr...@gmx.de>.
Nils Leßmann wrote:
> Hi!
>
> I dont know wether its good style but im currently using a lot of
> helper classes in my logicsheets, simply because i need an ide and
> hating writing my java-code directly into the xsp. Id be interested how
> you folks do it, by the way.
>
> Thing is, I have to restart tomcat everytime I recompile my external
> java classes, which can be pretty time consuming. Is there a way to
> reload the classes while tomcat is running?
Well, here is, what I do. It work's with Tomcat 4.1.18, but should also work
with 4.0.4. I'm using lynx as a commandline browser and the user tomcat
must have the admin role in tomcat-users.xml.
lynx -auth tomcat:tomcat http://localhost:8080/manager/reload?path=/cewolf
Change path to whatever application you want to reload. Instead of reload,
you might try stop and start. Read the documentation for the tomcat
manager application.
And, you can explicitly configure your application in server.xml with
reloadable set to true. Something like this:
<Context path="/cocoon" docBase="cocoon" reloadable="true"/>
Still this all didn't help very much, while I fiddled a little bit with the
sendmail.xsl logicsheet. Here I had to restart tomcat everytime.
But perhaps I've overlooked something else. (Cleaning the
tomcat work directoy might also help).
--
MfG / Regards
Frank Ridderbusch
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>