Home » Eclipse Projects » Equinox » Equinox command line vs Equinox Eclipse - Classpath issues.
Equinox command line vs Equinox Eclipse - Classpath issues. [message #120684] |
Tue, 04 November 2008 11:05  |
Eclipse User |
|
|
|
Gents,
I am having an issue running a packaged jar inside an equinox osgi prompt.
I have all of the dependencies solved and when checking the status of the
bundles, it says "Resolved", though when I run it I get a
NoClassDefFoundError.
When running the same project that the jar is based from inside Eclipse,
everything goes fine.
I have been through a few troubleshooting steps, like checking the
bundle-Classpath - making sure it matches the projects classpath before
jarring.
I would believe there is some quirky, simple thing I have missed in this
equation, an help is appreciated.
A link to the error, http://pastebin.com/m36b44de0
-Shaun
|
|
| |
Re: Equinox command line vs Equinox Eclipse - Classpath issues. [message #120704 is a reply to message #120696] |
Tue, 04 November 2008 11:36   |
Eclipse User |
|
|
|
Simon,
I just tried exporting with your advice - Deployable Plugins and
Fragments, same issues.
I have cracked open the jar and the .class and .java files are inside of
it in the correct location.
Manifest.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Db Plug-in
Bundle-SymbolicName: qq.mob.db;singleton:=true
Bundle-Version: 0.0.4
Bundle-Activator: qq.mob.db.Activator
Require-Bundle: Jama;bundle-version="1.0.0",
org.apache.log4j,
org.apache.collections;bundle-version="3.2.0",
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.jfree.chart,
qq.mob.scenario,
qq.mob.common;bundle-version="1.0.0",
qq.mob.utility;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.hibernate,
org.hibernate.criterion,
qq.epi.disease,
qq.epi.model,
qq.mob.db,
qq.mob.db.itrf,
qq.mob.model,
qq.mob.ref,
qq.mob.util
Bundle-ClassPath: .,
lib/antlr-2.7.6.jar,
lib/asm.jar,
lib/asm-attrs.jar,
lib/c3p0-0.9.1.jar,
lib/cglib-2.1.3.jar,
lib/commons-logging-1.0.4.jar,
lib/dom4j-1.6.1.jar,
lib/ejb3-persistence.jar,
lib/hibernate3.jar,
lib/hibernate-annotations.jar,
lib/hibernate-commons-annotations.jar,
lib/jta.jar,
lib/log4j-1.2.11.jar,
lib/mysql-connector-java-3.1.12-bin.jar,
conf/,
lib/Jama-1.0.2.jar
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.osgi.framework;version="1.3.0"
Photo of the project structure.
http://img261.imageshack.us/my.php?image=imageschackkc5.png
-Shaun
|
|
|
Re: Equinox command line vs Equinox Eclipse - Classpath issues. [message #120710 is a reply to message #120704] |
Tue, 04 November 2008 15:51   |
Eclipse User |
|
|
|
Hmm... from what you describe structurally it sounds ok.
I suspect the CNF is a nested exception based on another class needed to
define your activator.
One difference when running stand-alone vs. in the IDE is the value of:
org.osgi.framework.bootdelegation
A bundle should import "all" non-java.* packages it uses and at a glance it
appears you're not.
To narrow down the problem try setting "org.osgi.framework.bootdelegation=*"
-Simon
"Shaun Galey" <sgaley343gs@yahoo.com> wrote in message
news:163a26380abed8b8b120213d009c1038$1@www.eclipse.org...
> Simon,
>
>
> I just tried exporting with your advice - Deployable Plugins and
> Fragments, same issues.
>
> I have cracked open the jar and the .class and .java files are inside of
> it in the correct location.
>
> Manifest.MF
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Db Plug-in
> Bundle-SymbolicName: qq.mob.db;singleton:=true
> Bundle-Version: 0.0.4
> Bundle-Activator: qq.mob.db.Activator
> Require-Bundle: Jama;bundle-version="1.0.0",
> org.apache.log4j,
> org.apache.collections;bundle-version="3.2.0",
> org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.jfree.chart,
> qq.mob.scenario,
> qq.mob.common;bundle-version="1.0.0",
> qq.mob.utility;bundle-version="1.0.0"
> Bundle-ActivationPolicy: lazy
> Export-Package: org.hibernate,
> org.hibernate.criterion,
> qq.epi.disease,
> qq.epi.model,
> qq.mob.db,
> qq.mob.db.itrf,
> qq.mob.model,
> qq.mob.ref,
> qq.mob.util
> Bundle-ClassPath: .,
> lib/antlr-2.7.6.jar,
> lib/asm.jar,
> lib/asm-attrs.jar,
> lib/c3p0-0.9.1.jar,
> lib/cglib-2.1.3.jar,
> lib/commons-logging-1.0.4.jar,
> lib/dom4j-1.6.1.jar,
> lib/ejb3-persistence.jar,
> lib/hibernate3.jar,
> lib/hibernate-annotations.jar,
> lib/hibernate-commons-annotations.jar,
> lib/jta.jar,
> lib/log4j-1.2.11.jar,
> lib/mysql-connector-java-3.1.12-bin.jar,
> conf/,
> lib/Jama-1.0.2.jar
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Import-Package: org.osgi.framework;version="1.3.0"
>
>
>
> Photo of the project structure.
> http://img261.imageshack.us/my.php?image=imageschackkc5.png
>
>
> -Shaun
>
>
|
|
| | | | | |
Goto Forum:
Current Time: Tue Jun 17 23:01:41 EDT 2025
Powered by FUDForum. Page generated in 0.47089 seconds
|