Hi Gintare!
I must admit I am very new to cocoon.
But one question: I guess you use eclipse!? did eclipse compile the
classes into ./target/classes/ if you save the file?
And I don't know if this is necessary for this class reloading, but do
you have the plugin configuration like [1] in the pom.xml?
Regards,
Peter.
[1]
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.7</version>
<configuration>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8888</port>
<maxIdleTime>30000</maxIdleTime>
</connector>
</connectors>
<webAppSourceDirectory>${project.build.directory}/rcl/webapp</webAppSourceDirectory>
<contextPath>/</contextPath>
<systemProperties>
<systemProperty>
<name>org.apache.cocoon.mode</name>
<value>dev</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<configuration>
<archive>
<manifestEntries>
<Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
> Hello Peter,
>
> yes there's such file with content as you say:
> com.myclubbingguide.myclubbingguide.service%classes-dir=./target/classes
>
> and it refers to com.myclubbingguide.myclubbingguide.service bean in
> ./target/classes/META-INF/cocoon/spring/block-servlet-service.xml :
>
> <bean name="com.myclubbingguide.myclubbingguide.service"
> class="org.apache.cocoon.sitemap.SitemapServlet">
> <servlet:context mount-path="/myclubbingguide"
> context-path="blockcontext:/myclubbingguide/"/>
> </bean>
>
> ./target/classes exists with directories COB-INF, META-INF inside.
>
>
> Regards,
> GintarÄ—
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]