My Oracle Support Banner

AXIS 1.0 Authentication Failed On WebLogic 10.3.5, But WebLogic 8.1 Works (Doc ID 1485455.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle Weblogic Server - Version 10.3.5 and later
Information in this document applies to any platform.

Symptoms

On : 10.3.5 version, WLS-WebServices

AXIS 1.0 authentication failed on WebLogic 10.3.5 but WebLogic 8.1 works.

Web app developed using AXIS 1.0 deployed on Weblogic 8.1 with no problem. This web application invokes a web service deployed on Tomcat. All works with this environment.
After this application is deployed on WebLogic 10.3.5 and try to access this same web service (using the same calling method), an error is reported.

Environment:
a) Web Service deployed on:

             tomcat 4.1.3
             axis 1.0
             jdk1.4

 


b) Web Service client deployed on WebLogic


             weblogic 10.3.5
             axis 1.0
             jdk 1.6.0_31 64-bit

 

Web service client sample code:

These code works on WLS8.1 and do not work on WLS10.3.5.

private invokeAuthWS() {
    try {
        String endpointURL = "http://username:password@ip:port/axis/services/Version";
        Service service = new Service();
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(new java.net.URL(endpointURL));
        call.setOperationName("getVersion");
        String res = (String) call.invoke(new Object[] {});
        System.out.println(res);
    } catch (Exception e) {
        e.printStackTrace();
    }
}

 

Develope a servlet invoking the above code and deploy it on WLS10.3.5. Running the servlet throws the following exception:

(401)Unauthorized
        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
        at org.apache.axis.client.Call.invoke(Call.java:2102)
        at org.apache.axis.client.Call.invoke(Call.java:1851)
        at org.apache.axis.client.Call.invoke(Call.java:1777)
        at org.apache.axis.client.Call.invoke(Call.java:1315)
        at axis.client.AxisClientServlet.invokeAuthWS(AxisClientServlet.java:110)
        at axis.client.AxisClientServlet.doGet(AxisClientServlet.java:56)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.