I have a State-Less Session Session EJB (3.0) deployed as a WebService on JBOSS 4.2.2 server in its own EAR file. I have another EAR which has a web application (WAR), which calls the EJB methods as a web-services client (service consumer). When I deply both EARS and run my application, I get a ClassCastException ..... at $Proxy109. When I run the web-services client as a standalone app, I am able to successfully invoke the EJB methods. Appreciate any help on this.
Check the classpath for your web application, may be it isn't referencing jbossws jars (jbossws-core, jbossws-spi,jbossws-cliente,...)