pax-cdi-web-openwebbeans uses old Jetty Version (9.0.x)

Description

openwebbeans uses the Jetty Servlet Version 9.0.7.v20131107 (defined in its pom.xml) and therefore implements the JettyDecorator in an old style of the ServletContextHandler.Decorator and causes with newer versions (9.1.x and newer) this exception:

2016-01-08 10:35:04,817 | WARN | pool-41-thread-1 | AbstractLifeCycle | 175 - org.eclipse.jetty.util - 9.2.10.v20150310 | FAILED HttpServiceContext{httpContext=WebAppHttpContext{ABC - XYZ}}: java.lang.Abst
ractMethodError: org.ops4j.pax.cdi.web.openwebbeans.impl.JettyDecorator.decorate(Ljava/lang/ObjectLjava/lang/Object;
java.lang.AbstractMethodError: org.ops4j.pax.cdi.web.openwebbeans.impl.JettyDecorator.decorate(Ljava/lang/ObjectLjava/lang/Object;
at org.eclipse.jetty.servlet.ServletContextHandler$Context.createFilter(ServletContextHandler.java:1150)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:120)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:245)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[175:org.eclipse.jetty.util:9.2.10.v20150310]
at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:258)[213:org.ops4j.pax.web.pax-web-jetty:4.2.3]
at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:1047)[215:org.ops4j.pax.web.pax-web-runtime:4.2.3]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:413)[215:org.ops4j.pax.web.pax-web-runtime:4.2.3]
at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:380)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:692)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.register(WebAppPublisher.java:237)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:182)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:135)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:101)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.WebObserver.deploy(WebObserver.java:219)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.WebObserver$1.doStart(WebObserver.java:179)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.extender.SimpleExtension.start(SimpleExtension.java:59)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:280)[211:org.ops4j.pax.web.pax-web-extender-war:4.2.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_65]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]

Environment

Karaf 4.0.3 (PAX-WEB 4.2.3) and Karaf 4.0.4-SNAPSHOT (PAX-WEB 4.2.4)

Activity

Show:
Andreas Kyrmegalos
January 23, 2016, 8:53 PM

This issue also applies to pax-cdi-web-weld, since

Marc Schlegel
October 5, 2016, 2:16 PM

I think this can be closed, since pax-cdi-web-openwebbeans and pax-cdi-web-weld has been upgraded to Jetty 9.3.11.v20160721

Assignee

Guillaume Nodet

Reporter

Former user

Labels

Affects versions

Priority

Major
Configure