This discussion is archived
0 Replies Latest reply: Oct 10, 2013 5:06 AM by user5914418 RSS

Unable to access the web service from client

user5914418 Newbie
Currently Being Moderated

Hi,

I am running the web service and client (in my case the servlet) on the same machine on weblogic and I get the following expection

 

I have also set the user credentials for the webservice

 

Any help

 

 

Error 500--Internal Server Error

 

com.sun.xml.ws.client.ClientTransportAccessException: The server sent HTTP status code 401: Unauthorized: http://localhost:7001/WS/CatalogMgmtWSService

    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.getClientTransportException(HttpTransportPipe.java:340)

    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:314)

    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:257)

    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:124)

    at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:121)

    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

    at com.sun.xml.ws.client.Stub.process(Stub.java:272)

    at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

    at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

    at $Proxy164.getOffers(Unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

    at $Proxy165.getOffers(Unknown Source)

    at jsp_servlet.__hello._jspService(__hello.java:121)

    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

    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.onAddToMapException(ServletStubImpl.java:416)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)

    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:207)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points