cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Webster <>
Subject Trouble with CXF, Embedded Jetty and Spring
Date Mon, 13 Jun 2011 17:43:13 GMT

I'm trying to run webservices and servlets on an embedded Jetty server via
CXF and using Spring. Under CXF 2.2.3 I kept getting NulPointerExceptions
when trying to access my services. After some searching I found the
following JIRA issue (
which states that the problem lies with Jetty6. So I upgrading to CXF 2.4
which uses a Jetty 7.3. I also changed my jetty-beans to suit Jetty7
according to the spring config files attached to the JIRA issue. This gave
rise to the following exception :

org.eclipse.jetty.server.handler.ContextHandler cannot be cast to
org.eclipse.jetty.server.handler.ContextHandler cannot be cast to

So I changed the ContextHandlers to ServletContextHandler
from org.eclipse.jetty.servlet (not included in CXF so I used the same Jetty
version i.e. 7.3.1.v20110307).

Now the server launches fine but I get 404s whenever I try to access
anything! Plus my traces in the servlets show that they aren't being
initialized at all.

Any help would be most appreciated!


PS. I'll dump the whole project (small) online at some point...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message