Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linuxtools-dev] System-installed dependencies

Alright, I went back to using "external" dependencies, and Eclipse is back to failing to start up.

Here's the exception I get in the log:

org.osgi.framework.BundleException: Exception in org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start() of bundle org.eclipse.equinox.p2.reconciler.dropins.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Caused by: java.lang.NoClassDefFoundError: org/sat4j/specs/TimeoutException
	at org.eclipse.equinox.internal.p2.director.SimplePlanner.getSolutionFor(SimplePlanner.java:315)
	at org.eclipse.equinox.internal.p2.director.SimplePlanner.getProvisioningPlan(SimplePlanner.java:346)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.createProvisioningPlan(ProfileSynchronizer.java:434)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.synchronize(ProfileSynchronizer.java:95)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.synchronize(Activator.java:422)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:171)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
	... 10 more
Caused by: java.lang.ClassNotFoundException: org.sat4j.specs.TimeoutException
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
	... 19 more

Apparently it's having trouble finding Sat4J.  Here's the contents of /usr/lib/eclipse-3.5/plugins/org.sat4j.core_2.1.0.v20090520.jar:

     0 Thu Nov 12 16:01:50 EST 2009 META-INF/
  1521 Thu Nov 12 16:01:50 EST 2009 META-INF/MANIFEST.MF
  1568 Wed May 20 23:19:52 EDT 2009 plugin.properties

And here's the MANIFEST.MF from that JAR:

Manifest-Version: 1.0
Export-Package: org.sat4j;version="2.1.0.v20090520",org.sat4j.core;ver
 sion="2.1.0.v20090520",org.sat4j.minisat;version="2.1.0.v20090520",or
 g.sat4j.minisat.constraints;version="2.1.0.v20090520",org.sat4j.minis
 at.constraints.card;version="2.1.0.v20090520",org.sat4j.minisat.const
 raints.cnf;version="2.1.0.v20090520",org.sat4j.minisat.core;version="
 2.1.0.v20090520",org.sat4j.minisat.learning;version="2.1.0.v20090520"
 ,org.sat4j.minisat.orders;version="2.1.0.v20090520",org.sat4j.minisat
 .restarts;version="2.1.0.v20090520",org.sat4j.minisat.uip;version="2.
 1.0.v20090520",org.sat4j.opt;version="2.1.0.v20090520",org.sat4j.read
 er;version="2.1.0.v20090520",org.sat4j.specs;version="2.1.0.v20090520
 ",org.sat4j.tools;version="2.1.0.v20090520",org.sat4j.tools.xplain;ve
 rsion="2.1.0.v20090520"
Implementation-Title: SAT4J
Bundle-ClassPath: external:/usr/share/sat4j-core-2/lib/org.sat4j.core.
 jar
Implementation-Version: 2.1.0.v20090520 
Built-By: Daniel Le Berre
Specification-Vendor: Daniel Le Berre
Bundle-Name: %bundleName
Bundle-Localization: plugin
Created-By: 11.3-b02 (Sun Microsystems Inc.)
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Bundle-Vendor: %providerName
Implementation-Vendor: CRIL CNRS UMR 8188 - Universite d'Artois
Ant-Version: Apache Ant 1.7.1
Bundle-Version: 2.1.0.v20090520
Bundle-ManifestVersion: 2
Specification-Title: SAT4J
Bundle-SymbolicName: org.sat4j.core
Specification-Version: NA
Main-Class: org.sat4j.BasicLauncher

Here's the contents of /usr/lib/eclipse-3.5/plugins/org.sat4j.pb_2.1.0.v20090520.jar:

     0 Thu Nov 12 16:01:50 EST 2009 META-INF/
  1126 Thu Nov 12 16:01:50 EST 2009 META-INF/MANIFEST.MF
  1570 Wed May 20 23:19:54 EDT 2009 plugin.properties

And here's the MANIFEST.MF from that JAR:

Manifest-Version: 1.0
Export-Package: org.sat4j.pb;version="2.1.0.v20090520",org.sat4j.pb.co
 nstraints;version="2.1.0.v20090520",org.sat4j.pb.constraints.pb;versi
 on="2.1.0.v20090520",org.sat4j.pb.core;version="2.1.0.v20090520",org.
 sat4j.pb.orders;version="2.1.0.v20090520",org.sat4j.pb.reader;version
 ="2.1.0.v20090520",org.sat4j.pb.tools;version="2.1.0.v20090520"
Implementation-Title: SAT4J
Bundle-ClassPath: external:/usr/share/sat4j-pseudo-2/lib/org.sat4j.pb.
 jar
Implementation-Version: 2.1.0.v20090520 
Class-Path: org.sat4j.core.jar
Built-By: Daniel Le Berre
Specification-Vendor: Daniel Le Berre
Bundle-Name: %bundleName
Bundle-Localization: plugin
Created-By: 11.3-b02 (Sun Microsystems Inc.)
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Require-Bundle: org.sat4j.core
Bundle-Vendor: %providerName
Ant-Version: Apache Ant 1.7.1
Implementation-Vendor: CRIL CNRS UMR 8188 - Universite d'Artois
Bundle-Version: 2.1.0.v20090520
Bundle-ManifestVersion: 2
Specification-Title: SAT4J
Bundle-SymbolicName: org.sat4j.pb
Specification-Version: NA
Main-Class: org.sat4j.pb.LanceurPseudo2007

Do you see anything wrong with this?  I'm at my wits end trying to make Eclipse behave on Gentoo.


On Thursday, 12 November 2009, at 2:58:32 pm, Matt Whitlock wrote:
> Okay, so that *is* a requirement.  No, they're just plain old JARs.  So I will have to go back to my previous way of doing it: gutting the dependency JARs in the "plugins" directory and rewriting their manifests with "external" Bundle-ClassPath references to the system-installed JARs.  The reason I switched to using symlinks was that doing the "external" references was no longer allowing Eclipse to start up if there was no pre-established ~/.eclipse directory.  Hopefully I can figure out why that's happening.
> 
> 
> On Thursday, 12 November 2009, at 7:40:03 am, Andrew Overholt wrote:
> > Hi,
> > 
> > * Matt Whitlock <matt@xxxxxxxxxxxxx> [2009-11-12 05:53]:
> > > You've mentioned before that overwriting dependency JARs with symlinks
> > > to system-installed copies should work.
> > 
> > Do the system JARs have the sami OSGi metadata as the Eclipse ones?
> > 
> > Andrew
> > _______________________________________________
> > linuxtools-dev mailing list
> > linuxtools-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/linuxtools-dev
> > 
> 


Back to the top