• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NoClassDefFoundError when initializing Web Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NoClassDefFoundError when initializing Web Services


  • Subject: Re: NoClassDefFoundError when initializing Web Services
  • From: Goetz Neumann <email@hidden>
  • Date: Fri, 20 Apr 2012 11:32:05 +0200

Hi Stefan,

Thanks for the response.  It is a regular WebObjects Application but you can select on the New WebObjects Project Wizard on the "Add WebServices support" Screen which is the 6th screen for me.  If I remove the line

"WOWebServiceRegistrar.registerWebService(com.dd.wstest.WS.class, false);"

I get a perfectly working Webobjects-App.

cheers

goetz


Am 20.04.2012 um 09:58 schrieb Stefan Klein:

> Hi Goetz,
>
> "Server Web Services" is not a WO Template. Even if you want to create a "stand alone" Web Service Application you had to create a "WebObjects Application" or "Wonder Application". Otherwise the needed the frameworks and build files were not integrated.
>
> Stefan
>
> Am 20.04.12 09:36, schrieb Goetz Neumann:
>> 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
>>


 _______________________________________________
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

  • Follow-Ups:
    • Re: NoClassDefFoundError when initializing Web Services
      • From: Stefan Klein <email@hidden>
References: 
 >NoClassDefFoundError when initializing Web Services (From: Goetz Neumann <email@hidden>)
 >Re: NoClassDefFoundError when initializing Web Services (From: Stefan Klein <email@hidden>)

  • Prev by Date: Re: NoClassDefFoundError when initializing Web Services
  • Next by Date: Re: NoClassDefFoundError when initializing Web Services
  • Previous by thread: Re: NoClassDefFoundError when initializing Web Services
  • Next by thread: Re: NoClassDefFoundError when initializing Web Services
  • Index(es):
    • Date
    • Thread