You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pierre Lessard <Pi...@promutuel.ca> on 2004/01/16 17:06:11 UTC

Http 401 error using Java MapPoint demo under WebSphere (wsad 5.1)

Hello....

We are trying now MapPoint web services under Java with a trial access,
with
a valid user/password account.

Actually, SpatialPoint java demo is working perfectly well under
Tomcat
4.1.29.

Meanwhile, under WebSphere Studio Application Developper v 5.1, we
always
get an http 401 error (unauthorized)... It seems that the file
"client-config.wsdd" is not being read and then making the demo not
using
the SimpleHttpSender class for the digest authentication. We had
deployed
also the demo into the WAS 5.0.1, with the same results.

So, is there a way to specify the SimpleHttpSender programmatically in
Axis
instead with the wsdd file? Or do we have to generated the stubs with
a
special options?

Your help in any kind would be appreciated!

Thank you!

Pete


============

The java stack trace:


[15/01/04 12:31:36:000 EST] 4e8bd706 WsServer A WSVR0001I: Server
server1
open for e-business

[15/01/04 12:32:30:125 EST] 6822970d WebGroup I SRVE0180I:
[StoreLocatorWeb.war] [/mappoint] [Servlet.LOG]: /locate.jsp: init

[15/01/04 12:32:51:594 EST] 6822970d enterprise I
org.apache.axis.enterprise
Mapping Exception to AxisFault

[15/01/04 12:32:51:594 EST] 6822970d enterprise I
org.apache.axis.enterprise
TRAS0014I: The following exception was logged AxisFault

faultCode: {http://xml.apache.org/axis/}HTTP

faultString: (401)Unauthorized

faultActor: null

faultDetail:

null: return code: 401



(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
net.mappoint.s.FindServiceSoapStub.findAddress(FindServiceSoapStub.java:945)

at
com.spatialpoint.mappoint.storelocator.StoreLocator.getAddressMatches(StoreL
ocator.java:257)

at org.apache.jsp._locate._jspService(_locate.java:186)

at
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(Jsp
Servlet.java:357)

at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.jav
a:675)

at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)

at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)

at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)

at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)

at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:283)

at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)

at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:948)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:530)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:176)

at
com.ibm.ws.webcontainer.servlet.SimpleFileServlet.doGet(SimpleFileServlet.ja
va:225)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)

at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)

at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)

at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)

at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:283)

at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)

at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:948)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:530)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:176)

at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)

at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:201)

at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)

at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(C
acheableInvocationContext.java:114)

at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:186)

at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:334)

at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)

at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)

at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

.