Sounds bad. Could you send me (privately) a version of the bundle and the source code that does that? I will have to look into it some more...
regards, Karl On Fri, Oct 10, 2008 at 4:52 PM, Kristof Taveirne <[EMAIL PROTECTED]> wrote: > Hello, > > I'm facing a problem using web service in the new Felix 1.2.1. > What worked in 1.0.4 doesn't anymore in 1.2.1. > > Here's what I did. > I created a simple hello world web service and deployed it on glassfishv2. > In netbeans I've created a web service reference to that web service. > > This is what worked in Felix 1.0.4: > > > Thread.currentThread().setContextClassLoader(Activator.this.getClass().getClassLoader()); > osgi.ws.test.HelloWordServiceService service = new > osgi.ws.test.HelloWordServiceService(); > osgi.ws.test.HelloWordService port = > service.getHelloWordServicePort(); > > I'm using JDK6, so i'm using the web service stack that comes with that.(no > axis or whatever). > > On Felix 1.2.1 however, I get the following: > > Caused by: java.lang.NoClassDefFoundError: Could not initialize class > $Proxy38 > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown > Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at java.lang.reflect.Proxy.newProxyInstance(Unknown Source) > at > com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(Unknown > Source) > at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown > Source) > at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown > Source) > at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown > Source) > at javax.xml.ws.Service.getPort(Unknown Source) > at > osgi.ws.test.HelloWordServiceService.getHelloWordServicePort(HelloWordServiceService.java:56) > at hello.ws.test.client.Activator.start(Activator.java:22) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591) > at org.apache.felix.framework.Felix._startBundle(Felix.java:1607) > ... 6 more > java.lang.NoClassDefFoundError: Could not initialize class $Proxy38 > > Any ideas how I can fix this? > All hints are very much appreciated! > > Thanks, > Kristof Taveirne > -- Karl Pauls [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

