NoClassDefFoundError when initializing Web Services
NoClassDefFoundError when initializing Web Services
- Subject: NoClassDefFoundError when initializing Web Services
- From: Goetz Neumann <email@hidden>
- Date: Fri, 20 Apr 2012 09:36:32 +0200
Hi List,
I am getting this weird exception when I am trying to initialize a WebService. I set up test project in Eclipse where I selected "Server Web Services" in the wizard.
This is my my code in the Application constructor:
public Application() {
NSLog.out.appendln("Welcome to " + name() + " !");
/* ** put your initialization code in here ** */
WOWebServiceRegistrar.registerWebService(com.dd.wstest.WS.class, false);
}
And this is the exception I get:
[2012-4-20 9:22:14 MESZ] <main> A fatal exception occurred: com/webobjects/webservices/support/_private/WOWSSupport$Delegate
[2012-4-20 9:22:14 MESZ] <main> java.lang.NoClassDefFoundError: com/webobjects/webservices/support/_private/WOWSSupport$Delegate
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at com.webobjects.appserver.WOWebServiceRegistrar.registerWebService(WOWebServiceRegistrar.java:46)
at com.dd.wstest.Application.<init>(Application.java:18)
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 com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at com.dd.wstest.Application.main(Application.java:12)
Caused by: java.lang.ClassNotFoundException: com.webobjects.webservices.support._private.WOWSSupport$Delegate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Typically I see these kind of errors if there is a mixup of JavaVersions. Compiler compliance level in Java Compiler settings is at 1.6 and I am on Lion. What am I doing wrong?
Do you have any ideas?
Thanks in advance.
Goetz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden