Hi Gintare, did you specify a file 'rcl.properties' near the pom.xml with com.myclubbingguide.myclubbingguide.service%classes-dir=./target/classes ?
Regards, Peter. > Hello, > > I'm using Cocoon 2.2, with default Jetty, OS - Ubuntu. My cocoon came > with Cocoon Maven 2 plugin, in pom.xml: > > <plugins> > <plugin> > <groupId>org.apache.cocoon</groupId> > <artifactId>cocoon-maven-plugin</artifactId> > <version>1.0.0-M2</version> > <executions> > <execution> > <id>prepare</id> > <phase>compile</phase> > <goals> > <goal>prepare</goal> > </goals> > </execution> > </executions> > </plugin> > > I checked > http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1297_1_1.html > , set up of this plug was done correctly. So, there is promise to > detect java changes without restart or rebuild in > http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1359_1_1.html > . But this feature doesn't work for me. > > I have sitemap: > > <map:actions> > <map:action name="service-tester" > src="com.myclubbingguide.myclubbingguide.TestService"> > > </map:actions> > > .... > > <map:match pattern="demo/service"> > <map:act type="service-tester"> > <map:parameter name="word" > value="{1}"/> > </map:act> > <map:generate src="demo/counter.xml"/> > <map:transform src="demo/counter.xsl"> > <map:parameter name="count" value="123"/> > <map:parameter name="word" value="hello"/> > </map:transform> > <map:serialize/> > </map:match> > > > I have class: > > public class TestService extends AbstractAction implements ThreadSafe{ > > public Map act(Redirector arg0, SourceResolver arg1, Map arg2, > String arg3, Parameters arg4) throws Exception { > > System.out.println("My try 1"); > > return null; > } > > } > > Now: > 1. starting jetty server, reload browser, output to console -> "My try > 1" , ok > 2. change in code "My try 1" to "My try 2" > 3. save TestService.java > 4. reload browser > 5. output to console -> "My try 1", why not "My try 2" ? > > After restarting my project output is correct "My try 2". > > > Thank you for replay, > Gintare > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
