Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1136314

Summary: OSGi bundles missing dependencies
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Julian Coleman <jcoleman>
Component: Build ProcessAssignee: Julian Coleman <jcoleman>
Status: CLOSED UPSTREAM QA Contact: Matej Melko <mmelko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:42:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Julian Coleman 2014-09-02 10:21:29 UTC
Installing features into Fuse shows up several instances of missing classes in the fuse log:

  Caused by: java.lang.ClassNotFoundException: org.jboss.weld.servlet.api.ServletListener not found by org.overlord.sramp.s-ramp-ui-war-fuse61 [520]
  Caused by: java.lang.ClassNotFoundException: org.picketlink.common.exceptions.ProcessingException not found by org.overlord.sramp.s-ramp-ui-war-fuse61 [520]
  Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Multimap not found by org.overlord.sramp.s-ramp-ui-war-fuse61 [520]
  Caused by: java.lang.ClassNotFoundException: org.jboss.weld.servlet.api.ServletListener not found by org.overlord.sramp.s-ramp-ui-war-fuse61 [520]
  Caused by: java.lang.ClassNotFoundException: org.picketlink.common.exceptions.ProcessingException not found by org.overlord.sramp.s-ramp-ui-war-fuse61 [520]
  Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Multimap not found by org.overlord.sramp.s-ramp-ui-war-fuse61 [520]

  Caused by: java.lang.ClassNotFoundException: org.jboss.weld.servlet.api.ServletListener not found by org.overlord.dtgov.dtgov-war-fuse61 [528]
  java.lang.ClassNotFoundException: org.jboss.weld.servlet.ConversationPropagationFilter not found by org.overlord.dtgov.dtgov-war-fuse61 [528]
  Caused by: java.lang.ClassNotFoundException: org.jboss.weld.servlet.api.ServletListener not found by org.overlord.dtgov.dtgov-ui-war-fuse61 [529]
  Caused by: java.lang.ClassNotFoundException: org.picketlink.common.exceptions.ProcessingException not found by org.overlord.dtgov.dtgov-ui-war-fuse61 [529]
  Caused by: java.lang.ClassNotFoundException: org.overlord.sramp.common.visitors.ArtifactVisitor not found by org.overlord.dtgov.dtgov-ui-war-fuse61 [529]
  Caused by: java.lang.ClassNotFoundException: org.overlord.sramp.atom.err.SrampAtomException not found by org.overlord.dtgov.dtgov-ui-war-fuse61 [529]

  Caused by: java.lang.ClassNotFoundException: org.picketlink.identity.federation.saml.v2.protocol.RequestAbstractType not found by org.overlord.rtgov.ui.overlord-rtgov-ui-war-fuse6 [464]

Comment 1 Julian Coleman 2014-09-02 10:25:03 UTC
The missing classes probably also cause:

After installing S-RAMP, other installations generate:
  ERROR: Bundle org.ops4j.pax.web.pax-web-runtime [98] ServiceRegistrationImpl:
Error ungetting service. (java.lang.IllegalStateException: !STOPPED)
  java.lang.IllegalStateException: !STOPPED

when S-RAMP is installed, which is probably caused by:

  ERROR: Bundle org.overlord.sramp.s-ramp-ui-war-fuse61 [410] EventDispatcher: E
rror during dispatch. (java.lang.NoClassDefFoundError:
com/google/common/collect/Multimap)
  java.lang.NoClassDefFoundError: com/google/common/collect/Multimap
        at org.jboss.errai.bus.server.service.ErraiServiceProxy.<init>(ErraiServ
iceProxy.java:31)

Comment 2 Julian Coleman 2014-09-02 10:26:21 UTC
If DT-Gov is installed without either RT-Gov, or S-RAMP, the following is displayed:

  Error executing command: Could not start bundle mvn:org.overlord.dtgov/dtgov-w
ar-fuse61/1.3.0.Beta3-redhat-1/war in feature(s) dtgov-war-1.3.0.Beta3-redhat-1:
Unresolved constraint in bundle org.overlord.dtgov.dtgov-war-fuse61 [297]:
Unable to resolve 297.0: missing requirement [297.0] osgi.wiring.package;
(osgi.wiring.package=org.slf4j.cal10n)

Comment 3 Jiri Sedlacek 2014-09-05 10:58:25 UTC
Julian, I was able to eliminate majority of those NoClassDefFoundErrors by adding following import packages to bundle org.overlord.sramp.s-ramp-ui-war-fuse61:

com.google.common.cache,
com.google.common.collect,
com.google.common.base,
javax.enterprise.inject.spi,
org.apache.commons.configuration.interpol,
org.jboss.logging,
org.jboss.weld.servlet.api,
org.jboss.weld.servlet.api.helpers,
org.jboss.weld.bootstrap.api,
org.jboss.weld.bootstrap.spi,
org.jboss.weld.bootstrap,
org.jboss.weld.servlet,
org.jboss.weld.bootstrap.api.helpers,
org.overlord.commons.services,
org.picketlink.common.exceptions,
org.picketlink.identity.federation.core.interfaces,
org.picketlink.identity.federation.core.saml.v2.interfaces,
org.picketlink.identity.federation.saml.v2.protocol,
org.picketlink.common.exceptions.fed,
org.picketlink.identity.federation.web.interfaces,
org.picketlink.identity.federation.web.roles


