incubator-wink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Feng <enjoyj...@gmail.com>
Subject Re: servlet REST error
Date Tue, 27 Sep 2011 15:37:07 GMT
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 <miguel.tinte@gmail.com> 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
> 

Mime
View raw message