Apparently you have inconsistent Tuscany jars/classes. Please check your 
classpath. For webapp, check WEB-INF/classes and lib.

Raymond Feng
Sent from my iPhone

On Sep 27, 2011, at 8:03 AM, Miguel Tinte <[email protected]> wrote:

> Hi everybody,
> I am trying to implement a binding REST servlet in a war application deployed 
> in Apache Tomcat. These are the components declared in my web.composite file:
>     
> <component name="MyWebComponent">
>         <implementation.web web-uri=""/> 
>         <reference name="service" target="SCAService2"/>
> </component>
>         
> <component name="SCAService2">
>         <implementation.java class="SomeSCAServiceImpl"/>
>         <service name="SomeSCAService">
>                <interface.java interface="SomeSCAService"/> 
>         </service> 
>         <reference name="appService" target="MyWebComponent">
>               <interface.java interface="SomeSCAService2"/>
>               <tuscany:binding.rest uri="http://....";>
>                   <tuscany:wireFormat.xml/>
>               </tuscany:binding.rest>    
>           </reference>
> </component>
> 
> But this is the console error returned:
> java.lang.NoSuchMethodError: 
> org.apache.tuscany.sca.definitions.xml.DefinitionsProcessor.getURIString(Ljavax/xml/stream/XMLStreamReader;Ljava/lang/String)
> 
> And this in the browser:
> http://localhost:8080/Application/rest
> Excepcion
> javax.servlet.ServletException: 
> org.apache.wink.server.internal.servlet.RestServlet 
> 
> Any idea?
> Thanks in advance
> 

Reply via email to