In Wicket 6.x Jetty is 7.x, so it is Servlet 2.5
Wicket 7 requires Servlet 3, so it uses Jetty 8.x.

Using StartExamples to run the examples locally doesn't fail with this.
I see many of these though:

WARN  - Bean                       - WELD-001533: An InjectionTarget is
created for a non-static inner class
org.apache.wicket.examples.cdi.ConversationPage1$1. It will not be possible
to produce instances of this type!
WARN  - Bean                       - WELD-001533: An InjectionTarget is
created for a non-static inner class
org.apache.wicket.examples.cdi.ConversationPage1$2. It will not be possible
to produce instances of this type!
WARN  - Bean                       - WELD-001533: An InjectionTarget is
created for a non-static inner class
org.apache.wicket.examples.cdi.AutoConversationPage1$1. It will not be
possible to produce instances of this type!
WARN  - Bean                       - WELD-001533: An InjectionTarget is
created for a non-static inner class
org.apache.wicket.examples.cdi.AutoConversationPage1$2. It will not be
possible to produce instances of this type!

I also see that the demo app for 6.x is newer/bigger than the one in master
branch.
@Emond ?

Martin Grigorov
Wicket Training and Consulting


On Mon, Feb 3, 2014 at 5:20 PM, Martijn Dashorst <[email protected]
> wrote:

> Sounds like a too old jetty. javax.servlet.DispatcherType is JEE6/servlet 3
>
> Martijn
>
>
> On Mon, Feb 3, 2014 at 5:12 PM, Sven Meier <[email protected]> wrote:
>
> > Hi all,
> >
> > I'm getting an exception when starting wicket-examples (wicket-6.x with
> > Jetty).
> >
> > Any ideas?
> >
> > Sven
> >
> > WARN  - WebAppContext              - Failed startup of context
> > o.e.j.w.WebAppContext{/,file:/home/sven/workspaces/wicket-6.
> > x/wicket/wicket-examples/src/main/webapp/},src/main/webapp
> > org.jboss.weld.exceptions.DeploymentException:
> > javax/servlet/DispatcherType
> >     at org.jboss.weld.executor.AbstractExecutorServices.
> > checkForExceptions(AbstractExecutorServices.java:66)
> >     at org.jboss.weld.executor.AbstractExecutorServices.
> > invokeAllAndCheckForExceptions(AbstractExecutorServices.java:43)
> >     at org.jboss.weld.executor.AbstractExecutorServices.
> > invokeAllAndCheckForExceptions(AbstractExecutorServices.java:51)
> >     at org.jboss.weld.bootstrap.ConcurrentBeanDeployer.createClassBeans(
> > ConcurrentBeanDeployer.java:72)
> >     at org.jboss.weld.bootstrap.BeanDeployment.createBeans(
> > BeanDeployment.java:260)
> >     at org.jboss.weld.bootstrap.WeldStartup.deployBeans(
> > WeldStartup.java:384)
> >     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(
> > WeldBootstrap.java:76)
> >     at org.jboss.weld.environment.servlet.Listener.
> > contextInitialized(Listener.java:170)
> >     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.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.eclipse.jetty.util.component.AbstractLifeCycle.
> > start(AbstractLifeCycle.java:59)
> >     at org.apache.wicket.examples.StartExamples.main(
> > StartExamples.java:74)
> > Caused by: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType
> >     at java.lang.Class.getDeclaredMethods0(Native Method)
> >     at java.lang.Class.privateGetDeclaredMethods(Class.java:2534)
> >     at java.lang.Class.getDeclaredMethods(Class.java:1855)
> >     at java.lang.Class.getEnclosingMethod(Class.java:929)
> >     at org.jboss.weld.util.reflection.Reflections.isNonStaticInnerClass(
> > Reflections.java:380)
> >     at org.jboss.weld.util.Beans.isTypeManagedBeanOrDecoratorOr
> > Interceptor(Beans.java:486)
> >     at org.jboss.weld.bootstrap.BeanDeployer.createClassBean(
> > BeanDeployer.java:233)
> >     at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.
> > doWork(ConcurrentBeanDeployer.java:74)
> >     at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.
> > doWork(ConcurrentBeanDeployer.java:72)
> >     at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(
> > IterativeWorkerTaskFactory.java:60)
> >     at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(
> > IterativeWorkerTaskFactory.java:53)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >     at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > ThreadPoolExecutor.java:1146)
> >     at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > ThreadPoolExecutor.java:615)
> >     at java.lang.Thread.run(Thread.java:701)
> > Caused by: java.lang.ClassNotFoundException: javax.servlet.DispatcherType
> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> >     at java.security.AccessController.doPrivileged(Native Method)
> >     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
> >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
>

Reply via email to