Alessio
Got a ClassCastException when I tried that (btw, there is a typo in my
earlier post - the impl POJO is CXFLibraryImpl and the Library is the
interface, I adjusted web.xml accordingly)
Error:
java.lang.ClassCastException: com.sosnoski.ws.library.cxf.CXFLibraryImpl
cannot be cast to javax.servlet.Servlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Any ideas?
Note: I didn't try with 3.3.1 GA yet because my JBoss AS version is 5.0.0
and the ant.properties file for 3.3.1GA didn't mention it works with 5.0.0.
CV
Alessio Soldano wrote:
>
> Yes, where com.sosnoski.ws.library.cxf.Library is your pojo. That's
> basically the way pojo ws endpoins are declared in JBossWS:
> http://community.jboss.org/wiki/JBossWS-UserGuide#Plain_old_Java_Object_POJO
> The web.xml is used for creating the actual web app that later uses
> Apache CXF.
>
> Cheers
> Alessio
>
> --
> Alessio Soldano
> Web Service Lead, JBoss
>
>
>
--
View this message in context:
http://old.nabble.com/JBoss-CXF-integration-%3A-org.springframework.beans.TypeMismatchException-in-sample-webservice-tp28879980p28881640.html
Sent from the cxf-user mailing list archive at Nabble.com.