I don't understand why you have the pax-web feature.

Do you have it defined in bootFeatures ? Or do you install it by hand ?

I can confirm that I don't have pax-web feature on my custom distro.

Regards
JB

On 06/13/2017 11:13 AM, t...@quarendon.net wrote:

On 13 June 2017 at 09:08 Jean-Baptiste Onofré <j...@nanthrax.net> wrote:


Hi Tom,

Here's a pom.xml to do what you want:

As far as I can see that's the same as the "minimal example" in the docs.
If I use your example, I still get errors:

2017-06-13T09:46:01,692 | ERROR | FelixDispatchQueue | 
pax-web-extender-whiteboard      | 118 - 
org.ops4j.pax.web.pax-web-extender-whiteboard - 6.0.3 | FrameworkEvent ERROR - 
org.ops4j.pax.web.pax-web-extender-whiteboard
org.osgi.framework.BundleException: Activator start error in bundle 
org.ops4j.pax.web.pax-web-extender-whiteboard [118].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2288) 
[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [?:?]
        at 
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [?:?]
        at 
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
 [?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: java.lang.ClassCastException: 
org.apache.felix.httplite.osgi.HttpServiceImpl cannot be cast to 
org.osgi.service.http.HttpService

and
2017-06-13T09:50:23,076 | ERROR | paxweb-config-2-thread-1 | Felix              
              |  -  -  | Bundle org.apache.felix.inventory [36] 
EventDispatcher: Error during dispatch. (java.lang.ClassCastException: 
org.apache.felix.httplite.osgi.HttpServiceImpl cannot be cast to 
org.osgi.service.http.HttpService)

and

2017-06-13T09:50:23,076 | ERROR | FelixDispatchQueue | inventory                
        | 36 - org.apache.felix.inventory - 1.0.4 | FrameworkEvent ERROR - 
org.apache.felix.inventory
java.lang.ClassCastException: org.apache.felix.httplite.osgi.HttpServiceImpl 
cannot be cast to org.osgi.service.http.HttpService

etc.

The "javax.servlet two chains" issue has gone. However that comes back if I specify "enterprise" instead of 
"standard" in my "bootFeatures" (investigating I had a "org.apache.karaf.features.cfg" file that 
specified some things that I had inherited from another example -- deleted that now).


This clearly indicates to be that there are just some incompatible bundles 
there. org.ops4j.pax.web.pax-web-extender-whiteboard is expecting 
org.apache.felix.httplite.osgi.HttpServiceImpl to be a 
org.osgi.service.http.HttpService when it's not, or at least not the same 
org.osgi.service.http.HttpService class.


Closing Karaf down and then starting it up again though, it still just hangs 
with no output of any kind, no logging.


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to