You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Martin Grigorov <mg...@apache.org> on 2014/02/12 14:00:13 UTC

Problems with Weld in wicket-exaamples

Hi,

While testing 6.14.0 I've hit this error when trying to run the examples
with 'mvn jetty:run':

ERROR - JettyContainer             - Unable to create JettyWeldInjector.
CDI injection will not be available in Servlets, Filters or Listeners
java.lang.IllegalArgumentException: Cannot load class for
org.jboss.weld.environment.jetty.WeldDecorator
at
org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflections.java:62)
 at
org.jboss.weld.environment.jetty.JettyContainer.initialize(JettyContainer.java:68)
at
org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:150)
 at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:733)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:233)
 at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1222)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:676)
 at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256)
 at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
 at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
 at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
 at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90)
at org.eclipse.jetty.server.Server.doStart(Server.java:260)
 at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
 at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)
 at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/jetty/servlet/ServletContextHandler$Decorator
at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:415)
at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377)
 at
org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflections.java:55)
... 42 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.servlet.ServletContextHandler$Decorator
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:415)
at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377)

Martin Grigorov
Wicket Training and Consulting

Re: Problems with Weld in wicket-exaamples

Posted by Martin Grigorov <mg...@apache.org>.
commit 632e4a37c8bacc6756a98c916abbdff37f4e7220
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Date:   Wed Feb 5 09:48:18 2014 +0100

    Upgrade Weld to 2.1.2 to suppress some warnings

diff --git a/wicket-examples/pom.xml b/wicket-examples/pom.xml
index 162536f..1cb3313 100644
--- a/wicket-examples/pom.xml
+++ b/wicket-examples/pom.xml
@@ -124,12 +124,12 @@
                <dependency>
                        <groupId>org.jboss.weld</groupId>
                        <artifactId>weld-core</artifactId>
-                       <version>2.1.0.Final</version>
+                       <version>2.1.2.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.jboss.weld.servlet</groupId>
                        <artifactId>weld-servlet-core</artifactId>
-                       <version>2.1.0.Final</version>
+                       <version>2.1.2.Final</version>
                </dependency>


Minor version update to avoid the WARNings about InjectionTarget.

Deploying the .war in Tomcat works fine, so it seems it is the integration
with Jetty 7.x

Martin Grigorov
Wicket Training and Consulting


On Wed, Feb 12, 2014 at 3:35 PM, Emond Papegaaij <emond.papegaaij@topicus.nl
> wrote:

> On Wednesday 12 February 2014 14:28:06 Martin Grigorov wrote:
> > On Wed, Feb 12, 2014 at 2:23 PM, Emond Papegaaij
> <emond.papegaaij@topicus.nl
> > > wrote:
> > >
> > > 6.13.0 has the same error in the log, but cdi works fine. I think it's
> > > only
> > > trying to tell that injection of the servlet components is not
> available,
> > > something we don't need for the examples.
> >
> > The only minor problem is that the examples don't start at all :-)
> > I.e. mvn command fails.
>
> That's weird, because it does work on wicket-6.13.0. Did anything else
> change? 6.13 already uses wicket-cdi-1.1 in the examples, so that can't be
> the problem.
>
> > > On Wednesday 12 February 2014 14:00:13 Martin Grigorov wrote:
> > > > Hi,
> > > >
> > > > While testing 6.14.0 I've hit this error when trying to run the
> examples
> > > > with 'mvn jetty:run':
> > > >
> > > > ERROR - JettyContainer             - Unable to create
> JettyWeldInjector.
> > > > CDI injection will not be available in Servlets, Filters or Listeners
> > > > java.lang.IllegalArgumentException: Cannot load class for
> > > > org.jboss.weld.environment.jetty.WeldDecorator
> > > > at
> > >
> > >
> org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflectio
> > > n
> > > s
> > >
> > > > .java:62) at
> > >
> > >
> org.jboss.weld.environment.jetty.JettyContainer.initialize(JettyContainer.
> > > ja>
> > > > va:68) at
> > >
> > >
> org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.ja
> > > va>
> > > > :150) at
> > >
> > >
> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandle
> > > r.
> > >
> > > > java:733) at
> > >
> > >
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContex
> > > t
> > > H
> > >
> > > > andler.java:233) at
> > >
> > >
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
> > > 1222)
> > >
> > > > at
> > >
> > >
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.jav
> > > a
> > >
> > > > 676) at
> > >
> > >
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455)
> > > at
> > >
> > >
> org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.ja
> > >
> > > va:
> > > > 256) at
> > >
> > >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > > .j>
> > > > ava:59) at
> > >
> > >
> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollecti
> > > on>
> > > > .java:224) at
> > >
> > >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextH
> > > an
> > >
> > > > dlerCollection.java:167) at
> > >
> > >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > > .j>
> > > > ava:59) at
> > >
> > >
> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollecti
> > > on>
> > > > .java:224) at
> > >
> > >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > > .j>
> > > > ava:59) at
> > >
> > >
> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.ja
> > >
> > > va:
> > > > 90) at org.eclipse.jetty.server.Server.doStart(Server.java:260)
> > > >
> > > >  at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
> > > >
> > > > at
> > >
> > >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > > .j>
> > > > ava:59) at
> > >
> > >
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.ja
> > > va>
> > > > :511) at
> > >
> > >
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:
>

Re: Problems with Weld in wicket-exaamples

Posted by Emond Papegaaij <em...@topicus.nl>.
On Wednesday 12 February 2014 14:28:06 Martin Grigorov wrote:
> On Wed, Feb 12, 2014 at 2:23 PM, Emond Papegaaij 
<emond.papegaaij@topicus.nl
> > wrote:
> > 
> > 6.13.0 has the same error in the log, but cdi works fine. I think it's
> > only
> > trying to tell that injection of the servlet components is not available,
> > something we don't need for the examples.
> 
> The only minor problem is that the examples don't start at all :-)
> I.e. mvn command fails.

That's weird, because it does work on wicket-6.13.0. Did anything else 
change? 6.13 already uses wicket-cdi-1.1 in the examples, so that can't be 
the problem.

> > On Wednesday 12 February 2014 14:00:13 Martin Grigorov wrote:
> > > Hi,
> > > 
> > > While testing 6.14.0 I've hit this error when trying to run the 
examples
> > > with 'mvn jetty:run':
> > > 
> > > ERROR - JettyContainer             - Unable to create JettyWeldInjector.
> > > CDI injection will not be available in Servlets, Filters or Listeners
> > > java.lang.IllegalArgumentException: Cannot load class for
> > > org.jboss.weld.environment.jetty.WeldDecorator
> > > at
> > 
> > 
org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflectio
> > n
> > s
> > 
> > > .java:62) at
> > 
> > org.jboss.weld.environment.jetty.JettyContainer.initialize(JettyContainer.
> > ja> 
> > > va:68) at
> > 
> > 
org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.ja
> > va> 
> > > :150) at
> > 
> > 
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandle
> > r.
> > 
> > > java:733) at
> > 
> > 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContex
> > t
> > H
> > 
> > > andler.java:233) at
> > 
> > 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
> > 1222)
> > 
> > > at
> > 
> > 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.jav
> > a
> > 
> > > 676) at
> > 
> > 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455)
> > at
> > 
> > 
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.ja
> > 
> > va:
> > > 256) at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollecti
> > on> 
> > > .java:224) at
> > 
> > 
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextH
> > an
> > 
> > > dlerCollection.java:167) at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollecti
> > on> 
> > > .java:224) at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.ja
> > 
> > va:
> > > 90) at org.eclipse.jetty.server.Server.doStart(Server.java:260)
> > > 
> > >  at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
> > > 
> > > at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.ja
> > va> 
> > > :511) at
> > 
> > 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:

Re: Problems with Weld in wicket-exaamples

Posted by Emond Papegaaij <em...@topicus.nl>.
On Wednesday 12 February 2014 14:28:06 Martin Grigorov wrote:
> On Wed, Feb 12, 2014 at 2:23 PM, Emond Papegaaij 
<emond.papegaaij@topicus.nl
> > wrote:
> > 
> > 6.13.0 has the same error in the log, but cdi works fine. I think it's
> > only
> > trying to tell that injection of the servlet components is not available,
> > something we don't need for the examples.
> 
> The only minor problem is that the examples don't start at all :-)
> I.e. mvn command fails.

I've just tested with wicket-6.x and the examples start just fine with 
jetty:run here.

> 
> > On Wednesday 12 February 2014 14:00:13 Martin Grigorov wrote:
> > > Hi,
> > > 
> > > While testing 6.14.0 I've hit this error when trying to run the 
examples
> > > with 'mvn jetty:run':
> > > 
> > > ERROR - JettyContainer             - Unable to create JettyWeldInjector.
> > > CDI injection will not be available in Servlets, Filters or Listeners
> > > java.lang.IllegalArgumentException: Cannot load class for
> > > org.jboss.weld.environment.jetty.WeldDecorator
> > > at
> > 
> > 
org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflectio
> > n
> > s
> > 
> > > .java:62) at
> > 
> > org.jboss.weld.environment.jetty.JettyContainer.initialize(JettyContainer.
> > ja> 
> > > va:68) at
> > 
> > 
org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.ja
> > va> 
> > > :150) at
> > 
> > 
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandle
> > r.
> > 
> > > java:733) at
> > 
> > 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContex
> > t
> > H
> > 
> > > andler.java:233) at
> > 
> > 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
> > 1222)
> > 
> > > at
> > 
> > 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.jav
> > a
> > 
> > > 676) at
> > 
> > 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455)
> > at
> > 
> > 
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.ja
> > 
> > va:
> > > 256) at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollecti
> > on> 
> > > .java:224) at
> > 
> > 
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextH
> > an
> > 
> > > dlerCollection.java:167) at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollecti
> > on> 
> > > .java:224) at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.ja
> > 
> > va:
> > > 90) at org.eclipse.jetty.server.Server.doStart(Server.java:260)
> > > 
> > >  at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
> > > 
> > > at
> > 
> > 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle
> > .j> 
> > > ava:59) at
> > 
> > 
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.ja
> > va> 
> > > :511) at
> > 
> > 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:

