P
Peter
I recently installed Apache Axis 1.1 on a JRun 3.1 application server
and I am attempting to run the Axis example located in the
samples/stock folder.
If I run the sample using a SimpleAxisServer (i.e., not JRun) as the
readme file suggests, the example works well as long as the users.lst
file is located in the folder where I started my SimpleAxisServer.
The users.lst file contains a list of valid username/passwords used by
Axis' basic authentication.
When I attempt to use my JRun server to run the sample, the service is
deployed successfully but any method requiring user authentication
fails with the following error:
C:\Program Files\Allaire\JRun\servers\default\axis\samples\stock>java
samples.stock.GetQuote -uuser1 -wpass1 XXX
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}string: return code: 401
<?xml version="1.0" encoding="UTF-8"?>
<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>User &apos;null&apos; not authenticated
(unknown user)</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at samples.stock.GetQuote.getQuote(GetQuote.java:120)
at samples.stock.GetQuote.main(GetQuote.java:134)
It is important to note that I get this same error using the
aforementioned SimpleAxisServer if the users.lst file is NOT located
in the folder where I started my SimpleAxisServer. This would imply,
perhaps, that my users.lst file is not where JRun wants it to be.
After many attempts, placing the users.lst file everywhere, I have not
been able to get it to work.
Can anyone tell me what I am doing wrong? In what JRun folder should
the users.lst be located?
Any and all help greatly appreciated.
Thanks,
Peter Desjardins
Oh, and here's a hint for anyone else trying to install Apache Axis
1.1 on a JRun 3.1 server:
Change the jrun.classpath value found in the 'C:\Program
Files\Allaire\JRun\lib\global.properties' file so that a reference to
the location of your XML parser jar files (e.g., xercesImpl.jar) is
listed before the '{jrun.rootdir}/lib/ext' reference.
and I am attempting to run the Axis example located in the
samples/stock folder.
If I run the sample using a SimpleAxisServer (i.e., not JRun) as the
readme file suggests, the example works well as long as the users.lst
file is located in the folder where I started my SimpleAxisServer.
The users.lst file contains a list of valid username/passwords used by
Axis' basic authentication.
When I attempt to use my JRun server to run the sample, the service is
deployed successfully but any method requiring user authentication
fails with the following error:
C:\Program Files\Allaire\JRun\servers\default\axis\samples\stock>java
samples.stock.GetQuote -uuser1 -wpass1 XXX
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}string: return code: 401
<?xml version="1.0" encoding="UTF-8"?>
<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>User &apos;null&apos; not authenticated
(unknown user)</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at samples.stock.GetQuote.getQuote(GetQuote.java:120)
at samples.stock.GetQuote.main(GetQuote.java:134)
It is important to note that I get this same error using the
aforementioned SimpleAxisServer if the users.lst file is NOT located
in the folder where I started my SimpleAxisServer. This would imply,
perhaps, that my users.lst file is not where JRun wants it to be.
After many attempts, placing the users.lst file everywhere, I have not
been able to get it to work.
Can anyone tell me what I am doing wrong? In what JRun folder should
the users.lst be located?
Any and all help greatly appreciated.
Thanks,
Peter Desjardins
Oh, and here's a hint for anyone else trying to install Apache Axis
1.1 on a JRun 3.1 server:
Change the jrun.classpath value found in the 'C:\Program
Files\Allaire\JRun\lib\global.properties' file so that a reference to
the location of your XML parser jar files (e.g., xercesImpl.jar) is
listed before the '{jrun.rootdir}/lib/ext' reference.