File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes can i use the AdminClient tool to deploy my ws package to wls or jboss? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "can i use the AdminClient tool to deploy my ws package to wls or jboss?" Watch "can i use the AdminClient tool to deploy my ws package to wls or jboss?" New topic
Author

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

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
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!
Sam Bom
Greenhorn

Joined: Jan 24, 2003
Posts: 22
I also had the same problem with my WebLogic6.1
Please let me know if u find out the solution...
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
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


Spritle Software Blogs
Arunachalam Thenappan
Greenhorn

Joined: Sep 28, 2005
Posts: 1
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can i use the AdminClient tool to deploy my ws package to wls or jboss?
 
Similar Threads
Proble While deploying Web Services
Unable to deploy Web Service
how to write java web service client
The web group /axis/services/AdminService has not been defined
unauthorized error while accessing remote WS.