Re: Problems with Weld in wicket-exaamples

Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Feb 12, 2014 at 2:23 PM, Emond Papegaaij <emond.papegaaij@topicus.nl
> wrote:

> 6.13.0 has the same error in the log, but cdi works fine. I think it's only
> trying to tell that injection of the servlet components is not available,
> something we don't need for the examples.
>

The only minor problem is that the examples don't start at all :-)
I.e. mvn command fails.


>
> On Wednesday 12 February 2014 14:00:13 Martin Grigorov wrote:
> > Hi,
> >
> > While testing 6.14.0 I've hit this error when trying to run the examples
> > with 'mvn jetty:run':
> >
> > ERROR - JettyContainer             - Unable to create JettyWeldInjector.
> > CDI injection will not be available in Servlets, Filters or Listeners
> > java.lang.IllegalArgumentException: Cannot load class for
> > org.jboss.weld.environment.jetty.WeldDecorator
> > at
> >
> org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflection
> s
> > .java:62) at
> >
> org.jboss.weld.environment.jetty.JettyContainer.initialize(JettyContainer.ja
> > va:68) at
> >
>
> org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java
> > :150) at
> >
> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandle
> r.
> > java:733) at
> >
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContext
> H
> > andler.java:233) at
> >
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
> 1222)
> > at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java
> :
> > 676) at
> >
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455)
> at
> >
> org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.ja
> va:
> > 256) at
> >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> > ava:59) at
> >
>
> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection
> > .java:224) at
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextH
> an
> > dlerCollection.java:167) at
> >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> > ava:59) at
> >
>
> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection
> > .java:224) at
> >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> > ava:59) at
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.ja
> va:
> > 90) at org.eclipse.jetty.server.Server.doStart(Server.java:260)
> >  at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
> > at
> >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> > ava:59) at
> >
>
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java
> > :511) at
> >
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:3
> 6
> > 4) at
> org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516)
> > at
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB
> uildPl
> > uginManager.java:106) at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> va:2
> > 08) at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> va:1
> > 53) at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> va:1
> > 45) at
> >
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> > cycleModuleBuilder.java:84) at
> >
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> > cycleModuleBuilder.java:59) at
> >
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
> > ecycleStarter.java:183) at
> >
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
> > r.java:161) at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> >  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> >  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:57
> > ) at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl
> > .java:43) at java.lang.reflect.Method.invoke(Method.java:606)
> >  at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
> cher.ja
> > va:289) at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 229)
> >  at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau
> ncher.
>

Re: Problems with Weld in wicket-exaamples

Posted by Emond Papegaaij <em...@topicus.nl>.
6.13.0 has the same error in the log, but cdi works fine. I think it's only 
trying to tell that injection of the servlet components is not available, 
something we don't need for the examples.

On Wednesday 12 February 2014 14:00:13 Martin Grigorov wrote:
> Hi,
> 
> While testing 6.14.0 I've hit this error when trying to run the examples
> with 'mvn jetty:run':
> 
> ERROR - JettyContainer             - Unable to create JettyWeldInjector.
> CDI injection will not be available in Servlets, Filters or Listeners
> java.lang.IllegalArgumentException: Cannot load class for
> org.jboss.weld.environment.jetty.WeldDecorator
> at
> 
org.jboss.weld.environment.servlet.util.Reflections.classForName(Reflection
s
> .java:62) at
> org.jboss.weld.environment.jetty.JettyContainer.initialize(JettyContainer.ja
> va:68) at
> 
org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java
> :150) at
> 
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandle
r.
> java:733) at
> 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContext
H
> andler.java:233) at
> 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1222)
> at
> 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java
:
> 676) at
> 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455) 
at
> 
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.ja
va:
> 256) at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> ava:59) at
> 
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection
> .java:224) at
> 
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextH
an
> dlerCollection.java:167) at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> ava:59) at
> 
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection
> .java:224) at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> ava:59) at
> 
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.ja
va:
> 90) at org.eclipse.jetty.server.Server.doStart(Server.java:260)
>  at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
> ava:59) at
> 
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java
> :511) at
> 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:3
6
> 4) at 
org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516)
> at
> 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB
uildPl
> uginManager.java:106) at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
va:2
> 08) at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
va:1
> 53) at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
va:1
> 45) at
> 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:84) at
> 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:59) at
> 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
> ecycleStarter.java:183) at
> 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
> r.java:161) at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:57
> ) at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl
> .java:43) at java.lang.reflect.Method.invoke(Method.java:606)
>  at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.ja
> va:289) at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
229)
>  at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau
ncher.