ws-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Palma Dias <palmad...@yahoo.com.br>
Subject Re: problem in deploying a web service
Date Wed, 13 Oct 2004 12:06:35 GMT
Try
http://ws.apache.org/soap/faq/faq_chawke.html#Q1_1.



 --- Francesco Dipalo <ssppaamm@email.it> escreveu: 
> I want to deploy a service. I executed the following
> operations:
> 
> - deploying with Apache SOAP using a deployment
> descriptor file named WebService:
> 
> <isd:service 
>   
>
xmlns:isd="http://xml.apache.org/xml-soap/deployment"
>    id="urn:CompService">
>    
>    <isd:provider type="java"
>          scope="Application"
>          methods="getComp">
>      <isd:java class="tesi.application_controller"
>          static="false"/>
>    </isd:provider>
>    <isd:faultListener>
>    org.apache.soap.server.DOMFaultListener
>    </isd:faultListener>
>    <isd:mappings>
>    </isd:mappings>    
> </isd:service>
> 
> - invoking the getCount method using this java file
> named GetCompApp
> 
> package tesi;
> import java.net.*;
> import org.apache.soap.*;
> import org.apache.soap.rpc.*;
> public class GetCompApp {
>    public static void main(String[] args) 
>       throws Exception {
>       
>       URL url = 
>         new URL(
>          
> "http://localhost:8080/soap/servlet/rpcrouter");
>     
>       Call call = new Call();
>       call.setTargetObjectURI("urn:CompService");
>       call.setMethodName("getComp");
>       try {
>          Response resp = call.invoke(url, "");
>          Parameter ret = resp.getReturnValue();
>          Object value = ret.getValue();
>          System.out.println("Result is " + value);
>       }
>       catch (SOAPException e) {
>          System.err.println("Caught SOAPException ("
> +
>                          e.getFaultCode() + "): " +
>                          e.getMessage());
>       }
>    }
> }
> 
> but I received this exception:
> 
> Caught SOAPException (SOAP-ENV:Protocol):
> Unsupported response content type &quo
> t;text/html; charset=ISO-8859-1&quot;, must be:
> &quot;text/xml&quot;. Response w
> as:
> &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache
> Tomcat/4.1.30 - Error report&lt;/tit
> le&gt;&lt;STYLE&gt;&lt;!--H1{font-family :
> sans-serif,Arial,Tahoma;color : white
> ;background-color : #0086b2;} H3{font-family :
> sans-serif,Arial,Tahoma;color : w
> hite;background-color : #0086b2;} BODY{font-family :
> sans-serif,Arial,Tahoma;col
> or : black;background-color : white;} B{color :
> white;background-color : #0086b2
> ;} HR{color : #0086b2;} --&gt;&lt;/STYLE&gt;
> &lt;/head&gt;&lt;body&gt;&lt;h1&gt;
> HTTP Status 500 - &lt;/h1&gt;&lt;HR
> size=&quot;1&quot; noshade&gt;&lt;p&gt;&lt;b
> &gt;type&lt;/b&gt; Exception
> report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt;
> 
>
&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt;
> &lt;u&gt;T
> he server encountered an internal error () that
> prevented it from fulfilling thi
> s
>
request.&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;exception&lt;/b&gt;
> &lt;pre&gt;j
> avax.servlet.ServletException: Error building
> response envelope: java.lang.NullP
> ointerException
>         at
>
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
> java:418)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:256)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2422)
>         at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:171)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>         at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:163)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:174)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19
> 9)
>         at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :828)
>         at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:700)
>         at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :584)
>         at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
> &lt;/pre&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot;
> noshade&gt;&lt;h3&gt;Apache Tomc
> at/4.1.30&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
> 
> HOW CAN I RESOLVE THE PROBLEM????
> 
> 
>  --
>  Email.it, the professional e-mail, gratis per te:
> http://www.email.it/f
> 
>  Sponsor:
>  Vuoi risparmiare sulla tua polizza RCAuto? Fai un
> preventivo online e blocca
> * il prezzo ottenuto! Puoi risparmiare fino al 40%!
>  Clicca qui:
http://adv.email.it/cgi-bin/foclick.cgi?mid'12&d-10 

=====
------------------------------------------------------- 
Felipe F. Palma Dias 
http://geocities.yahoo.com.br/palmadias/


	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/

Mime
View raw message