Actually, here is the full blog:

http://rjrojas.blogspot.com/2008_09_01_archive.html

Dan


On Friday 21 November 2008 10:33:08 am Daniel Kulp wrote:
> Someone started some code around this at:
>
> http://robertojrojas-free-code.googlecode.com/svn/trunk/RESTful-Services-Sp
>ringDM/RESTful-Services-SpringDM.txt
>
> That might help.
>
>
> Dan
>
> On Thursday 20 November 2008 4:38:52 pm Josh Holtzman wrote:
> > I'm trying to publish a rest-style web service from an OSGI bundle.
> > I've installed the cxf-bundle-2.2-SNAPSHOT.jar bundle (built from the
> > trunk today) into apache felix. Here's the code, copied directly from
> > the cxf documentation.
> >
> >         JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
> >         sf.setResourceClasses(SampleRestServiceImpl.class);
> >         sf.setAddress("http://localhost:8000/";);
> >         sf.create();
> >
> > The stack trace I'm getting is this:
> >
> > Nov 20, 2008 12:57:31 PM org.apache.cxf.BusFactory newInstance
> > SEVERE: Failed to instantiate bus factory.
> > java.lang.ClassCastException: class
> > org.apache.cxf.bus.spring.SpringBusFactory
> >     at java.lang.Class.asSubclass(Class.java:2979)
> >     at org.apache.cxf.BusFactory.newInstance(BusFactory.java:164)
> >     at org.apache.cxf.BusFactory.newInstance(BusFactory.java:140)
> >     at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
> >     at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
> >     at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
> >     at
> > org.apache.cxf.endpoint.AbstractEndpointFactory.getBus(AbstractEndpointFa
> >ct ory.java:73) at
> > org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpointInfo(JAXRSServe
> >rF actoryBean.java:180) at
> > org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createEndpoint(JAXRSServerFac
> >to ryBean.java:146) at
> > org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean
> >.j ava:88)
> >
> > Publishing wsdl-based web services using Endpoint.publish(address,
> > webService) works just fine.
> >
> > Any ideas what's up with my JAX-RS code / configuration?
> >
> > Thanks,
> > Josh



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog
-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to