• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

Issue deploying webservices

Hi
  I receive this error when i try to deploy my webservice. Its axis 1.4 on tomcat 5.5.28. (jdk 1.5)

adminclient failed with  {http://xml.apache.org/axis/}HTTP (401)Unauthorized

I'm using ant to deploy.

Please advice
0
trance12
Asked:
trance12
  • 2
  • 2
1 Solution
 
VenabiliCommented:
Can you post the full error - I am almost sure your server is not configured to allow the remote admin access but might be something else as well.  Are you deploying from localhost? I would suspect the answer is no.

If that's the case: http://www.mail-archive.com/axis-user@xml.apache.org/msg11061.html should solve it - you need to allow the access - modifying  enableRemoteAdmin  in server-config.wsdd
0
 
trance12Author Commented:
Thanks..

This is the whole error; it seems to be the remote admin issue. However i've changed server_config.wsdd to set the value to true and tried to deploy; but it gives me the same error?

adminclient] <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?><soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema"; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><soapenv:Fault><faultcode xmlns:ns1=&quot;http://xml.apache.org/axis/";>ns1:Server.Unauthorized</faultcode><faultstring>Remote administrator access is not allowed!</faultstring><detail><ns2:stackTrace xmlns:ns2=&quot;http://xml.apache.org/axis/";>Remote administrator access is not allowed!
[adminclient]   at org.apache.axis.utils.Admin.verifyHostAllowed(Admin.java:196)
[adminclient]   at org.apache.axis.utils.Admin.process(Admin.java:151)
[adminclient]   at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
[adminclient]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[adminclient]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[adminclient]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[adminclient]   at java.lang.reflect.Method.invoke(Method.java:585)
[adminclient]   at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:126)
[adminclient]   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
[adminclient]   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
[adminclient]   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[adminclient]   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[adminclient]   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
[adminclient]   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
[adminclient]   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
[adminclient]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
[adminclient]   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
[adminclient]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
[adminclient]   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
[adminclient]   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
[adminclient]   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
[adminclient]   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
[adminclient]   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[adminclient]   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
[adminclient]   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
[adminclient]   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
[adminclient]   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
[adminclient]   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
[adminclient]   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
[adminclient]   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
[adminclient]   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
[adminclient]   at java.lang.Thread.run(Thread.java:595)
0
 
trance12Author Commented:
sorry...to your ealier question

Yes, i am deploying from localhost; hence i dont see why the remoteEnabled value needs to be set to true.
0
 
VenabiliCommented:
does not recognise it as localhost for example... I always deploy with the remote Access allowed so had not seen this error for a while.

Did you restart tomcat after changing the value?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now