[INFO] Started configuring web.xml, resource base=C:\projects\XS\school\xs-schoo
l-cocoon\target\xs-school-cocoon
501 [main] WARN org.mortbay.log - Could not instantiate listener org.apache.coco
on.servlet.CocoonServletListener
java.lang.ClassNotFoundException : org.apache.cocoon.servlet.CocoonServletListene
r
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass (URLClassLoader.java:188)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:334)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:305)
at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.jav
a:784)
For hot deployment, it is jetty6:run 's function. It will scan webapp's change if I have the following configuration in the pom.xml (I have scanIntervalSeconds set to 10 seconds).
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty6-plugin</artifactId>
<version> 6.0.0beta10</version>
<configuration>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8880</port>
<maxIdleTime>30000</maxIdleTime>
</connector>
</connectors>
<webAppSourceDirectory>target/xs-school-cocoon</webAppSourceDirectory>
<contextPath>/</contextPath>
<scanIntervalSeconds>10</scanIntervalSeconds>
</configuration>
</plugin>
Regards,
Rice
On 9/17/06, Leszek Gawron <[EMAIL PROTECTED]> wrote:
Rice Yeh wrote:
> Hi,
> At each hot deployment on jetty, I always get the following exception
> and then the whole jetty is not working anymore. Any clue?
>
> Regards,
> Rice
>
> 4583451 [Thread-5] INFO / - Error during initializing Apache Cocoon
> 2.2.0-M1 - a
did you try trunk version? LOTS have changed.
BTW: how do you hot deploy to jetty?
--
Leszek Gawron, IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
