Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » References from Bundle-ClassPath
References from Bundle-ClassPath [message #134398] Mon, 06 July 2009 07:22
Maurizio  is currently offline Maurizio Friend
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
Previous Topic:How to get resource using ServletContext ?
Next Topic:org.osgi.framework.BundleException
Goto Forum:
  


Current Time: Mon Sep 23 08:47:35 GMT 2024

Powered by FUDForum. Page generated in 0.03265 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top