You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Sven Meier <sv...@meiers.net> on 2014/02/03 17:12:04 UTC

java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

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.isTypeManagedBeanOrDecoratorOrInterceptor(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)

Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Emond Papegaaij <em...@topicus.nl>.
Ok, I wasn't aware of any changes in the either of the examples. All I did 
was update the code to work with 1.1. I'll see if I can find the time to 
migrate the 6.x examples to 7 somewhere this week.

Best regards,
Emond

On Wednesday 05 February 2014 09:20:13 Martin Grigorov wrote:
> Sorry, I wasn't very clear.
> In the demo app of CDI in 6.x I see these links:
> 
>    - Injection
> 
Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket
.exa
> mples.cdi.InjectionPage> - Conversation Propagation
> 
Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket
.exam
> ples.cdi.ConversationPage1> - Automatic Conversation Management
> 
Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket
.exam
> ples.cdi.AutoConversationPage1>
> 
> In the one for 7.x:
> 
>    - Injection Example <http://localhost:8080/cdi/injection>
>    - Conversation Propagation
> Example<http://localhost:8080/cdi/conversation>
> 
> So there is something new in 6.x that is not ported to 7.x
> 
> Martin Grigorov
> Wicket Training and Consulting
> 
> 
> On Tue, Feb 4, 2014 at 1:53 PM, Emond Papegaaij
> 
> <em...@topicus.nl>wrote:
> > These warnings are caused by a slightly outdated version of weld. The 
log-
> > level for these warnings is changed from warn to debug in newer 
versions.
> > I don't know what could explain the difference in size. Did you compare
> > the
> > contents?
> > 
> > Emond
> > 
> > On Monday 03 February 2014 17:43:19 Martin Grigorov wrote:
> > > 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
> > 
> > <martijn.dashorst@gmail.com
> > 
> > > > 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 <sv...@meiers.net>
> > 
> > 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)
> > > > > 

Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Sven Meier <sv...@meiers.net>.
Reverted the change: of course the other wicket projects still get a 
reference to javax.servlet-api 2.5 in Eclipse :(.

Sven

On 02/05/2014 12:00 PM, Sven Meier wrote:
> Hi Martin,
>
> the problem shows up when running from Eclipse only.
>
> I've fixed the issue by 'excluding' the dependency to 
> javax.servlet-api 2.5 in wicket-examples.
>
> Regards
> Sven
>
> On 02/05/2014 09:22 AM, Martin Grigorov wrote:
>> About the problem reported by Sven - I think it is OK to upgrade the
>> version of Jetty for the examples to 8.1.x so it supports Servlet 3.0 
>> for
>> the apps that require it.
>> But as I said I don't experience this problem here. Maybe Sven 
>> deploys the
>> .war in a standalone Jetty - in this case the change won't have effect.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Wed, Feb 5, 2014 at 9:20 AM, Martin Grigorov 
>> <mg...@apache.org>wrote:
>>
>>> Sorry, I wasn't very clear.
>>> In the demo app of CDI in 6.x I see these links:
>>>
>>>     - Injection 
>>> Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.InjectionPage>
>>>     - Conversation Propagation 
>>> Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.ConversationPage1>
>>>     - Automatic Conversation Management 
>>> Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.AutoConversationPage1>
>>>
>>> In the one for 7.x:
>>>
>>>     - Injection Example <http://localhost:8080/cdi/injection>
>>>     - Conversation Propagation 
>>> Example<http://localhost:8080/cdi/conversation>
>>>
>>> So there is something new in 6.x that is not ported to 7.x
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>>
>>>
>>> On Tue, Feb 4, 2014 at 1:53 PM, Emond Papegaaij <
>>> emond.papegaaij@topicus.nl> wrote:
>>>
>>>> These warnings are caused by a slightly outdated version of weld. 
>>>> The log-
>>>> level for these warnings is changed from warn to debug in newer 
>>>> versions.
>>>> I don't know what could explain the difference in size. Did you 
>>>> compare
>>>> the
>>>> contents?
>>>>
>>>> Emond
>>>>
>>>> On Monday 03 February 2014 17:43:19 Martin Grigorov wrote:
>>>>> 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
>>>> <martijn.dashorst@gmail.com
>>>>>> 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 <sv...@meiers.net>
>>>> 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)
>>>
>


Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Sven Meier <sv...@meiers.net>.
Hi Martin,

the problem shows up when running from Eclipse only.

I've fixed the issue by 'excluding' the dependency to javax.servlet-api 
2.5 in wicket-examples.

Regards
Sven

