cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with SOAP Adapter HTTP (Axis) Deployment for use of NTLM Authentication.

Former Member
0 Kudos

We are trying to use SOAP adapter with HTTP (Axis) trasnport protocol for communication to a server which uses Windows NTLM Authentication mode. Looking at couple of documents we could figure out that the below jar files are good enough to get this deployed.

  1. axis.jar
  2. commons-discovery-0.2.jar
  3. commons-logging-1.0.4.jar
  4. commons-net-1.0.0-dev.jar
  5. wsdl4j-1.5.1.jar
  6. apache-jakarta-commons-httpclient.jar

So we have created a the com.sap.aii.af.axisproviderlib.sda file using these jars and got it deployed on the server. And we are using the confugrations in the module bean as

.However we are getting an error as below which I feel is related to the deployment we tried of:

Message processing failed. Cause: org.apache.axis.ConfigurationException: handler is not instantiated org.apache.axis.ConfigurationException: handler is not instantiated at com.sap.aii.adapter.axis.modules.HandlerCore.process(HandlerCore.java:73) at com.sap.aii.adapter.axis.modules.HandlerBean.process(HandlerBean.java:86) at sun.reflect.GeneratedMethodAccessor459.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at

Even if i change the module sequence I am getting error as :

failed to initialize: org.apache.axis.ConfigurationException: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/UsernamePasswordCredentials org.apache.axis.ConfigurationException: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/UsernamePasswordCredentials at com.sap.aii.adapter.axis.ra.Adapter.createHandler(Adapter.java:570) at com.sap.aii.adapter.axis.ra.Adapter.init(Adapter.java:262) at

If I use the handler.type as ''java:com.sap.aii.adapter.axis.ra.transport.http.HTTPSender'' I am getting the User Authentication failure(401). So I feel the handler.type is supposed to be as ''com.sap.aii.adapter.axis.ra.transport.http.CommonsHTTPSender''.

Please let me know if any configurations are missing.

Accepted Solutions (0)

Answers (3)

Answers (3)

justin_santhanam
Active Contributor
0 Kudos

Tilak,

Did you got this resolved? I'm getting the same 401- Unauthorized error as well.. Any clues?

Justin     

Former Member
0 Kudos

Hi Justin,   

       Sorry to reply late.

       The issue was not resolved, and in the mean time we had found that in SOAP Adapter itself the our 3rd party system can post data to SAP PI. So never has to try for the AXIS adapter.

former_member188961
Participant
0 Kudos

Now the components are showing up in “http://localhost:port/XIAxisAdapter/MessageServletwhen SDA file is deployed. The SDA file contains two jar files apachtwo jara-commons-httpclient.jar and commons-httpclient-3.1.jar for HttpClient.

.

But now we are getting a new error for receiver channel which is

Axis: fatal error in invocation: java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException

MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException

Configuerations done for the receiver Soap (Axis ) channel is as below.

Please let us know if we need to do some additional configurations.

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Check the note 1776179 Axis Adapter Error: org.apache.axis.ConfigurationException: handler is not instantiated. This suggests the error is thrown because of a missing wss4j library. Try deploying this and check if that solves your issue.

Regards

Mark

Former Member
0 Kudos

Hi Mark,

    Thanks a lot for the reply.

    The note you shared is looking at the WS-Security concept,however I am looking at handler.type using CommonsHTTPSender process, and in the Message Servlet I am still seeing CommsHTTP Client not being available. So I am looking forward to understand what jar file is required in addition.

Regards,

Tilak B