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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de
>> 
>> This email sent to [email protected]
>> 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to