References from Bundle-ClassPath [message #134398] |
Mon, 06 July 2009 07:22 |
Maurizio Messages: 34 Registered: July 2009 |
Member |
|
|
Dear Sir,
I'm trying to make an OSGi bundle that invokes a method from an existing
Java application (non-OSGi) that uses Hibernate.
I have created a JAR file from the existing application (ref.
TestHibernate.jar) and I have also added the following to the bundle
MANIFEST:
"
Bundle-ClassPath: .,TestHibernate.jar
"
I have deployed this new bundle to Equinox, but when starting such bundle
I get an exception:
"
...
Caused by: java.lang.NoClassDefFoundError: org/hibernate/HibernateException
"
I should also say that the very first "import" from my existing
application is in fact:
"
import org.hibernate.HibernateException;
"
So, my question is: should I also add to "Bundle-ClassPath" all the JAR
that are used to build my existing application?
And, more important, is this "Bundle-ClassPath" info the only required
thing to specify when making the JAR to deploy to Equinox?
Thanks in advance.
Kind regards.
Maurizio
|
|
|
Powered by
FUDForum. Page generated in 0.03265 seconds