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