Deploy de Web service Axis

2 respostas
abelgomes

Boa tarde pessoal, estou desenvolvendo um webservice, na minha maquina ele funciona normalmente, porém quando faço o deploy para o tomcat do servidor aparece o seguinte erro:

09/12/2009 16:29:05 org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode: 
 faultString: (404)Not Found
 faultActor: 
 faultNode: 
 faultDetail: 
	{}:return code:  404
<html><head><title>Apache Tomcat/6.0.20 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /Afi2009/services/ServicosSICOP</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/Afi2009/services/ServicosSICOP</u></p><p><b>description</b> <u>The requested resource (/Afi2009/services/ServicosSICOP) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.20</h3></body></html>
	{http://xml.apache.org/axis/}HttpErrorCode:404

(404)Not Found
	at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at servicos.ServicosSICOPSoapBindingStub.getNes(ServicosSICOPSoapBindingStub.java:121)
	at servicos.ServicosSICOPProxy.getNes(ServicosSICOPProxy.java:50)
	at servicos.TesteServico.main(TesteServico.java:13)

ja coloquei os .jar do axis na lib do tomcat, usei uma implementação no contrutor da classe que implementa o service e nada mudou. Alguma luz?
existe alguma maneira especifica de fazer deploy?
lembrando que a aplicação funciona normalmente, porém qaundo vou acessar o serviço por uma aplicação cliente da esse erro.

2 Respostas

B

Posta seu código também e, se possível, o wsdl. Este erro significa que ele não encontrou o endereço especificado no arquivo wsdl.

abelgomes

meu wsdl. Lembrando que ele foi gerado pelo eclipse com aquele wizard que gera o servico.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://servicos" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://servicos" xmlns:intf="http://servicos" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="http://servicos" xmlns="http://www.w3.org/2001/XMLSchema">
   <element name="getNes">
    <complexType>
     <sequence>
      <element name="ug" type="xsd:string"/>
      <element name="gestao" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="getNesResponse">
    <complexType>
     <sequence>
      <element name="getNesReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="getNls">
    <complexType>
     <sequence>
      <element name="ug" type="xsd:string"/>
      <element name="gestao" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="getNlsResponse">
    <complexType>
     <sequence>
      <element name="getNlsReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
  </schema>
 </wsdl:types>

   <wsdl:message name="getNlsResponse">

      <wsdl:part element="impl:getNlsResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getNlsRequest">

      <wsdl:part element="impl:getNls" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getNesResponse">

      <wsdl:part element="impl:getNesResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getNesRequest">

      <wsdl:part element="impl:getNes" name="parameters"/>

   </wsdl:message>

   <wsdl:portType name="ServicosSICOP">

      <wsdl:operation name="getNes">

         <wsdl:input message="impl:getNesRequest" name="getNesRequest"/>

         <wsdl:output message="impl:getNesResponse" name="getNesResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getNls">

         <wsdl:input message="impl:getNlsRequest" name="getNlsRequest"/>

         <wsdl:output message="impl:getNlsResponse" name="getNlsResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="ServicosSICOPSoapBinding" type="impl:ServicosSICOP">

      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getNes">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getNesRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getNesResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getNls">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getNlsRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getNlsResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="ServicosSICOPService">

      <wsdl:port binding="impl:ServicosSICOPSoapBinding" name="ServicosSICOP">

         <wsdlsoap:address location="http://localhost:8080/Afi2009/services/ServicosSICOP"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

tb lembrando que roda show de bola na minha maquina, só quando joga para o tomcat fora do eclipse que da esse erro.

Criado 9 de dezembro de 2009
Ultima resposta 10 de dez. de 2009
Respostas 2
Participantes 2