Cannot make the eclipse UI recognize bundles. [message #130194] |
Thu, 30 April 2009 00:36 |
Jason Henriksen Messages: 231 Registered: July 2009 |
Senior Member |
|
|
Question 1: Here's my manifest.mf:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: com.vsp.enterprise.contract
Bundle-SymbolicName: com.vsp.enterprise.contract
Bundle-Version: 1.0.0
Bundle-Vendor: VSP
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Export-Package: com.vsp.enterprise.contract.dashboard.jmx;version="1.0.0"
Fragment-Host: system.bundle; extension:=extclasspath
But eclipse gives me a red X saying:
"Host bundle 'org.eclipse.osgi' cannot be resolved"
I'm really getting frustrated with this. Why can't it resolve the
system bundle? How am I supposed to control what bundles it resolves at
compile time?
Question 2: How do I know what bundle I'm supposed to start first? I'm
trying to include a bunch of bundles out of WebSphere so that I can use
the JMX admin client inside of a service bundle. It's been an utter
nightmare. Has anyone done anything like this before?
Question 3: Do you have to use Import-Package on jars that are included
inside of your bundle? Is it even legal to put a JAR file inside of
your org.foo.bar bundle jar? Will the class loader be able to read it?
If someone could point out a real world example that isn't just a simple
'bundle starts / bundle stops' scenario I'd really appreciate it. So
far I can't get anything useful to work.
Everyone's talking about OSGi being a great thing, and I can see how it
could provide my company with real benefits. But the complexity of
getting these manifest files correct has been a nightmare so far.
Jason
|
|
|
Powered by
FUDForum. Page generated in 0.04856 seconds