• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

can i use the AdminClient tool to deploy my ws package to wls or jboss?

 
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
i use the axis to test webservice,and use the AdminClient tool to deploy my program to tomcat,it works.but i wonder if i want to deploy it to weblogic or jboss,can i use the same tool?
such as i deploy it to wls7,i issue following command:

java org.apache.axis.client.AdminClient deploy.wsdd

and following exception is thrown:

[INFO] AdminClient - -Processing file deploy.wsdd
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultString: (401)Unauthorized
faultActor: null
faultDetail:
null: return code: 401
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Unauthorized</TITLE>
</HEAD><BODY><H1>Unauthorized</H1>
</BODY></HTML>

(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1296)
at org.apache.axis.client.AdminClient.process(AdminClient.java:319)
at org.apache.axis.client.AdminClient.process(AdminClient.java:298)
at org.apache.axis.client.AdminClient.process(AdminClient.java:305)
at org.apache.axis.client.AdminClient.process(AdminClient.java:256)
at org.apache.axis.client.AdminClient.main(AdminClient.java:341)
[ERROR] AdminClient - -Exception: <(401)Unauthorized>

why?who can help me?
thank you!
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also had the same problem with my WebLogic6.1
Please let me know if u find out the solution...
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it depends on what port you had installed wls. by default the adminclient will try to deploy at port:8080
You have to supply proper parameters to deploy it in wls, see here for more info http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide.html#PublishingServices
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try giving something like
java org.apache.axis.client.AdminClient -l http://127.0.0.1:8080/axis/servlet/AxisServlet deploy.wsdd
The default uses localhost and it doesn't work for me. I tried changing it to 127.0.0.1 and it works :-)

I don't understand why this works though.

Hope that helps!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic