Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Classpath problem
Classpath problem [message #69002] Sun, 06 January 2008 12:39 Go to next message
Krzysztof Daniel is currently offline Krzysztof DanielFriend
Messages: 42
Registered: July 2009
Member
Hello

I am trying to develop RAP app that uses EMF & TENEO.
So I need to use some 3rd part libs like hibernate3.jar.

I have added them to the plugin, everything compiles fine, but when
trying to use teneo features I get:

WARNING: Error for /rap;jsessionid=4v324dv553wh4?nocache=1199623041862
java.lang.NoClassDefFoundError: org/hibernate/Session

Am I doing something wrong?

--
Chris
Re: Classpath problem [message #69562 is a reply to message #69002] Wed, 09 January 2008 19:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Chris,

there shouldn't be any difference between including a library into RAP
and including a library into RCP or any other OSGi based application
A simple example compiles and runs fine, the relevant part of the
MANIFEST.MF looks like this:

Bundle-ClassPath: lib/my-lib.jar,
.

Just a wild guess: could it be that hibernate itself depends on some
library that is not on your class path?

I you can strip down your project to the relevant (not-working) parts,
feel free to post it here and we could have a look at it.

Cheers,
Rüdiger

Christopher Daniel wrote:
> Hello
>
> I am trying to develop RAP app that uses EMF & TENEO.
> So I need to use some 3rd part libs like hibernate3.jar.
>
> I have added them to the plugin, everything compiles fine, but when
> trying to use teneo features I get:
>
> WARNING: Error for /rap;jsessionid=4v324dv553wh4?nocache=1199623041862
> java.lang.NoClassDefFoundError: org/hibernate/Session
>
> Am I doing something wrong?
>
> --
> Chris
Re: Classpath problem [message #69739 is a reply to message #69562] Thu, 10 January 2008 21:35 Go to previous messageGo to next message
Krzysztof Daniel is currently offline Krzysztof DanielFriend
Messages: 42
Registered: July 2009
Member
Thanks Rudiger!

I have found the problem: bundle-classpath was empty. I have always
thought that adding jar to build path is enough, but aparently I was wrong.

Thanks once more.

Regards,
Chris
Re: Classpath problem [message #69759 is a reply to message #69739] Thu, 10 January 2008 21:40 Go to previous message
Eclipse UserFriend
Originally posted by: zx.us.ibm.com

> I have found the problem: bundle-classpath was empty. I have always
> thought that adding jar to build path is enough, but aparently I was wrong.

In Eclipse 3.4, there's a compiler option within PDE called "Bundle
classpath synchronization"

If you set that to true, it will catch cases like this.

Cheers,

~ Chris
Previous Topic:FocusGained Events from custom Buttons
Next Topic:Servlet Context Integration
Goto Forum:
  


Current Time: Thu Apr 18 23:10:49 GMT 2024

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

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

Back to the top