[jboss-user] [JBoss Web Services CXF] - ClassCastException: MyImpl cannot be cast to javax.servlet.Servlet

Alessio Soldano do-not-reply at jboss.com
Tue Jun 15 02:44:08 EDT 2010


Alessio Soldano [http://community.jboss.org/people/alessio.soldano%40jboss.com] replied to the discussion

"ClassCastException: MyImpl cannot be cast to javax.servlet.Servlet"

To view the discussion, visit: http://community.jboss.org/message/547977#547977

--------------------------------------------------------------
I believe there might be something wrong in the way the JBossWS-CXF is installed there, as I don't see anything special in your application that would cause jbossweb to try deploying it a common webapp instead of a ws endpoint. Basically, what's happening is that the jbossws deployer does not seem to have been run.
So, first of all, what do you mean with JBoss Enterprise 5.0.RC1 ? Is that JBoss Enterpise Application Platform 5 (EAP5)? If it's that, I'm wondering why you're not using the final release. Moreover, there's a EAP 5.0 version with CXF already installed (currently tech preview), if you're a customer with valid support you should have access to that too.
How did you install the jbossws-cxf 3.2.2 ? Did you run the installer from the binary distribution? Please note that, even if afaik you should actually not be allowed to change the ws stack in EAP without invalidating the support, the target to provide for trying using the community version of jbossws there is "jboss510".
You might want to do a couple of quick checks:
- try building the testsuite from the src dist ("mvn -Ptestsuite,jbossXYZ test", see  http://community.jboss.org/wiki/JBossWS-BuildingFromSource http://community.jboss.org/wiki/JBossWS-BuildingFromSource in any case) and deploy one of the samples that are similar to your usecase (for instance the jaxws-samples-wsse-sign.war); those are meant to work and tested against the supported target container before release, so you can use them a) for verifying the installation is ok, b) as a starting point for developing your apps
- try downloading a vanilla JBoss AS 6 M3 (community version), install JBossWS-CXF 3.3.1.GA on top of that, and try both your app and the samples mentioned above

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/547977#547977]

Start a new discussion in JBoss Web Services CXF at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2046]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100615/46eede34/attachment.html 


More information about the jboss-user mailing list