[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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)?

Tom



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,


From:

Emmanuel Potvin <epotvin@xxxxxxxxxxx>

To:

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

Date:

03/28/2008 12:56 PM

Subject:

[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 =
Thread.currentThread().getContextClassLoader()
.getResourceAsStream("Hibernate.cfg.xml");


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?

Emmanuel

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

GIF image

GIF image