• 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: WOWebServiceRegistrar.setSecurityDelegate failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOWebServiceRegistrar.setSecurityDelegate failure


  • Subject: Re: WOWebServiceRegistrar.setSecurityDelegate failure
  • From: Jon Nolan <email@hidden>
  • Date: Tue, 22 Apr 2008 14:07:52 -0600
  • Organization: Web Dynamics - A Division of iCentris

Thanks guys.

Pierre, if 5.4.x versions all use Axis 1.4 how does moving to 5.4.2 help? Regarding the call to org.apache.xml.security.Init, I'm sorry, it's extraneous to this conversation and I didn't mean to post it. I use it for some webservice encryption needs.

Any advice on a somewhat guaranteed stable/working WebObjects/WOLips/Java/Axis environment for non-trivial webservices is very, very appreciated.

Thanks,
Jon Nolan

Mr. Pierre Frisch wrote:
Actually 5.3.x has most of the same issues as 5.4.1. Grab 5.4.2 from the iPhone SDK beta if you can. WebObjects 5.3.x and 5.4.x use different versions of Axis. 5.3.x uses Axis 1.1. 5.4.x uses Axis 1.4.

I am a bit puzzled by the statement: org.apache.xml.security.Init.init(); Where does this come from? It is not part of regular Axis 1.4.

Cheers

Pierre
--
Pierre Frisch
email@hidden


On Apr 22, 2008, at 9:49, Mike Schrag wrote:

There are known issues with WebServices on 5.4.1. I don't know if this one in particular is fixed in 5.4.2 or not, but you should definitely get a baseline on 5.3 FIRST before doing the full move to 5.4.1.

ms

On Apr 22, 2008, at 12:09 PM, Jon Nolan wrote:

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@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

_______________________________________________
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: WOWebServiceRegistrar.setSecurityDelegate failure
      • From: Mike Schrag <email@hidden>
References: 
 >WOWebServiceRegistrar.setSecurityDelegate failure (From: Jon Nolan <email@hidden>)
 >Re: WOWebServiceRegistrar.setSecurityDelegate failure (From: Mike Schrag <email@hidden>)
 >Re: WOWebServiceRegistrar.setSecurityDelegate failure (From: "Mr. Pierre Frisch" <email@hidden>)

  • Prev by Date: Re: Removing extra blank lines from generated html?
  • Next by Date: Re: WOWebServiceRegistrar.setSecurityDelegate failure
  • Previous by thread: Re: WOWebServiceRegistrar.setSecurityDelegate failure
  • Next by thread: Re: WOWebServiceRegistrar.setSecurityDelegate failure
  • Index(es):
    • Date
    • Thread