I'm in the process of upgrading all my WebObjects projects from
Xcode/Java1.4/WebObjects5.2.3 to Eclipse/WOLips/Java1.5/WebObjects5.4.1. I've
possibly bitten off way too big a bite all at once. ;-)
I'm muddling through without too much trouble except when it comes to
webservices. I make substantive use of WOSecurityDelegate. It is absolutely
necessary in a number of places. I just can't seem to get a delegate
registered though. Here's the code:
org.apache.xml.security.Init.init();
WOWebServiceRegistrar.setSecurityDelegate(new
MyWOSecurityDelegateClass());
The registration fails with:
java.lang.NullPointerException
at
com.webobjects.appserver._private.WOServerSessionHandler.<clinit>(WOServerSessionHandler.java:25)
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:177)
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.WSDDDeployableItem.getJavaClass(WSDDDeployableItem.java:353)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:295)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:473)
at
com.webobjects.webservices.support.WOXMLProvider.getGlobalRequest(WOXMLProvider.java:168)
at org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:365)
at
com.webobjects.appserver._private.WOWebService.setSecurityDelegate(WOWebService.java:205)
at
com.webobjects.appserver.WOWebServiceRegistrar.setSecurityDelegate(WOWebServiceRegistrar.java:358)
My configuration is:
Eclipse 3.3.2
WOLips 3.3.5047
OS X 10.5.2
Java 1.5.0_13
I have standard Apple distribution jars for:
axis.jar (1.4 I think)
commons-discovery-0.2.jar
commons-logging-1.0.4.jar
jaxrpc.jar
saaj.jar
wsdl4j-1.5.1.jar
xmlsec-1.3.0.jar
What else? Yes, the WebObjects webservices frameworks are installed. Yes, the
error is the same running within Eclipse or at the command line.
Any help is very appreciated.
--
Jon Nolan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]