commit 632e4a37c8bacc6756a98c916abbdff37f4e7220
Author: Martin Tzvetanov Grigorov <[email protected]>
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 <[email protected]
> wrote:

> On Wednesday 12 February 2014 14:28:06 Martin Grigorov wrote:
> > On Wed, Feb 12, 2014 at 2:23 PM, Emond Papegaaij
> <[email protected]
> > > 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:
>

Reply via email to