Home » Eclipse Projects » Equinox » Equinox command line vs Equinox Eclipse - Classpath issues.
| |
Re: Equinox command line vs Equinox Eclipse - Classpath issues. [message #120704 is a reply to message #120696] |
Tue, 04 November 2008 16:36 |
Shaun Galey Messages: 16 Registered: July 2009 |
Junior Member |
|
|
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 20:51 |
Simon Kaegi Messages: 381 Registered: July 2009 |
Senior Member |
|
|
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: Wed Sep 18 23:55:54 GMT 2024
Powered by FUDForum. Page generated in 0.04183 seconds
|