After this modification, S-ramp still doesn't start, this time with following exceptions:

2014-09-05 12:44:34,840 | ERROR | l Console Thread | s-ramp-repository-jcr-modeshape  | ?                                   ? | 471 - org.overlord.sramp.s-ramp-repository-jcr-modeshape - 0.5.0.Beta3-redhat-1 | [Modeshape JCR Repository(80)] Error during instantiation of the implementation object
java.lang.NoClassDefFoundError: Could not initialize class org.overlord.sramp.common.Sramp
	at org.overlord.sramp.repository.jcr.modeshape.ModeshapeRepository.<clinit>(ModeshapeRepository.java:64)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_40]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_40]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_40]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_40]
	at java.lang.Class.newInstance(Class.java:374)[:1.7.0_40]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:253)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:879)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:846)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:874)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:425)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:120)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:261)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:234)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)[80:org.apache.felix.scr:1.8.0.redhat-610379]
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:870)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:791)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:515)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4650)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.Felix$4.run(Felix.java:2123)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.Felix.runInContext(Felix.java:2147)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2121)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:474)[22:org.apache.karaf.features.core:2.3.0.redhat-610379]
	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:404)[22:org.apache.karaf.features.core:2.3.0.redhat-610379]
	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:400)[22:org.apache.karaf.features.core:2.3.0.redhat-610379]
	at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[26:org.apache.karaf.features.command:2.3.0.redhat-610379]
	at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)[26:org.apache.karaf.features.command:2.3.0.redhat-610379]
	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
	at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
	at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
2014-09-05 12:44:34,841 | ERROR | l Console Thread | s-ramp-repository-jcr-modeshape  | ?                                   ? | 471 - org.overlord.sramp.s-ramp-repository-jcr-modeshape - 0.5.0.Beta3-redhat-1 | [Modeshape JCR Repository(80)] Failed creating the component instance; see log for reason
2014-09-05 12:44:35,532 | INFO  | l Console Thread | HttpServiceFactoryImpl           | ?                                   ? | 98 - org.ops4j.pax.web.pax-web-runtime - 3.0.6 | Binding bundle: [org.overlord.sramp.s-ramp-server-fuse61 [472]] to http service
2014-09-05 12:44:35,546 | ERROR | pool-26-thread-1 | RegisterWebAppVisitorWC          | ?                                   ? | 241 - org.ops4j.pax.web.pax-web-extender-war - 3.0.6 | Registration exception. Skipping.
java.lang.NoClassDefFoundError: Could not initialize class org.overlord.sramp.common.Sramp
	at org.overlord.sramp.server.filters.MavenRepositoryAuthFilter.<clinit>(MavenRepositoryAuthFilter.java:48)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_40]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_40]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_40]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_40]
	at java.lang.Class.newInstance(Class.java:374)[:1.7.0_40]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorHS.newInstance(RegisterWebAppVisitorHS.java:215)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:256)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:652)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.register(WebAppPublisher.java:237)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:182)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:135)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)[karaf.jar:2.3.0.redhat-610379]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)[karaf.jar:2.3.0.redhat-610379]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[karaf.jar:2.3.0.redhat-610379]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[karaf.jar:2.3.0.redhat-610379]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)[karaf.jar:2.3.0.redhat-610379]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[karaf.jar:2.3.0.redhat-610379]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:101)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.WebObserver.deploy(WebObserver.java:213)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.WebObserver$1.doStart(WebObserver.java:175)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.extender.SimpleExtension.start(SimpleExtension.java:58)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:266)[241:org.ops4j.pax.web.pax-web-extender-war:3.0.6]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_40]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_40]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_40]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_40]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_40]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_40]
	at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]


(In reply to Julian Coleman from comment #1)
> The missing classes probably also cause:
> 
> After installing S-RAMP, other installations generate:
>   ERROR: Bundle org.ops4j.pax.web.pax-web-runtime [98]
> ServiceRegistrationImpl:
> Error ungetting service. (java.lang.IllegalStateException: !STOPPED)
>   java.lang.IllegalStateException: !STOPPED
> 
> when S-RAMP is installed, which is probably caused by:
> 
>   ERROR: Bundle org.overlord.sramp.s-ramp-ui-war-fuse61 [410]
> EventDispatcher: E
> rror during dispatch. (java.lang.NoClassDefFoundError:
> com/google/common/collect/Multimap)
>   java.lang.NoClassDefFoundError: com/google/common/collect/Multimap
>         at
> org.jboss.errai.bus.server.service.ErraiServiceProxy.<init>(ErraiServ
> iceProxy.java:31)

Comment 6 Red Hat Bugzilla 2025-02-10 03:42:55 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.