This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apacha Axis Error (401 )" Watch "Apacha Axis Error (401 )" New topic

Apacha Axis Error (401 )

phenix java

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

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.

faultCode: {}HTTP
faultDetail:{} return code: 401...........................................................


Best Regards

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

Joined: Mar 22, 2005
Posts: 41583
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
subject: Apacha Axis Error (401 )