Assembly Archetype 4.2.5 Error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Assembly Archetype 4.2.5 Error

Paul Fraser
Hi,

Assembly generated from unchanged pom created by Assembly archetype 4.2.5 results in this error..

"Caused by: java.lang.IllegalStateException: HttpService must be implementing Pax-Web WebContainer!"

Is this possibly a bug or should I look elsewhere? Any guidance welcome..

Paul Fraser

   Apache Karaf (4.2.5)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

org.apache.karaf.features.internal.util.MultiException: Error restarting bundles:
     Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard [143].
     at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1005)
     at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
     at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at java.lang.Thread.run(Thread.java:748)
     Suppressed: org.osgi.framework.BundleException: Activator start error in bundle
org.ops4j.pax.web.pax-web-extender-whiteboard [143].
         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
         at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
         at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1149)
         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997)
         ... 6 more
     Caused by: java.lang.IllegalStateException: HttpService must be implementing Pax-Web WebContainer!
         at
org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.serviceChanged(ExtendedHttpServiceRuntime.java:110)
         at
org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.serviceChanged(ExtendedHttpServiceRuntime.java:44)
         at
org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService.bind(ReplaceableService.java:86)
         at
org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService$Customizer.addingService(ReplaceableService.java:105)
         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
         at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
         at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
         at
org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService.start(ReplaceableService.java:72)
         at
org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.start(ExtendedHttpServiceRuntime.java:155)
         at org.ops4j.pax.web.extender.whiteboard.internal.Activator.start(Activator.java:98)
         at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
         ... 12 more
karaf@root()>
org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting for service
org.apache.karaf.features.BootFinished

     at org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(ServiceLookup.java:199)
     at org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(ServiceLookup.java:136)
     at org.ops4j.pax.exam.inject.internal.ServiceInjector.injectField(ServiceInjector.java:89)
     at org.ops4j.pax.exam.inject.internal.ServiceInjector.injectDeclaredFields(ServiceInjector.java:69)
     at org.ops4j.pax.exam.inject.internal.ServiceInjector.injectFields(ServiceInjector.java:61)
     at
org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.createTest(ContainerTestRunner.java:68)
     at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
     at
org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
     at
org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
     at
org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:43)
     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     at
org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
     at
org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
     at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at
org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:85)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
     at sun.rmi.transport.Transport$1.run(Transport.java:200)
     at sun.rmi.transport.Transport$1.run(Transport.java:197)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:835)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at java.lang.Thread.run(Thread.java:748)

Reply | Threaded
Open this post in threaded view
|

Re: Assembly Archetype 4.2.5 Error

jbonofre
Hi Paul,

thanks for the report, I will fix that.

I'm also update the archetypes according to the examples.

I'm not a big fan of archetypes, I prefer examples. Especially with the
new gradle plugins coming, the archetypes are use less here.

Regards
JB

On 30/05/2019 12:55, Paul Fraser wrote:

> Hi,
>
> Assembly generated from unchanged pom created by Assembly archetype
> 4.2.5 results in this error..
>
> "Caused by: java.lang.IllegalStateException: HttpService must be
> implementing Pax-Web WebContainer!"
>
> Is this possibly a bug or should I look elsewhere? Any guidance welcome..
>
> Paul Fraser
>
>   Apache Karaf (4.2.5)
>
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> org.apache.karaf.features.internal.util.MultiException: Error restarting
> bundles:
>     Activator start error in bundle
> org.ops4j.pax.web.pax-web-extender-whiteboard [143].
>     at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1005)
>
>     at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
>
>     at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
>
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>
>     at java.lang.Thread.run(Thread.java:748)
>     Suppressed: org.osgi.framework.BundleException: Activator start
> error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard [143].
>         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
>         at
> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
>
>         at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1149)
>
>         at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997)
>
>         ... 6 more
>     Caused by: java.lang.IllegalStateException: HttpService must be
> implementing Pax-Web WebContainer!
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.serviceChanged(ExtendedHttpServiceRuntime.java:110)
>
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.serviceChanged(ExtendedHttpServiceRuntime.java:44)
>
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService.bind(ReplaceableService.java:86)
>
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService$Customizer.addingService(ReplaceableService.java:105)
>
>         at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>
>         at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>
>         at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
>         at
> org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
>
>         at
> org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
>         at
> org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService.start(ReplaceableService.java:72)
>
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.start(ExtendedHttpServiceRuntime.java:155)
>
>         at
> org.ops4j.pax.web.extender.whiteboard.internal.Activator.start(Activator.java:98)
>
>         at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
>
>         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
>         ... 12 more
> karaf@root()>
> org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting
> for service org.apache.karaf.features.BootFinished
>
>     at
> org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(ServiceLookup.java:199)
>
>     at
> org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(ServiceLookup.java:136)
>
>     at
> org.ops4j.pax.exam.inject.internal.ServiceInjector.injectField(ServiceInjector.java:89)
>
>     at
> org.ops4j.pax.exam.inject.internal.ServiceInjector.injectDeclaredFields(ServiceInjector.java:69)
>
>     at
> org.ops4j.pax.exam.inject.internal.ServiceInjector.injectFields(ServiceInjector.java:61)
>
>     at
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.createTest(ContainerTestRunner.java:68)
>
>     at
> org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
>
>     at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>
>     at
> org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
>
>     at
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
>
>     at
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
>
>     at
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:43)
>
>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>     at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>     at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>     at
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
>
>     at
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
>
>     at
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
>
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at
> org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:85)
>
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
>     at sun.rmi.transport.Transport$1.run(Transport.java:200)
>     at sun.rmi.transport.Transport$1.run(Transport.java:197)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
>     at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
>     at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:835)
>
>     at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
>
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
>
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>
>     at java.lang.Thread.run(Thread.java:748)
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com