Hi all, A very simple way is to start tomcat within eclipse ( sysdeo plugin http://www.sysdeo.com/eclipse/tomcatPlugin.html ). Tomcat must be started when last version of your classes lives in the WEB-INF/classes. ( using ant )
So the sequence *MUST* be: 1: copy classes in WEB-INF/classes 2: start tomcat 3: work on *.java in eclipse. In this condition: - a: you can debug your component. - b: every changes in your code is immediatly reported in tomcat process, very fun. AFAIK 1.4 jdk classloader feature doesn-t support classes interface modification, so if you change the class signature of a class (ie your generator) by add field/method or changing something outside the body of a method you will have to stop tomcat and replay sequence (1,2,3). Don't hesitate to ask me if you encounter problem. It's work for me and it really wonderful. On Thu, 2005-01-13 at 10:43 +0100, Joachim Wackerow wrote: > I am writing a custom generator. It would be convenient to reload the > class while Cocoon is running. > > How it is possible to reload just a generator class in Cocoon 2.1.6 > running in Tomcat 5.x or 5.5, without reloading the whole Cocoon or > without restarting Tomcat (ca. 30 sec)? > > The generator class is in $TOMCAT_HOME/webapps/cocoon-2.1.6/WEB-INF/classes. > > This question was already asked in January 2003, but I didn't found a > working solution. See thread: > http://archives.real-time.com/pipermail/cocoon-users/2003-January/028203.html > > Any help is appreciated. > > Achim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > http://www.orcades.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]