cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiang, Ning \(Willem\)" <Ning.Ji...@iona.com>
Subject RE: Problem with CXFServlet - migrating from xfire to CXF
Date Sat, 14 Jul 2007 03:04:53 GMT
Can you show me your bean.xml?

I think you do not use the bundle jar, right?
You need to add the resourceManager implementation jar in the class path.
It is cxf-common-utilities-2.0-incubator.jar in the CXF_INSTALL\modules\ directory.

Willem.

-----Original Message-----
From: Scott Archer [mailto:scott.archer@gmail.com]
Sent: Fri 7/13/2007 22:46
To: cxf-dev@incubator.apache.org
Subject: Problem with CXFServlet - migrating from xfire to CXF
 
I'm trying to migrate from xfire to CXF.

When my application starts up I get the following Exception.
I checked the CXFServlet at line 148 and It looks like the problem is
actually on line 147.

ResourceManager resourceManager = bus.getExtension(ResourceManager.class);

This call is returning null for the resourceManager. I'm not really
sure why, and I don't know where to look, so I thought I'd try the
mailing list.

Thanks,

Scott


java.lang.NullPointerException
	at org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:148)
	at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:96)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 13, 2007 9:34:16 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /econnect threw load() exception
java.lang.NullPointerException
	at org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:148)
	at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:96)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 13, 2007 9:34:16 AM org.apache.coyote.http11.Http11Protocol start


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