Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » NoClassDefFoundError
NoClassDefFoundError [message #101497] Wed, 14 November 2007 14:55 Go to next message
Eclipse UserFriend
Originally posted by: pfischer06.fast-mail.org

Hello,

I try to start an equinox based app in eclipse:

- two bundles A und B: A exports some interfaces and classes and B is
using them
- B has A as required-bundle.
- eclipse shows no compiler errors
- validating the equinox-start-configurarion shows no error
- starting the app, the osgi-consle shows all needed bundles activated.

But:
calling then functions of bundle B throws an
java.lang.NoClassDefFoundError for an Interface of A implemented in B.

What do I wrong?

regards,
Peter
Re: NoClassDefFoundError [message #101509 is a reply to message #101497] Wed, 14 November 2007 15:13 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Peter Fischer wrote:
> Hello,
>
> I try to start an equinox based app in eclipse:
>
> - two bundles A und B: A exports some interfaces and classes and B is
> using them
> - B has A as required-bundle.
> - eclipse shows no compiler errors
> - validating the equinox-start-configurarion shows no error
> - starting the app, the osgi-consle shows all needed bundles activated.
>
> But:
> calling then functions of bundle B throws an
> java.lang.NoClassDefFoundError for an Interface of A implemented in B.
>
> What do I wrong?
>
> regards,
> Peter

From what you describe I do not see a reason it is failing. Are you
launching eclipse from your workspace with a launch configuration
(self-hosting)? Or are you exporting the bundle jars and installing
them into an eclipse installation? If so can you confirm the interface
class got included in the bundle? If you have a simple testcase can you
attach it here?

Tom
Re: NoClassDefFoundError [message #101522 is a reply to message #101497] Thu, 15 November 2007 08:18 Go to previous message
Eclipse UserFriend
Originally posted by: sf.tragwerk-dresden.de

Make sure that the plugin is activated when one of its classes is
loaded. Your MANIFEST.MF should contain the line

Eclipse-LazyStart: true

Sebastian
Previous Topic:Eclipse Help System - org.eclipse.help.webapp (conflict with RAP or equinox)
Next Topic:Did somebody use JUnit to test OSGi application?
Goto Forum:
  


Current Time: Sat Apr 20 02:41:59 GMT 2024

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

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

Back to the top