On 02/05/2014 09:22 AM, Martin Grigorov wrote:
> About the problem reported by Sven - I think it is OK to upgrade the
> version of Jetty for the examples to 8.1.x so it supports Servlet 3.0 for
> the apps that require it.
> But as I said I don't experience this problem here. Maybe Sven deploys the
> .war in a standalone Jetty - in this case the change won't have effect.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Wed, Feb 5, 2014 at 9:20 AM, Martin Grigorov <mg...@apache.org>wrote:
>
>> Sorry, I wasn't very clear.
>> In the demo app of CDI in 6.x I see these links:
>>
>>     - Injection Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.InjectionPage>
>>     - Conversation Propagation Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.ConversationPage1>
>>     - Automatic Conversation Management Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.AutoConversationPage1>
>>
>> In the one for 7.x:
>>
>>     - Injection Example <http://localhost:8080/cdi/injection>
>>     - Conversation Propagation Example<http://localhost:8080/cdi/conversation>
>>
>> So there is something new in 6.x that is not ported to 7.x
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Tue, Feb 4, 2014 at 1:53 PM, Emond Papegaaij <
>> emond.papegaaij@topicus.nl> wrote:
>>
>>> These warnings are caused by a slightly outdated version of weld. The log-
>>> level for these warnings is changed from warn to debug in newer versions.
>>> I don't know what could explain the difference in size. Did you compare
>>> the
>>> contents?
>>>
>>> Emond
>>>
>>> On Monday 03 February 2014 17:43:19 Martin Grigorov wrote:
>>>> 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
>>> <martijn.dashorst@gmail.com
>>>>> 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 <sv...@meiers.net>
>>> 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)
>>


Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Martin Grigorov <mg...@apache.org>.
About the problem reported by Sven - I think it is OK to upgrade the
version of Jetty for the examples to 8.1.x so it supports Servlet 3.0 for
the apps that require it.
But as I said I don't experience this problem here. Maybe Sven deploys the
.war in a standalone Jetty - in this case the change won't have effect.

Martin Grigorov
Wicket Training and Consulting


On Wed, Feb 5, 2014 at 9:20 AM, Martin Grigorov <mg...@apache.org>wrote:

> Sorry, I wasn't very clear.
> In the demo app of CDI in 6.x I see these links:
>
>    - Injection Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.InjectionPage>
>    - Conversation Propagation Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.ConversationPage1>
>    - Automatic Conversation Management Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.AutoConversationPage1>
>
> In the one for 7.x:
>
>    - Injection Example <http://localhost:8080/cdi/injection>
>    - Conversation Propagation Example<http://localhost:8080/cdi/conversation>
>
> So there is something new in 6.x that is not ported to 7.x
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Tue, Feb 4, 2014 at 1:53 PM, Emond Papegaaij <
> emond.papegaaij@topicus.nl> wrote:
>
>> These warnings are caused by a slightly outdated version of weld. The log-
>> level for these warnings is changed from warn to debug in newer versions.
>> I don't know what could explain the difference in size. Did you compare
>> the
>> contents?
>>
>> Emond
>>
>> On Monday 03 February 2014 17:43:19 Martin Grigorov wrote:
>> > 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
>> <martijn.dashorst@gmail.com
>> > > 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 <sv...@meiers.net>
>> 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)
>>
>
>

Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Martin Grigorov <mg...@apache.org>.
Sorry, I wasn't very clear.
In the demo app of CDI in 6.x I see these links:

   - Injection Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.InjectionPage>
   - Conversation Propagation
Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.ConversationPage1>
   - Automatic Conversation Management
Example<http://localhost:8080/cdi/wicket/bookmarkable/org.apache.wicket.examples.cdi.AutoConversationPage1>

In the one for 7.x:

   - Injection Example <http://localhost:8080/cdi/injection>
   - Conversation Propagation Example<http://localhost:8080/cdi/conversation>

So there is something new in 6.x that is not ported to 7.x

Martin Grigorov
Wicket Training and Consulting


On Tue, Feb 4, 2014 at 1:53 PM, Emond Papegaaij
<em...@topicus.nl>wrote:

> These warnings are caused by a slightly outdated version of weld. The log-
> level for these warnings is changed from warn to debug in newer versions.
> I don't know what could explain the difference in size. Did you compare the
> contents?
>
> Emond
>
> On Monday 03 February 2014 17:43:19 Martin Grigorov wrote:
> > 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
> <martijn.dashorst@gmail.com
> > > 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 <sv...@meiers.net>
> 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)
>

Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Emond Papegaaij <em...@topicus.nl>.
These warnings are caused by a slightly outdated version of weld. The log-
level for these warnings is changed from warn to debug in newer versions. 
I don't know what could explain the difference in size. Did you compare the 
contents?

Emond

On Monday 03 February 2014 17:43:19 Martin Grigorov wrote:
> 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 
<martijn.dashorst@gmail.com
> > 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 <sv...@meiers.net> 
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)

Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Martin Grigorov <mg...@apache.org>.
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 <martijn.dashorst@gmail.com
> 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 <sv...@meiers.net> 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
>

Re: java.lang.NoClassDefFoundError: javax/servlet/DispatcherType

Posted by Martijn Dashorst <ma...@gmail.com>.
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 <sv...@meiers.net> 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