I tried the trunk version and it seems it is not stable yet because I get the following error:

1903 [main] INFO org.mortbay.log - Started SelectChannelConnector @ 0.0.0.0:8888

1903 [main] WARN org.mortbay.log - failed [EMAIL PROTECTED]
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failure

Embedded error: Cannot invoke listener org.springframework.web.context.ContextLo
[EMAIL PROTECTED]
Class [org.apache.cocoon.core.container.spring.CocoonNamespaceHandler] does not
implement the NamespaceHandler interface
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (Defa
ultLifecycleExecutor.java:559)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:488)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (Defau
ltLifecycleExecutor.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java :322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke (Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMo
jo.java:296)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.
java:242)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRu
nMojo.java :122)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:160
)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (Defa
ultLifecycleExecutor.java:534)
        ... 16 more
Caused by: java.lang.RuntimeException: Cannot invoke listener org.springframewor
[EMAIL PROTECTED]
        at org.apache.cocoon.bootstrap.servlet.ShieldingListener.invoke (Shieldin
gListener.java:180)
        at org.apache.cocoon.bootstrap.servlet.ShieldingListener.contextInitiali
zed(ShieldingListener.java:203)
        at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.
java:368)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:957)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
341)
        at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:367
)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
37)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:101)
        at org.mortbay.jetty.Server.doStart(Server.java:235)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
37)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.
java:114)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
jo.java:285)
        ... 21 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexp
ected exception parsing XML document from ServletContext resource [/WEB-INF/appl
icationContext.xml]; nested exception is java.lang.IllegalArgumentException: Cla
ss [org.apache.cocoon.core.container.spring.CocoonNamespaceHandler ] does not imp
lement the NamespaceHandler interface
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:403)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:340)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:315)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
        at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:123)
        at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions( XmlWebApplicationContext.java:91)
        at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:283)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.cocoon.bootstrap.servlet.ShieldingListener.invoke(Shieldin
gListener.java:151)
        ... 32 more
Caused by: java.lang.IllegalArgumentException: Class [ org.apache.cocoon.core.con
tainer.spring.CocoonNamespaceHandler] does not implement the NamespaceHandler in
terface
        at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
.initHandlerMappings( DefaultNamespaceHandlerResolver.java:109)
        at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
.<init>(DefaultNamespaceHandlerResolver.java:86)
        at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
.<init>(DefaultNamespaceHandlerResolver.java:74)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createD
efaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:507)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createR
eaderContext(XmlBeanDefinitionReader.java:496)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
rBeanDefinitions( XmlBeanDefinitionReader.java:476)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:386)
        ... 45 more

On 9/18/06, Rice Yeh <[EMAIL PROTECTED]> wrote:
Oh! I just find the answer. it is still in the pom.xml.


On 9/18/06, Rice Yeh < [EMAIL PROTECTED]> wrote:
Do you know how to use the cocoon:deploy on a specifice version? In my local repository, I have 1.0.0-M1, 1.0.0-M2-SNAPSHOT, 1.0.0-SNAPSHOT.



On 9/17/06, Leszek Gawron <[EMAIL PROTECTED]> wrote:
Rice Yeh wrote:
> I tried the 2.2.0-M2-SNAPSHOT (the trunk), but I get the following error
> message. It seems that CocoonServletListener does not exist any more.
> But cocoon:deploy still have web.xml using the listener.

You have not used the latest cocoon:deploy version.

>
> [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).

I see .. the maven plugin. I thought you had a separate jetty instance.

--
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



Reply via email to