I have a jaxrs service that is using spring to get data from a DB with hibernate and then returning it with cxf-jaxrs. It seems the DB stuff I am doing with spring to create a HibernateSession and manage transactions is causing all kinds of problems. However, this configuration works in other containers.
-----Original Message----- From: Johan Edstrom [mailto:[email protected]] On Behalf Of Johan Edstrom Sent: Thursday, April 15, 2010 1:52 PM To: [email protected] Subject: Re: Another Spring issue on servicemix 4 and use of Proxies Are you consuming a service? Try punting the classloading to the service provider context-class-loader="service-provider" On Apr 15, 2010, at 2:28 PM, Jason Chaffee wrote: > I am also seeing issues when spring tries to create a proxy. Does > anyone know how to solve this? > > > > Initialization of bean failed; nested exception is > java.lang.NoClassDefFoundError: Could not initialize class $Proxy121 > > > > It really seems the most basic use cases of spring are not working in > servicemix 4. It is very frustrating. I got them to work in another > OSGI env and they worked in servcicemix 3, but not with OSGI and > servicemix 4. > Johan Edstrom [email protected] They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety. Benjamin Franklin, Historical Review of Pennsylvania, 1759
