*
The moose likes Web Services and the fly likes Apacha Axis Error (401 ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apacha Axis Error (401 )" Watch "Apacha Axis Error (401 )" New topic
Author

Apacha Axis Error (401 )

phenix java
Greenhorn

Joined: Jun 20, 2004
Posts: 13
I have running a sample webservice over apache axis on a window platform.
user_axis_step

command
java -cp .;%AXISCLASSPATH% samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX

I had get error exception message. Can somebody plz tell me where I am going wrong? Are there some environment setup issues? Thank a lot for advance.

AxisFault
faultCode: {http:xml.apache.org/axis/}HTTP
faultSubcode:
faultString:<401>Unauthorized
faultActor:
faultNode:
faultDetail:{} return code: 401...........................................................


Error_Image

Best Regards
phenix


If I don't make dust. I may eat dust.<br />SCJP 1.4 ,SCWCD 1.4,SCBCD 1.3
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41624
    
  55
That means that the username and/or password you send along are not valid on the server. Have you configured a Realm so that Tomcat knows where to look up usernames and passwords?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apacha Axis Error (401 )