Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apacha Axis Error (401 )

 
phenix java
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic