Todd,
The linkage error comes
from the fact that you added w3c dom directly to the spec bundle, and
apparently the Document class does not match the one that DC was compiled
against. Document should be resolved dynamically by OSGi (typically from the
xerces bundle). You need to run under a 1.5 or later JDK (as we currently
use java annotations for some of our infrastructure). It sounds like you may be
picking up a different JDK.
If you go to your project
workspace and look under the /.metadata/.plugins/org.eclipse.pde.core
directory, you should find some folders that match your debug/run
configurations. Check out the config.ini file under one of these folders to see
the list of bundles that you need to have in your environment.
Cheers,
Joel
The contents of this e-mail are intended for the named addressee only.
It contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose it
to anyone else. If you received it in error please notify us immediately and
then destroy it.
From: cosmos-dev-bounces@xxxxxxxxxxx
[mailto:cosmos-dev-bounces@xxxxxxxxxxx] On
Behalf Of Todd, John A
Sent: Monday,
July 30, 2007 10:38 AM
To: Cosmos Dev
Subject: [cosmos-dev] Starting DC
outside eclipse
I’m trying to start the Data
Collector using OSGi outside eclipse. I’m having some trouble and
looking for some help.
First of all, in order to get all
the bundles to become ‘ACTIVE’ in OSGi I had to add some things to
some of the bundles
Specifically, for org.eclipse.cosmos.dc.spec,
I was getting an unresolved symbol for org.w3c.dom.Node
I added the org.w3c.dom package
directly to the bundle and then it found it.
Similar situation for
sample.components.
Stranger situation for
org.eclipse.cosmos.dc.mgmt.wsdm, I got an unresolved symbol
javax.management.IntrospectionException, which comes from the java sdk rt.jar
I added the rt.jar from my JAVA_HOME
directly to the bundle and it found it.
I don’t think I should have to
do this, I’m wondering what the magic is that eclipse does to not have
this problem.
With all the unresolved symbol
references taken care of, now during initialization I get this
Entry
bundleentry://62/OSGI-INF/Advertisement/advertisement-consumer.xml
java.lang.LinkageError: Class org/w3c/dom/Document
violates loader constraints
Anybody seen anything like this
before?