]
David Bosschaert resolved AS7-929.
----------------------------------
Resolution: Done
Fix pulled into jbosgi-framework master
Deploying Apache CXF-DOSGi single-bundle distro fails
-----------------------------------------------------
Key: AS7-929
URL:
https://issues.jboss.org/browse/AS7-929
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Affects Versions: 7.0.0.CR1
Reporter: David Bosschaert
Assignee: David Bosschaert
When deploying the single-bundle distribution of Apache CXF-DOSGi the deployment fails.
This bundle deploys without problems in Equinox and Felix.
The bundle being deployed is this one:
http://www.apache.org/dist/cxf/dosgi/1.2/cxf-dosgi-ri-singlebundle-distri...
Exception:
08:32:34,721 INFO [org.jboss.osgi.framework.internal.FrameworkActive] (MSC service
thread 1-3) OSGi Framework started
08:32:34,721 INFO [org.jboss.as.osgi] (MSC service thread 1-3) Installing deployment:
[cxf-dosgi-ri-singlebundle-distribution:1.2.0,location=cxf-dosgi-ri-singlebundle-distribution-1.2.jar]
08:32:34,767 INFO [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread
1-3) Install bundle: cxf-dosgi-ri-singlebundle-distribution:1.2.0
08:32:35,202 INFO [stdout] (MSC service thread 1-2) HttpService using port: 8090
08:32:35,258 INFO [cxf-dosgi-ri-singlebundle-distribution] (Thread-13)
felix.fileinstall.poll (ms) 2000
08:32:35,258 INFO [cxf-dosgi-ri-singlebundle-distribution] (Thread-13)
felix.fileinstall.dir /home/davidb/clones/jboss-as/build/target/./load
08:32:35,259 INFO [cxf-dosgi-ri-singlebundle-distribution] (Thread-13)
felix.fileinstall.debug -1
08:32:35,259 INFO [cxf-dosgi-ri-singlebundle-distribution] (Thread-13)
felix.fileinstall.bundles.new.start true
08:32:35,266 ERROR [stderr] (MSC service thread 1-2)
java.lang.ExceptionInInitializerError
08:32:35,279 ERROR [stderr] (MSC service thread 1-2) at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
08:32:35,279 ERROR [stderr] (MSC service thread 1-2) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
08:32:35,279 ERROR [stderr] (MSC service thread 1-2) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Class.newInstance0(Class.java:355)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Class.newInstance(Class.java:308)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:112)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:47)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:291)
08:32:35,280 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:217)
08:32:35,281 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:506)
08:32:35,281 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:135)
08:32:35,281 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.osgi.deployment.BundleStartTracker$1.serviceStarted(BundleStartTracker.java:107)
08:32:35,281 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1322)
08:32:35,281 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:47)
08:32:35,281 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1850)
08:32:35,282 ERROR [stderr] (MSC service thread 1-2) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
08:32:35,282 ERROR [stderr] (MSC service thread 1-2) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
08:32:35,282 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Thread.run(Thread.java:662)
08:32:35,282 ERROR [stderr] (MSC service thread 1-2) Caused by:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
08:32:35,282 ERROR [stderr] (MSC service thread 1-2) at
java.lang.String.substring(String.java:1937)
08:32:35,283 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.findModuleDynamically(HostBundleFallbackLoader.java:119)
08:32:35,283 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.loadResourceLocal(HostBundleFallbackLoader.java:104)
08:32:35,283 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.Module.getResources(Module.java:669)
08:32:35,283 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:499)
08:32:35,283 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)
08:32:35,284 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1388)
08:32:35,284 ERROR [stderr] (MSC service thread 1-2) at
java.security.AccessController.doPrivileged(Native Method)
08:32:35,284 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1407)
08:32:35,284 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1469)
08:32:35,284 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:457)
08:32:35,284 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
08:32:35,285 ERROR [stderr] (MSC service thread 1-2) at
org.ops4j.pax.web.service.internal.Activator.<clinit>(Activator.java:45)
08:32:35,285 ERROR [stderr] (MSC service thread 1-2) ... 19 more
08:32:35,342 INFO [org.apache.cxf.dosgi.topologymanager.Activator] (MSC service thread
1-2) TopologyManager: start()
08:32:35,383 ERROR [stderr] (MSC service thread 1-2)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
08:32:35,384 ERROR [stderr] (MSC service thread 1-2) at
java.lang.String.substring(String.java:1937)
08:32:35,384 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.findModuleDynamically(HostBundleFallbackLoader.java:119)
08:32:35,384 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.loadResourceLocal(HostBundleFallbackLoader.java:104)
08:32:35,384 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.Module.getResources(Module.java:669)
08:32:35,384 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:499)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
com.sun.naming.internal.VersionHelper12$5.run(VersionHelper12.java:149)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
java.security.AccessController.doPrivileged(Native Method)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
com.sun.naming.internal.VersionHelper12.getResources(VersionHelper12.java:146)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
com.sun.naming.internal.ResourceManager.getApplicationResources(ResourceManager.java:468)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:159)
08:32:35,385 ERROR [stderr] (MSC service thread 1-2) at
javax.naming.InitialContext.init(InitialContext.java:219)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
javax.naming.InitialContext.<init>(InitialContext.java:175)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.naming.InitialContextFactoryService.getValue(InitialContextFactoryService.java:59)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.naming.InitialContextFactoryService.getValue(InitialContextFactoryService.java:41)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1097)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.ServiceManagerPlugin$3.getValue(ServiceManagerPlugin.java:295)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.ServiceManagerPlugin.getServiceReferencesInternal(ServiceManagerPlugin.java:302)
08:32:35,386 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.ServiceManagerPlugin.getServiceReferences(ServiceManagerPlugin.java:235)
08:32:35,387 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.AbstractBundleContext.getServiceReferences(AbstractBundleContext.java:334)
08:32:35,387 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.topologymanager.TopologyManager.checkExistingServices(TopologyManager.java:382)
08:32:35,387 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.topologymanager.TopologyManager.start(TopologyManager.java:181)
08:32:35,387 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.topologymanager.Activator.start(Activator.java:70)
08:32:35,387 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:116)
08:32:35,387 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:47)
08:32:35,388 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:291)
08:32:35,393 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:217)
08:32:35,393 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:506)
08:32:35,393 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:135)
08:32:35,394 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.osgi.deployment.BundleStartTracker$1.serviceStarted(BundleStartTracker.java:107)
08:32:35,394 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1322)
08:32:35,394 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:47)
08:32:35,394 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1850)
08:32:35,394 ERROR [stderr] (MSC service thread 1-2) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
08:32:35,394 ERROR [stderr] (MSC service thread 1-2) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
08:32:35,395 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Thread.run(Thread.java:662)
08:32:35,409 ERROR [stderr] (MSC service thread 1-2)
java.lang.ExceptionInInitializerError
08:32:35,409 ERROR [stderr] (MSC service thread 1-2) at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
08:32:35,409 ERROR [stderr] (MSC service thread 1-2) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
08:32:35,409 ERROR [stderr] (MSC service thread 1-2) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Class.newInstance0(Class.java:355)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Class.newInstance(Class.java:308)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:112)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:47)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:291)
08:32:35,410 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:217)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:506)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:135)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.as.osgi.deployment.BundleStartTracker$1.serviceStarted(BundleStartTracker.java:107)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1322)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:47)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1850)
08:32:35,411 ERROR [stderr] (MSC service thread 1-2) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
08:32:35,412 ERROR [stderr] (MSC service thread 1-2) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
08:32:35,412 ERROR [stderr] (MSC service thread 1-2) at
java.lang.Thread.run(Thread.java:662)
08:32:35,412 ERROR [stderr] (MSC service thread 1-2) Caused by:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
08:32:35,412 ERROR [stderr] (MSC service thread 1-2) at
java.lang.String.substring(String.java:1937)
08:32:35,421 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.findModuleDynamically(HostBundleFallbackLoader.java:119)
08:32:35,421 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.loadResourceLocal(HostBundleFallbackLoader.java:104)
08:32:35,421 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.Module.getResources(Module.java:669)
08:32:35,421 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:499)
08:32:35,421 ERROR [stderr] (MSC service thread 1-2) at
org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1388)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
java.security.AccessController.doPrivileged(Native Method)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1407)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1469)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:457)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
08:32:35,422 ERROR [stderr] (MSC service thread 1-2) at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener.<clinit>(ContextLoaderListener.java:255)
08:32:35,423 ERROR [stderr] (MSC service thread 1-2) ... 19 more
08:32:35,447 ERROR [org.jboss.as.osgi] (MSC service thread 1-2) Cannot start bundle:
cxf-dosgi-ri-singlebundle-distribution:1.2.0: org.osgi.framework.BundleException: Cannot
start bundle: cxf-dosgi-ri-singlebundle-distribution:1.2.0
at
org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:319)
at
org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:217)
at
org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:506)
at
org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:135)
at
org.jboss.as.osgi.deployment.BundleStartTracker$1.serviceStarted(BundleStartTracker.java:107)
at
org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1322)
at
org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:47)
at
org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1850)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_25]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
Caused by: java.lang.ExceptionInInitializerError
at org.apache.cxf.dosgi.singlebundle.SPIActivator.register(SPIActivator.java:68)
at org.apache.cxf.dosgi.singlebundle.SPIActivator.start(SPIActivator.java:46)
at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:124)
at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:47)
at
org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:291)
... 10 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937) [:1.6.0_25]
at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.findModuleDynamically(HostBundleFallbackLoader.java:119)
at
org.jboss.osgi.framework.internal.HostBundleFallbackLoader.loadResourceLocal(HostBundleFallbackLoader.java:104)
at org.jboss.modules.Module.getResources(Module.java:669) [:1.0.0.CR3]
at org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:499)
[:1.0.0.CR3]
at org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)
[:1.0.0.CR3]
at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1388)
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_25]
at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1407)
at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1469)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:457)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at
org.springframework.core.io.support.PathMatchingResourcePatternResolver.<clinit>(PathMatchingResourcePatternResolver.java:166)
... 15 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: