cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Implement WS-Security UsernameToken of SOAP Axis Adapter

Former Member
0 Kudos

Hi,

We are trying to implement the UsernameToken WS-Security in PI 7.11 using the Receiver SOAP Axis Adapter but we are getting the error below:

com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/axis/description/OperationDesc : cannot initialize class because prior initialization attempt failed

We have already asked the Basis Team to deploy the optional components in SOAP Axis, however, the error still persist. Do you have any idea on how we could resolve the issue?

Optional Components

XML Security API

Found: org.apache.xml.security.Init at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/xmlsec-1.4.2.jar

Apache Xalan

Found: org.apache.xalan.Version at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/xalan.jar

Jakarta-Commons Codec

Found: org.apache.commons.codec.Encoder at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-codec-1.4.jar

Jakarta-Commons Net

Found: org.apache.commons.net.SocketFactory at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-net-1.0.0-dev.jar

Jakarta-Commons HttpClient

Found: org.apache.commons.httpclient.HttpClient at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-httpclient-3.0.1.jar

Apache WSS4J

Found: org.apache.ws.security.WSSConfig at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/wss4j-1.5.4.jar

Apache Addressing

Found: org.apache.axis.message.addressing.Constants at /usr/sap/XDC/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/addressing-1.1.1.jar

Apache Sandesha

Warning: optional component missing --- looking for org.apache.sandesha.Constants in com.sap.aii.af.axisproviderlib/Sandesha.jar; see http://ws.apache.org/sandesha/

Thanks,

Jenny

Accepted Solutions (1)

Accepted Solutions (1)

rcsegovia
Active Participant
0 Kudos

Hi guys,

My few cents:

  • Check url: server:port:/XIAxisAdapter/MessageServlet is OK and no missing components.
  • And try next configuration:

cheers,

Roberto.

Answers (1)

Answers (1)

Former Member
0 Kudos

I'm also facing the same issue. I'm using Axis adapter at receiver side. Receriver side communication channel is throwing the error as follows:

com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/axis/description/OperationDesc : cannot initialize class because prior initialization attempt failed

All basis components were installed including optional ones. Please give a solution, if you find out.

Former Member
0 Kudos

Hi

I am also facing the similar issue. Please tell how you fixed this issue.

Thanks

Sapna

Former Member
0 Kudos

Hi Sapna,

Sorry for the late reply. I wasn't able to make the SOAP Axis working as our Basis team did not have time to look into it. I used the SOAP adapter instead and created the SOAP envelope with WSSE Security standard using the java mapping.

The link provided by Roberto might be useful.

Kind Regards,

Jenny