on 12-11-2014 8:57 AM
Hello,
Axis webservice is sending request to PI server (PI 7.11 sp9), and getting authentication issue 401 unauthorised.
1. Service user for third party created.
2. I am using Sender Axis soap adapter servlet(AXIS)
How can i configure authentication in sender soap axis- servlet Axis.
Or Can i use modules in sender adapter as mentioned in
Please suggest.
Thanks
Hi Pratibha,
Please check the following links if it helps:
SOAP AXIS - Process Integration - SCN Wiki
SAP Note # 1303363
Regards,
Azhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Azhar for your reply,
It did not help me configuring authentication in soap sender axis adapter to resolve authentication issue.
I tried the configuration as per the below blog but getting this error.
Error:
failed to initialize: org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: java:org.apache.axis.handlers.http.HTTPAuthHandler ------------------------- Loader Info ------------------------- ClassLoader name: [library:com.sap.aii.af.axisproviderlib] Living status: alive Direct parent loaders: [system:Frame] [library:com.sap.base.technology.facade] [library:engine.j2ee14.facade] Resources: /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/axis.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-discovery-0.2.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-logging-1.0.4.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-net-1.0.0.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/wsdl4j-1.5.1.jar --------------------------------------------------------------- java.lang.ClassNotFoundException: java:org.apache.axis.handlers.http.HTTPAuthHandler ------------------------- Loader Info ------------------------- ClassLoader name: [library:com.sap.aii.af.axisproviderlib] Living status: alive Direct parent loaders: [system:Frame] [library:com.sap.base.technology.facade] [library:engine.j2ee14.facade] Resources: /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/axis.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-discovery-0.2.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-logging-1.0.4.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-net-1.0.0.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/wsdl4j-1.5.1.jar --------------------------------------------------------------- at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:274) at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:243) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187) 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 com.sap.aii.adapter.axis.ra.Adapter.createHandler(Adapter.java:517) at com.sap.aii.adapter.axis.ra.Adapter.init(Adapter.java:251) at com.sap.aii.adapter.axis.ra.AdapterManager$1.run(AdapterManager.java:168) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:182) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:280) org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: java:org.apache.axis.handlers.http.HTTPAuthHandler ------------------------- Loader Info ------------------------- ClassLoader name: [library:com.sap.aii.af.axisproviderlib] Living status: alive Direct parent loaders: [system:Frame] [library:com.sap.base.technology.facade] [library:engine.j2ee14.facade] Resources: /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/axis.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-discovery-0.2.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-logging-1.0.4.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-net-1.0.0.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/wsdl4j-1.5.1.jar --------------------------------------------------------------- java.lang.ClassNotFoundException: java:org.apache.axis.handlers.http.HTTPAuthHandler ------------------------- Loader Info ------------------------- ClassLoader name: [library:com.sap.aii.af.axisproviderlib] Living status: alive Direct parent loaders: [system:Frame] [library:com.sap.base.technology.facade] [library:engine.j2ee14.facade] Resources: /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/axis.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-discovery-0.2.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-logging-1.0.4.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/commons-net-1.0.0.jar /usr/sap/SPD/DVEBMGS00/j2ee/cluster/bin/ext/com.sap.aii.af.axisproviderlib/lib/wsdl4j-1.5.1.jar --------------------------------------------------------------- at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:274) at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:243) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187) 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 com.sap.aii.adapter.axis.ra.Adapter.createHandler(Adapter.java:517) at com.sap.aii.adapter.axis.ra.Adapter.init(Adapter.java:251) at com.sap.aii.adapter.axis.ra.AdapterManager$1.run(AdapterManager.java:168) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:182) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:280) at com.sap.aii.adapter.axis.ra.Adapter.createHandler(Adapter.java:529) at com.sap.aii.adapter.axis.ra.Adapter.init(Adapter.java:251) at com.sap.aii.adapter.axis.ra.AdapterManager$1.run(AdapterManager.java:168) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:182) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:280)
Please suggest, SP level is already 9.
Thanks
Pratibha
Hi Pratibha,
Seems Axis library files are not deployed in the system. Please check whether you have deployed the Axis files correctly
To check it is correctly deployed or not use the following URL:
http://<systemhost>:<systemport>/XIAxisAdapter/MessageServlet
See the log, if all the required files are present in the Result page
(SAP Note 1028961 - How to prepare axisproviderlib.sda for Adapter Framework) you have to deploy it on the J2EE engine of PI.
Regards,
Azhar
Hi Pratibha,
Please test below URL,
http://pi_hostname:pi_portno/XIAxisAdapter/MessageServlet
Check whether required components are missing or not with status. If so, let Basis team know about it so that they can install the same.
Check the status details as highlighted in red in above image.
Ragards,
Amit Patil
Hi Pratibha,
I hope you are using the WSDL file from PI for testing and passing the Username / pwd in Properties column?
>>>Generate the WSDL from sender agreement or from ICO and then use the same in SOAP UI
for sending the message for testing..
Can you give the screenshot of the error message
Regards,
Azhar
Hi Azhar,
Yes wsdl file from PI and generated from sender agreement and username password in properties box of soap ui.
Azhar 2 things i wanna highlight.
1.i tried testing from clients network after installing soap ui there, then the connection refused problem was no more but the belopw Authentication problem arised followed by certificate issue.,
2.For other scenario in pi landscape we have ssl thing deployed as so secured communication is used for other soap receiver scenarios.
error face in soap ui.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.Unauthenticated</faultcode>
<faultstring>com.sap.engine.services.security.exceptions.BaseLoginException: Authentication did not succeed.</faultstring>
<detail>
<ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">com.sap.engine.services.security.exceptions.BaseLoginException: Authentication did not succeed.
at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.throwNewLoginException(LoginModuleHelperImpl.java:498)
at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.throwNewLoginException(LoginModuleHelperImpl.java:352)
at com.sap.engine.interfaces.security.auth.AbstractLoginModule.throwNewLoginException(AbstractLoginModule.java:399)
at com.sap.engine.services.security.server.jaas.DigestLoginModule.login(DigestLoginModule.java:113)
at com.sap.engine.services.security.login.LoginModuleLoggingWrapperImpl.login(LoginModuleLoggingWrapperImpl.java:249)
at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:70)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.services.security.login.FastLoginContext.login(FastLoginContext.java:233)
at com.sap.aii.adapter.axis.web.ServletReceiverCore.handleLogin(ServletReceiverCore.java:1138)
at com.sap.aii.adapter.axis.web.ServletReceiverCore.doPost(ServletReceiverCore.java:319)
at com.sap.aii.adapter.axis.web.MessageServlet.doPost(MessageServlet.java:392)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:494)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:299)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:399)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:388)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:84)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:244)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at
Exchange of certificates/security setup is required or setting up login authentication module & compatible jar files for axis ....is what came to my mind...please suggest...
thanks
Pratibha
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.