|Re: Retrieving a Bundle Classpath [message #753489 is a reply to message #753486]
||Thu, 27 October 2011 13:15
| Tony Day
Registered: October 2011
Thanks for your advice!
I have used these commands, they really are helpful. Hence why I'm stuck.
Basically I'm having an issue where my bundle cannot find CGLIB at runtime (although it is imported successfully) which is also shown using clload, clhas, clexport as expected. Although I'm still getting the following error:
AG0000E Application context creation failure for bundle 'com.acme.osgi.hibernate-session' version '1.0.0.SNAPSHOT'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dynamicConfiguration' defined in BeanDefinition defined in URL [bundleentry://153.fwk32113234/META-INF/spring/bundle-context.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
With the interesting part being:
org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
My proxy is simply:
Need to create a proxy because of, I guess, some mysterious circular
dependency which requires this bean to exist before it can be initialized.
<property name="hibernateProperties" ref="hibernateProperties" />
NOTE: I've been using code originally developed by Hans Loe, though added Hibernate 3.6.7 and other dependencies. OsgiHibernateSpringSpringDMSample This works fine in Equinox alone.
The following packages relevant to CGLIB 2.2.0 are being exported from one bundle, and imported into my current bundle (this resolves without problem):
I hope you can shed a light on why my bundle cannot find CGLIB.
[Updated on: Thu, 27 October 2011 13:19]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02490 seconds