Hi, Try removing the wild-card character and dot so that it reads:
org.osgi.framework.bootdelegation=com.sun.xml.internal.ws.api.message If I remember correctly, the boot delegation is list of *packages* that need delegation to the boot class path. So, com.sun.xml.internal.ws.api.message.* would create a list with all sub-packages to "com.sun.xml.internal.ws.api.message" when what you really want is a list containing only that package, not its "children". Regards, Per-Erik Svensson On Wed, Jan 19, 2011 at 12:28 PM, Pierre Henry Perret <[email protected]>wrote: > Scr try to instantiate a component at runtime. > This component try to create an instance of a proxy but the java runtime rt > package com.sun.xml.internal.ws.api.message is not found: > > > > Here is the full trace: > _________________________________________ > java.lang.NoClassDefFoundError: com.sun.xml.internal.ws.api.message.Header > not found by org.myproject.pt.services.impl [6] > at $Proxy29.<clinit>(Unknown Source) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) > at > > com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:630) > at > > com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:331) > at > > com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313) > at > > com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295) > at javax.xml.ws.Service.getPort(Service.java:92) > at > > org.myproject.webservices.comp.HardwareMonitorService.getHardwareMonitorPort(HardwareMonitorService.java:64) > at > > org.myproject.pt.services.impl.MonitorServiceImpl.<init>(MonitorServiceImpl.java:26) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > at > > org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:183) > ____________________________________ > > So I have added this property , as specified in osgi core 4 section 3.8.3 > 'parent delegation': > > org.osgi.framework.bootdelegation=com.sun.xml.internal.ws.api.message.* > > in the system properties. > > But it still throws the stack...! > > Any idea ? > > Thanks > > ps: I use iPOJO 1.6 >

