We don't use D2WS anymore either because ProjectWonder breaks it, in WO53 or WO54 alike.
I just switched our projects back to 54, they worked no problem in 53. Here is what I get when I
14.05.2008 17:12:33:610 WARN [ERXNSLogLog4jBridge.appendln:41) - A fatal exception occurred: null
[2008-5-14 17:12:33 CEST] <main> java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getDeserializer(WSDDTypeMapping.java:254)
at com.webobjects.appserver.WOWSDDRegistrar.serviceStringTypeMappings(WOWSDDRegistrar.java:581)
at com.webobjects.appserver.WOWSDDRegistrar.createServiceString(WOWSDDRegistrar.java:479)
at com.webobjects.appserver.WOWSDDRegistrar.registerWebService(WOWSDDRegistrar.java:291)
at com.webobjects.appserver.WOWebServiceRegistrar.registerWebService(WOWebServiceRegistrar.java:82)
at com.kontrast.cms.index.IndexerService.register(IndexerService.java:36)
at com.kontrast.cms.index.app.Application.<init>(Application.java:23)
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:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at er.extensions.ERXApplication.main(ERXApplication.java:398)
at com.kontrast.webobjects.KTApplication.main(KTApplication.java:95)
at com.kontrast.cms.index.app.Application.main(Application.java:18)
On 14.05.2008, at 17:22, Mike Schrag wrote:
You gotta provide a little more information than this. EXACTLY what isn't working? What exceptions are you getting?
I don't use D2WS, but I DO have an app that uses web services and it works with 5.4.2, so you need to be more specific.
We don't use D2WS anymore either because ProjectWonder breaks it, in WO53 or WO54 alike.
I just switched our projects back to 54, they worked no problem in 53. Here is what I get when I
try to register a web service:
14.05.2008 17:12:33:610 WARN [ERXNSLogLog4jBridge.appendln:41) - A fatal exception occurred: null
[2008-5-14 17:12:33 CEST] <main> java.lang.NullPointerException
Please keep these on the list.
You get this on 5.4.2 also? I _thought_ this one was fixed in 5.4.2. How are you calling WOWebServerRegistrar.registerWebService? If this is still happening in 5.4.2 you should log a bug in radar.
Yeah, on 5.4.2. The version that came with the iPhone SDK. I call WOWebServerRegistrar thusly:
In FooService.java :
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WebService Operations
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public static final String serviceName = "FooService";
public static final String[] operations = new String[] {"foo","bar","awol"};
public static void register() {
WOWebServiceRegistrar.registerWebService(FooService.serviceName,FooService.class,FooService.operations, true);
}
This works without complains in WO5.3 and breaks without fail in WO5.4.2.
Cheers,
Simon