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 10:27 Go to next message
eugene rabii is currently offline eugene rabii
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 11:02 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
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 06:08 Go to previous messageGo to next message
eugene rabii is currently offline eugene rabii
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 03:57 Go to previous message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 232
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 Jul 31 01:45:12 EDT 2014

Powered by FUDForum. Page generated in 0.01533 seconds