Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » quickstart configurations and classpath problems
quickstart configurations and classpath problems [message #95935] Mon, 27 August 2007 11:56 Go to next message
Eclipse UserFriend
Originally posted by: arash.amiri.researchstudio.at

Hi!

I try to base our application on equinox (they way it has been introduced
in the quickStart guide).

Our app is based on Sesame and Elmo (RDF frameworks from www.OpenRDF.org).

So I tried to wrap Elmo as an OSGi bundle. This turned out to be a real
pain, but I managed to get quite far. (I wrapped all dependencies as
bundles and dragged them to the plugin folder, restarted equinox and ran
"diag" to see which further bundles I had to create and deploy)

I got to the point where I wrapped "EasyMock" as a bundle and once
deployed I got this message:

Missing imported package META-INF.maven.org.objenesis.objenesis_0.0.0.
Missing imported package org.easymock_0.0.0.
Missing imported package org.easymock.classextension_0.0.0.
Missing imported package org.easymock.classextension.internal_0.0.0.
Missing imported package
org.easymock.classextension.internal.objenesis_0.0.0.

Missing imported package
org.easymock.classextension.internal.objenesis.instantiator_ 0.0.0.
Missing imported package
org.easymock.classextension.internal.objenesis.instantiator. basic_0.0.0.
Missing imported package
org.easymock.classextension.internal.objenesis.instantiator. gcj_0.0.0.
Missing imported package
org.easymock.classextension.internal.objenesis.instantiator. jrockit_0.0.0.
Missing imported package
org.easymock.classextension.internal.objenesis.instantiator. sun_0.0.0.
Missing imported package
org.easymock.classextension.internal.objenesis.strategy_0.0. 0.
Missing imported package org.easymock.internal_0.0.0.
Missing imported package org.easymock.internal.matchers_0.0.0.
Missing imported package sun.reflect_0.0.0.

The weird thing is the last line, where the "sun.reflect" package is
missing. This is really wierd, since it must be on the classpath. did I
miss some configuration there?

any help would we appreciated.

greetings,
arash
Re: quickstart configurations and classpath problems [message #95951 is a reply to message #95935] Mon, 27 August 2007 14:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arash.amiri.researchstudio.at

for now I set resolution:=optional (using the maven bundle plugin).

cheers.
Re: quickstart configurations and classpath problems [message #95981 is a reply to message #95935] Mon, 27 August 2007 20:10 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Arash wrote:
> Missing imported package sun.reflect_0.0.0.
>
> The weird thing is the last line, where the "sun.reflect" package is
> missing. This is really wierd, since it must be on the classpath. did I
> miss some configuration there?
>

The J2SE profiles only include public API as specified by the java
specification. This does not include any of the sun.* packages. The
Equinox framework detects which version of java you are running on and
exports only the packages which are specified by the public javadoc for
version of java you are running on. These packages end up being
exported by the system bundle. If you know you are running on a sun VM
you could install a system.bundle fragment which exports the sun.reflect
package from the VM. To do this you would have an shell fragment which
contains no real classes. Instead it just specifies that it should be
attached to the system.bundle and export the additional sun.reflect
package. This fragment bundle would have a manifest that looks
something like this:

Bundle-ManifestVersion: 2
Bundle-SymbolicName: sun.extra.packages
Bundle-Version: 1.0
Fragment-Host: system.bundle
Export-Package: sun.reflect

All this bundle does is tell the framework that the system.bundle should
export the additional package sun.reflect.

HTH.
Tom
Previous Topic:How can I find out why service registration failed?
Next Topic:New runtime breaks bundle
Goto Forum:
  


Current Time: Fri Apr 26 12:42:39 GMT 2024

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

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

Back to the top