Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Import-Package weird
Import-Package weird [message #836476] Wed, 04 April 2012 14:27 Go to next message
eugene rabii is currently offline eugene rabiiFriend
Messages: 13
Registered: February 2012
Junior Member
This is as simple as it can get, I think.

I deploy a bundle (drop it in pick-up) and it throws:


Import-Package could not be resolved. Caused by missing constraint in bundle <com.eugene.osgi-common_1.0.0.SNAPSHOT>
constraint: <Import-Package: com.google.common.base; version="0.0.0">

Then I do
osgi> clload com.google.common.base.Ascii

Successfully loaded [com.google.common.base.Ascii] from:
134 com.eugene.core.osgi-common-core

If virgo says it's there, why can't it load it?

I am using maven bundle plugin to create the bundles.

Thx,
Eugene.

Re: Import-Package weird [message #836499 is a reply to message #836476] Wed, 04 April 2012 15:02 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Just because com.eugene.core.osgi-common-core can load the class doesn't mean to say that com.eugene.core.osgi-common-core exports the package. Wink
Re: Import-Package weird [message #837140 is a reply to message #836499] Thu, 05 April 2012 10:08 Go to previous messageGo to next message
eugene rabii is currently offline eugene rabiiFriend
Messages: 13
Registered: February 2012
Junior Member
True Smile my bad actually.

The thing is that I am trying to use some class that actually uses jndi. I have a bundle that exports : "org.apache.qpid.jndi.PropertiesFileInitialContextFactory", I can see that it really is exported with clexport.

And I have another bundle that is trying to use that class, but it fails with ClassNotFoundException. It probably has to do with class loading issue..

Re: Import-Package weird [message #839798 is a reply to message #837140] Mon, 09 April 2012 07:57 Go to previous message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

Can you please describe in more details the scenario and also how you are trying to use JNDI.
Also can you tell us whether you are using some OSGi JNDI implementation (e.g. Gemini Naming)

Thanks
Violeta
Previous Topic:Fresh installation problem
Next Topic:OSGI reference Bean not found
Goto Forum:
  


Current Time: Thu Apr 25 10:26:31 GMT 2024

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

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

Back to the top