Hi

I'm having a problem with Basic user authentication.
I'm using Axis 1.1 with Tomcat 5.0.27 and Apache 2.0. I've installed
the"mod_jk2" connector in Apache and can successfully
redirect to my Web Services in Tomcat from the Apache Web Server. However,
if I enable "htaccess" via a '.htaccess' file
or via a  Basic athentication rule in Apache, it fails.
First time loading, I get a user name/password prompt, but as soon as the
java server page executes client web service calls,
I get an"(401) Authorization required" message triggered from "HTTPSender".
I've looked at the code, and it appears that it
will only tack on the name/password if it is already attached to the SOAP
header or encoded in the URL. As a test, I've hard-coded the name/password
in the client code, via call.setUsername() and call.setPassword(), and it
then works. I obviously cant' do that.
Any ideas?

Steve Piercey

Stack trace from the failure
------------------------------------------------
401)Authorization Required

org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630
)
 org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
 org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
 org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
 org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
 org.apache.axis.client.Call.invokeEngine(Call.java:2564)
 org.apache.axis.client.Call.invoke(Call.java:2553)
 org.apache.axis.client.Call.invoke(Call.java:2248)
 org.apache.axis.client.Call.invoke(Call.java:2171)
 org.apache.axis.client.Call.invoke(Call.java:1691)
 org.apache.jsp.xpp_jsp._jspService(xpp_jsp.java:95)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Reply via email to