Topic
  • 1 reply
  • Latest Post - ‏2011-09-12T21:10:26Z by Emily Jiang
izhd
izhd
17 Posts

Pinned topic Composite bundle

‏2011-09-08T20:03:47Z |
I'm trying to create composite bundle (CBA) for logging. Here's COMPOSITEBUNDLE.MF

Bundle-Name: logging
Bundle-SymbolicName: logging
Bundle-Version: 1.0.0.qualifier
CompositeBundle-ManifestVersion: 1
Manifest-Version: 1.0
CompositeBundle-Content: logging.properties;version="http://1.0.0.qualifier,1.0.0.qualifier",
org.apache.log4j;version="http://3.2.14,3.2.14",
slf4j.api;version="http://1.6.1,1.6.1",
slf4j.log4j12;version="http://1.6.1,1.6.1"
Export-Package: org.slf4j;version=1.6.1

I export it in RAD as logging.cba and add it to the internal bundle repository
After that each bundle inside of CBA is displayed as separate item in internal repository, plus there's one item for logging.jar (logging_1.0.0.201109081155.jar)

When I try to start BLA that has EBA that uses logging CBA (Use-bundle) there's an exception in WAS console

9/8/11 12:58:24:237 PDT] 0000005e AriesApplicat E CWSAI0009E: An internal error occurred. Cannot calculate the import packages for the composite bundle with scope ICMSOSGIApp_1.0.0. Exception: java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/IBM/SDP/runtimes/base_v7/profiles/was70profile1/config/bundlecache/logging_1.0.0.201109081155.jar
at java.net.URI$Parser.fail(URI.java:2820)
at java.net.URI$Parser.checkChars(URI.java:2993)
at java.net.URI$Parser.parseHierarchical(URI.java:3077)
at java.net.URI$Parser.parse(URI.java:3025)
at java.net.URI.<init>(URI.java:589)
at java.net.URL.toURI(URL.java:930)
at com.ibm.wsspi.aries.application.parsing.ManifestProcessor.obtainManifest(ManifestProcessor.java:269)
at com.ibm.ws.app.container.aries.AriesApplication.installCBA(AriesApplication.java:1187)
at com.ibm.ws.app.container.aries.AriesApplication.findAndStartBundles(AriesApplication.java:739)
at com.ibm.ws.app.container.aries.AriesApplication.install(AriesApplication.java:441)
at com.ibm.ws.app.container.aries.AriesApplicationEventHandler.handleEvent(AriesApplicationEventHandler.java:141)
at com.ibm.ws.event.internal.adapter.OSGiHandlerAdapter.handleEvent(OSGiHandlerAdapter.java:46)
at com.ibm.ws.event.internal.dispatcher.DefaultEventDispatcher.invoke(DefaultEventDispatcher.java:47)
at com.ibm.ws.event.internal.HandlerHolder.fireSynchronousEvent(HandlerHolder.java:342)
at com.ibm.ws.event.internal.EventEngineImpl.publishEvent(EventEngineImpl.java:272)
at com.ibm.ws.event.internal.EventEngineImpl.publishOsgiEvent(EventEngineImpl.java:210)
at com.ibm.ws.event.internal.EventEngineImpl.sendEvent(EventEngineImpl.java:179)
at com.ibm.ws.eba.app.framework.fep.EBAAppFramework.startApplication(EBAAppFramework.java:496)
at com.ibm.ws.eba.internal.framework.EBALauncherImpl.startApplication(EBALauncherImpl.java:526)
at com.ibm.ws.eba.external.framework.LauncherImpl.startApplication(LauncherImpl.java:685)
at com.ibm.ws.eba.bla.EbaOperationHandler.executeOperation(EbaOperationHandler.java:109)
at com.ibm.ws.management.bla.runtime.ControlOperationHelper.invokeControlOperationHandler(ControlOperationHelper.java:733)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$ControlOpHandler.invokeControlOperationHandler(CompositionUnitMgrImpl.java:1029)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$ControlOpHandler.start(CompositionUnitMgrImpl.java:978)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:441)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:384)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:655)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1332)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1225)
at com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpViaRuntimeMBean(ControlOperationHelper.java:1046)
at com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpOnLocalServer(ControlOperationHelper.java:533)
at com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatchCompUnitControlOpToTarget(CompUnitControlOpDispatcher.java:258)
at com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatch(CompUnitControlOpDispatcher.java:181)
at com.ibm.ws.management.bla.steps.StepStartBLA.execute(StepStartBLA.java:157)
at com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151)
at com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102)
at com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85)
at com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158)
at com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68)
at com.ibm.ws.management.bla.commands.ADTCommand$OperationScheduler.run(ADTCommand.java:543)
at java.lang.Thread.run(Thread.java:736)
Question : what does that exception mean? What am I doing wrong here?

Environment : RAD 8.0.3, WAS 7.0.0.17

P.S. Even after I deleted logging_1.0.0.201109081155.jar from internal repository using WAS console, it still shows the same exception when starting BLA
Updated on 2011-09-12T21:10:26Z at 2011-09-12T21:10:26Z by Emily Jiang
  • Emily Jiang
    Emily Jiang
    73 Posts

    Re: Composite bundle

    ‏2011-09-12T21:10:26Z  
    The error message suggests that the space in the url cannot be parsed properly, which is wrong. Please raise a PMR to get it fixed.

    Thanks
    Emily