[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] Eclipse buddy don't works

Thanks for the fast answer.


The real file name is HrEntityHibernate.cfg.xml and it is written correctly in the code. I modified it for the email only… I know it’s not the problem.


And yes my second bundle depends on the first. Here are my manifest files :


First :


Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: Alturalib Plug-in

Bundle-SymbolicName: com.compuware.alturalib

Bundle-Version: 1.0.0

Bundle-Activator: com.compuware.alturalib.Activator

Bundle-Vendor: COMPUWARE

Bundle-Localization: plugin

Eclipse-BuddyPolicy: registered

Import-Package: org.osgi.framework;version="1.3.0"

Bundle-ClassPath: alturalib.jar,




Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: Human resources

Bundle-SymbolicName: net.fudge.hr

Bundle-Version: 1.0.0

Bundle-Activator: net.fudge.hr.Activator

Bundle-Vendor: Fudge

Bundle-Localization: plugin

Eclise-RegisterBuddy: com.compuware.alturalib,


Import-Package: org.osgi.framework;version="1.3.0"

Bundle-ClassPath: .,




Export-Package: net.fudge.hr,





Require-Bundle: javax.servlet,





the HrEntityHibernate.cfg.xml file is in the root of my bundle.


De : equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] De la part de Thomas Watson
Envoyé : 28 mars 2008 14:38
À : Equinox development mailing list
Objet : Re: [equinox-dev] Eclipse buddy don't works


Is this error message correct:

org.hibernate.HibernateException: HrEntityHibernate.cfg.xml not found

It mentions HrEntityHibernate.cfg.xml but you indicate that the file should be Hibernate.cfg.xml. What is the extra "HrEntity" doing in there?

In order for registered buddy policy to work the buddies must depend on the bundle they are a buddy to. Does the bundle with Hibernate.cfg.xml depend on the com.compuware.alturalib bundle (using Import-Package or Require-Bundle)?


Inactive hide details for Emmanuel Potvin ---03/28/2008 12:56:29 PM---I have a bundle named com.compuware.alturalib containing Emmanuel Potvin ---03/28/2008 12:56:29 PM---I have a bundle named com.compuware.alturalib containing hibernate3.jar,


Emmanuel Potvin <epotvin@xxxxxxxxxxx>


"'Equinox development mailing list'" <equinox-dev@xxxxxxxxxxx>


03/28/2008 12:56 PM


[equinox-dev] Eclipse buddy don't works

I have a bundle named com.compuware.alturalib containing hibernate3.jar,
with the Eclipse-BuddyPolicy: registered in the manifest

And I have another bundle with hibernate entities plus metadata files
including hibernate.cfg.xml in the classpath. I put Eclipse-RegisterBuddy:
com.compuware.alturalib in the manifest.mf file, but when I execute the
following line from the activator of this bundle,

Configuration config = new Configuration().configure("Hibernate.cfg.xml");

I have a

org.hibernate.HibernateException: HrEntityHibernate.cfg.xml not found

If, always in the activator of my bundle, I execute :

InputStream stream =

I have a full working FileInputStream. So the file is really in the
classpath of my bundle, but the other one(com.compuware.alturalib) don't see
it! What's wrong?


equinox-dev mailing list

Attachment: image001.gif
Description: GIF image

Attachment: image003.png
Description: PNG image

Attachment: image004.png
Description: PNG image