Is PAX Web Extender WAR incompatible with Equinox +Servletbridge?

8 views
Skip to first unread message

Pablo Beltran

unread,
Apr 28, 2021, 11:30:03 AM4/28/21
to OPS4J
Hi,

I've installed Pax Web Extender War 7.4.1 on Equinox with the ServletBridge.
.

Then I activated a simple WAB and got this error:

java.lang.ClassCastException: org.eclipse.equinox.http.servlet.internal.HttpServiceImpl cannot be cast to org.osgi.service.http.HttpService

Please see this recorded debug session:

castexception.gif

Any idea?

Pablo

Grzegorz Grzybek

unread,
Apr 28, 2021, 1:34:26 PM4/28/21
to op...@googlegroups.com
Hello

Did you install pax-web-api bundle as well? this bundle exports "org.osgi.service.http" package, so you may have "org.osgi.service.http.HttpService" interface loaded from different bundles... I'm not sure about the bundle which provides "org.eclipse.equinox.http.servlet.internal.HttpServiceImpl" class...

regards
Grzegorz Grzybek

--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/d73724ee-33ac-4274-82c5-71b046778df7n%40googlegroups.com.

Pablo Beltran

unread,
Apr 29, 2021, 12:47:48 PM4/29/21
to OPS4J
I deleted allt the org.osgi.service.http.* packages from the <Export-Package> section and rebuilt the  pax-web-api bundle and now it works! Thank you!!

Grzegorz Grzybek

unread,
Apr 30, 2021, 1:27:18 AM4/30/21
to op...@googlegroups.com
Hello

czw., 29 kwi 2021 o 18:47 Pablo Beltran <pbel...@gmail.com> napisał(a):
I deleted allt the org.osgi.service.http.* packages from the <Export-Package> section and rebuilt the  pax-web-api bundle and now it works! Thank you!!

Great! OSGi enforces some discipline, but if you comply, the project is easy to maintain.

regards
Grzegorz Grzybek
 
Reply all
Reply to author
Forward
0 new messages