Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to compile a plugin dependent from another bundle jars
How to compile a plugin dependent from another bundle jars [message #77120] Tue, 14 November 2006 20:52 Go to next message
Nicolas Jouanin is currently offline Nicolas JouaninFriend
Messages: 52
Registered: July 2009
Member
Hi,

Easybeans EJB3 container provides a OSGi distribution of its product.
Mainly code resides in a org.objectweb.easybeans bundle which content is
listed below. I also provide the content of META-INF/MANIFEST.MF file.

Now, i need to create a plugin which needs to have in his classpath some
libraries which are contained in org.objectweb.easybeans, like
commons-logging-api.jar for example.

How can I manage that ?
If i simply add org.objectweb.easybeans.jar file to the Java build path of
my plugin I can only see classes defined in the .jar , not classes which
are stored inside the contained jars.

Are there some option to add on my plugin MANIFEST file ?

Thanks for your help,

Nicolas.


MANIFEST.MF file content:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_07-b03 (Sun Microsystems Inc.)
Bundle-Activator: org.objectweb.easybeans.osgi.core.Activator
Bundle-Name: EasyBeans Core
Bundle-Version: 0.1.0
Bundle-SymbolicName: org.objectweb.easybeans
Bundle-Description: EasyBeans Server
Bundle-ManifestVersion: 2
Bundle-ClassPath: ., /asm/asm-2.2.3.jar,/asm/asm-analysis-2.2.3.jar,/a
sm/asm-attrs-2.2.3.jar,/asm/asm-commons-2.2.3.jar,/asm/asm-t ree-2.2.3
.jar,/asm/asm-util-2.2.3.jar,/asm/asm-xml-2.2.3.jar,/commons -logging-
api.jar,/commons-modeler.jar,/connector-1_5.jar,/ejb-2_1-api .jar,/gnu
-mail.jar,/hibernate/core/hibernate3.jar,/hibernate/core/lib /antlr-2.
7.6.jar,/hibernate/core/lib/asm-attrs.jar,/hibernate/core/li b/asm.jar
,/hibernate/core/lib/c3p0-0.9.0.jar,/hibernate/core/lib/cgli b-nodep-2
.1_3.jar,/hibernate/core/lib/cleanimports.jar,/hibernate/cor e/lib/com
mons-collections-2.1.1.jar,/hibernate/core/lib/concurrent-1. 3.2.jar,/
hibernate/core/lib/dom4j-1.6.1.jar,/hibernate/core/lib/ehcac he-1.2.ja
r,/hibernate/core/lib/jacc-1_0-fr.jar,/hibernate/core/lib/ja xen-1.1-b
eta-7.jar,/hibernate/core/lib/jboss-cache.jar,/hibernate/cor e/lib/jbo
ss-common.jar,/hibernate/core/lib/jboss-jmx.jar,/hibernate/c ore/lib/j
boss-system.jar,/hibernate/core/lib/jgroups-2.2.8.jar,/hiber nate/core
/lib/oscache-2.1.jar,/hibernate/core/lib/proxool-0.8.3.jar,/ hibernate
/core/lib/swarmcache-1.0rc2.jar,/hibernate/core/lib/syndiag2 .jar,/hib
ernate/core/lib/versioncheck.jar,/hibernate/entitymanager/hi bernate-e
ntitymanager.jar,/hibernate/entitymanager/lib/ejb3-persisten ce.jar,/h
ibernate/entitymanager/lib/hibernate-annotations.jar,/hibern ate/entit
ymanager/lib/javassist.jar,/hibernate/entitymanager/lib/jbos s-archive
-browsing.jar,/jaxrpc.jar,/jms.jar,/jsr88-api.jar,/jta-spec1 _0_1.jar,
/ow_easybeans_api.jar,/ow_easybeans_core.jar,/ow_easybeans_i 18n.jar,/
ow_easybeans_jca_workmanager.jar,/ow_easybeans_log.jar,/ow_e asybeans_
util.jar,/ow_easybeans_management.jar,/ow_easybeans_transact ion.jar,/
ow_ejb3_core_api.jar,/ow_ejb3_persistence_api.jar,/servlet-2 _4.jar
Import-Package: javax.naming,org.w3c.dom,javax.xml.parsers,javax.xml.t
ransform,org.xml.sax,javax.management.remote,javax.managemen t;version
="1.5.0",org.objectweb.carol.jndi.spi
DynamicImport-Package: *
Export-Package: org.apache.commons.logging,org.objectweb.easybeans.api
,org.objectweb.easybeans.api.bean,org.objectweb.easybeans.ap i.injecti
on,org.objectweb.easybeans.component.api,org.objectweb.easyb eans.comp
onent.itf,org.objectweb.easybeans.container,org.objectweb.ea sybeans.c
ontainer.management,org.objectweb.easybeans.container.archiv e,org.obj
ectweb.easybeans.container.session,org.objectweb.easybeans.i njection,
org.objectweb.easybeans.jca.workmanager,org.objectweb.easybe ans.log,o
rg.objectweb.easybeans.naming.interceptors,org.objectweb.eas ybeans.os
gi.core,org.objectweb.easybeans.osgi.ejbjar,org.objectweb.ea sybeans.o
sgi.component,org.objectweb.easybeans.server,org.objectweb.e asybeans.
transaction,org.objectweb.easybeans.transaction.interceptors ,org.obje
ctweb.easybeans.util.url,javax.ejb,javax.persistence,javax.i ntercepto
r,javax.transaction;scope="jonas",javax.transaction.xa;scope= "jonas",
javax.resource,javax.resource.spi,javax.resource.spi.work,ja vax.resou
rce.spi.endpoint,javax.jms,org.hibernate.ejb,org.hibernate.p roxy,net.
sf.cglib.proxy


org.objectweb.easybeans content:
META-INF/
META-INF/MANIFEST.MF
ow_easybeans_api.jar
ow_easybeans_core.jar
ow_easybeans_i18n.jar
ow_easybeans_jca_workmanager.jar
ow_easybeans_log.jar
ow_easybeans_management.jar
ow_easybeans_persistence_openjpa.jar
ow_easybeans_persistence_oracle_toplink_essentials.jar
ow_easybeans_transaction.jar
ow_easybeans_util.jar
ow_easybeans_xmlconfig.jar
ow_ejb3_core_api.jar
ow_ejb3_persistence_api.jar
asm/
asm/asm-2.2.3.jar
asm/asm-analysis-2.2.3.jar
asm/asm-attrs-2.2.3.jar
asm/asm-commons-2.2.3.jar
asm/asm-tree-2.2.3.jar
asm/asm-util-2.2.3.jar
asm/asm-xml-2.2.3.jar
commons-logging-api.jar
commons-modeler.jar
connector-1_5.jar
ejb-2_1-api.jar
gnu-mail.jar
hibernate/
hibernate/core/
hibernate/core/hibernate3.jar
hibernate/core/lib/
hibernate/core/lib/antlr-2.7.6.jar
hibernate/core/lib/asm-attrs.jar
hibernate/core/lib/asm.jar
hibernate/core/lib/c3p0-0.9.0.jar
hibernate/core/lib/cglib-nodep-2.1_3.jar
hibernate/core/lib/cleanimports.jar
hibernate/core/lib/commons-collections-2.1.1.jar
hibernate/core/lib/concurrent-1.3.2.jar
hibernate/core/lib/dom4j-1.6.1.jar
hibernate/core/lib/ehcache-1.2.jar
hibernate/core/lib/jacc-1_0-fr.jar
hibernate/core/lib/jaxen-1.1-beta-7.jar
hibernate/core/lib/jboss-cache.jar
hibernate/core/lib/jboss-common.jar
hibernate/core/lib/jboss-jmx.jar
hibernate/core/lib/jboss-system.jar
hibernate/core/lib/jgroups-2.2.8.jar
hibernate/core/lib/oscache-2.1.jar
hibernate/core/lib/proxool-0.8.3.jar
hibernate/core/lib/swarmcache-1.0rc2.jar
hibernate/core/lib/syndiag2.jar
hibernate/core/lib/versioncheck.jar
hibernate/entitymanager/
hibernate/entitymanager/hibernate-entitymanager.jar
hibernate/entitymanager/lib/
hibernate/entitymanager/lib/ejb3-persistence.jar
hibernate/entitymanager/lib/hibernate-annotations.jar
hibernate/entitymanager/lib/javassist.jar
hibernate/entitymanager/lib/jboss-archive-browsing.jar
jaxrpc.jar
jms.jar
jsr88-api.jar
jta-spec1_0_1.jar
servlet-2_4.jar
persistence-openjpa/
persistence-openjpa/lib/
persistence-openjpa/lib/commons-collections-3.1.jar
persistence-openjpa/lib/commons-lang-2.1.jar
persistence-openjpa/lib/commons-pool-1.2.jar
persistence-openjpa/lib/openjpa-jdbc-0.9.0.jar
persistence-openjpa/lib/openjpa-jdbc-5-0.9.0.jar
persistence-openjpa/lib/openjpa-kernel-0.9.0.jar
persistence-openjpa/lib/openjpa-kernel-5-0.9.0.jar
persistence-openjpa/lib/openjpa-lib-0.9.0.jar
persistence-openjpa/lib/openjpa-persistence-0.9.0.jar
persistence-openjpa/lib/openjpa-persistence-jdbc-0.9.0.jar
persistence-openjpa/lib/openjpa-project-0.9.0.jar
persistence-openjpa/lib/openjpa-xmlstore-0.9.0.jar
persistence-openjpa/lib/serp-1.11.0.jar
persistence-oracle-toplink-essentials/
persistence-oracle-toplink-essentials/lib/
persistence-oracle-toplink-essentials/lib/glassfish-persiste nce/
persistence-oracle-toplink-essentials/lib/glassfish-persiste nce/toplink-essentials-agent.jar
persistence-oracle-toplink-essentials/lib/glassfish-persiste nce/toplink-essentials.jar
org/
org/jboss/
org/jboss/util/
org/jboss/util/file/
org/objectweb/
org/objectweb/easybeans/
org/objectweb/easybeans/osgi/
org/objectweb/easybeans/osgi/archive/
org/objectweb/easybeans/osgi/component/
org/objectweb/easybeans/osgi/core/
org/objectweb/easybeans/osgi/ejbjar/
org/objectweb/easybeans/osgi/util/
org/jboss/util/file/ArchiveBrowser$Filter.class
org/jboss/util/file/ArchiveBrowser.class
org/jboss/util/file/BundleArchiveBrowser.class
org/objectweb/easybeans/osgi/archive/BundleArchive.class
org/objectweb/easybeans/osgi/archive/BundleArchiveFactory.cl ass
org/objectweb/easybeans/osgi/component/AComponentActivator.c lass
org/objectweb/easybeans/osgi/core/Activator.class
org/objectweb/easybeans/osgi/core/ComponentServiceListener.c lass
org/objectweb/easybeans/osgi/core/ContainerServiceListener.c lass
org/objectweb/easybeans/osgi/ejbjar/Activator.class
org/objectweb/easybeans/osgi/ejbjar/EmbeddedServiceListener. class
org/objectweb/easybeans/osgi/util/BCMapper.class
Re: How to compile a plugin dependent from another bundle jars [message #77191 is a reply to message #77120] Wed, 15 November 2006 02:48 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

Indeed. No java compiler that I know of is able to compile against
nested JARs. So you have a few choices.
- You can import the jar as a binary plugin project. That might expand
the JAR and expose the top level nested JARs.
- you can expand the JAR yourself
- you can (and should) harass the EasyBeans people for nesting like that.

Note that I remember a mailing list trail about this somewhere very
recently. osgi-dev? equinox-dev? felix-dev? Basically the same issues.

Jeff


Nicolas wrote:
> Hi,
>
> Easybeans EJB3 container provides a OSGi distribution of its product.
> Mainly code resides in a org.objectweb.easybeans bundle which content is
> listed below. I also provide the content of META-INF/MANIFEST.MF file.
>
> Now, i need to create a plugin which needs to have in his classpath some
> libraries which are contained in org.objectweb.easybeans, like
> commons-logging-api.jar for example.
>
> How can I manage that ?
> If i simply add org.objectweb.easybeans.jar file to the Java build path
> of my plugin I can only see classes defined in the .jar , not classes
> which are stored inside the contained jars.
>
> Are there some option to add on my plugin MANIFEST file ?
>
> Thanks for your help,
>
> Nicolas.
>
>
> MANIFEST.MF file content:
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.6.5
> Created-By: 1.5.0_07-b03 (Sun Microsystems Inc.)
> Bundle-Activator: org.objectweb.easybeans.osgi.core.Activator
> Bundle-Name: EasyBeans Core
> Bundle-Version: 0.1.0
> Bundle-SymbolicName: org.objectweb.easybeans
> Bundle-Description: EasyBeans Server
> Bundle-ManifestVersion: 2
> Bundle-ClassPath: ., /asm/asm-2.2.3.jar,/asm/asm-analysis-2.2.3.jar,/a
> sm/asm-attrs-2.2.3.jar,/asm/asm-commons-2.2.3.jar,/asm/asm-t ree-2.2.3
> .jar,/asm/asm-util-2.2.3.jar,/asm/asm-xml-2.2.3.jar,/commons -logging-
> api.jar,/commons-modeler.jar,/connector-1_5.jar,/ejb-2_1-api .jar,/gnu
> -mail.jar,/hibernate/core/hibernate3.jar,/hibernate/core/lib /antlr-2.
> 7.6.jar,/hibernate/core/lib/asm-attrs.jar,/hibernate/core/li b/asm.jar
> ,/hibernate/core/lib/c3p0-0.9.0.jar,/hibernate/core/lib/cgli b-nodep-2
> .1_3.jar,/hibernate/core/lib/cleanimports.jar,/hibernate/cor e/lib/com
> mons-collections-2.1.1.jar,/hibernate/core/lib/concurrent-1. 3.2.jar,/
> hibernate/core/lib/dom4j-1.6.1.jar,/hibernate/core/lib/ehcac he-1.2.ja
> r,/hibernate/core/lib/jacc-1_0-fr.jar,/hibernate/core/lib/ja xen-1.1-b
> eta-7.jar,/hibernate/core/lib/jboss-cache.jar,/hibernate/cor e/lib/jbo
> ss-common.jar,/hibernate/core/lib/jboss-jmx.jar,/hibernate/c ore/lib/j
> boss-system.jar,/hibernate/core/lib/jgroups-2.2.8.jar,/hiber nate/core
> /lib/oscache-2.1.jar,/hibernate/core/lib/proxool-0.8.3.jar,/ hibernate
> /core/lib/swarmcache-1.0rc2.jar,/hibernate/core/lib/syndiag2 .jar,/hib
> ernate/core/lib/versioncheck.jar,/hibernate/entitymanager/hi bernate-e
> ntitymanager.jar,/hibernate/entitymanager/lib/ejb3-persisten ce.jar,/h
> ibernate/entitymanager/lib/hibernate-annotations.jar,/hibern ate/entit
> ymanager/lib/javassist.jar,/hibernate/entitymanager/lib/jbos s-archive
> -browsing.jar,/jaxrpc.jar,/jms.jar,/jsr88-api.jar,/jta-spec1 _0_1.jar,
> /ow_easybeans_api.jar,/ow_easybeans_core.jar,/ow_easybeans_i 18n.jar,/
> ow_easybeans_jca_workmanager.jar,/ow_easybeans_log.jar,/ow_e asybeans_
> util.jar,/ow_easybeans_management.jar,/ow_easybeans_transact ion.jar,/
> ow_ejb3_core_api.jar,/ow_ejb3_persistence_api.jar,/servlet-2 _4.jar
> Import-Package: javax.naming,org.w3c.dom,javax.xml.parsers,javax.xml.t
> ransform,org.xml.sax,javax.management.remote,javax.managemen t;version
> ="1.5.0",org.objectweb.carol.jndi.spi
> DynamicImport-Package: *
> Export-Package: org.apache.commons.logging,org.objectweb.easybeans.api
> ,org.objectweb.easybeans.api.bean,org.objectweb.easybeans.ap i.injecti
> on,org.objectweb.easybeans.component.api,org.objectweb.easyb eans.comp
> onent.itf,org.objectweb.easybeans.container,org.objectweb.ea sybeans.c
> ontainer.management,org.objectweb.easybeans.container.archiv e,org.obj
> ectweb.easybeans.container.session,org.objectweb.easybeans.i njection,
> org.objectweb.easybeans.jca.workmanager,org.objectweb.easybe ans.log,o
> rg.objectweb.easybeans.naming.interceptors,org.objectweb.eas ybeans.os
> gi.core,org.objectweb.easybeans.osgi.ejbjar,org.objectweb.ea sybeans.o
> sgi.component,org.objectweb.easybeans.server,org.objectweb.e asybeans.
> transaction,org.objectweb.easybeans.transaction.interceptors ,org.obje
> ctweb.easybeans.util.url,javax.ejb,javax.persistence,javax.i ntercepto
> r,javax.transaction;scope="jonas",javax.transaction.xa;scope= "jonas",
> javax.resource,javax.resource.spi,javax.resource.spi.work,ja vax.resou
> rce.spi.endpoint,javax.jms,org.hibernate.ejb,org.hibernate.p roxy,net.
> sf.cglib.proxy
>
>
> org.objectweb.easybeans content:
> META-INF/
> META-INF/MANIFEST.MF
> ow_easybeans_api.jar
> ow_easybeans_core.jar
> ow_easybeans_i18n.jar
> ow_easybeans_jca_workmanager.jar
> ow_easybeans_log.jar
> ow_easybeans_management.jar
> ow_easybeans_persistence_openjpa.jar
> ow_easybeans_persistence_oracle_toplink_essentials.jar
> ow_easybeans_transaction.jar
> ow_easybeans_util.jar
> ow_easybeans_xmlconfig.jar
> ow_ejb3_core_api.jar
> ow_ejb3_persistence_api.jar
> asm/
> asm/asm-2.2.3.jar
> asm/asm-analysis-2.2.3.jar
> asm/asm-attrs-2.2.3.jar
> asm/asm-commons-2.2.3.jar
> asm/asm-tree-2.2.3.jar
> asm/asm-util-2.2.3.jar
> asm/asm-xml-2.2.3.jar
> commons-logging-api.jar
> commons-modeler.jar
> connector-1_5.jar
> ejb-2_1-api.jar
> gnu-mail.jar
> hibernate/
> hibernate/core/
> hibernate/core/hibernate3.jar
> hibernate/core/lib/
> hibernate/core/lib/antlr-2.7.6.jar
> hibernate/core/lib/asm-attrs.jar
> hibernate/core/lib/asm.jar
> hibernate/core/lib/c3p0-0.9.0.jar
> hibernate/core/lib/cglib-nodep-2.1_3.jar
> hibernate/core/lib/cleanimports.jar
> hibernate/core/lib/commons-collections-2.1.1.jar
> hibernate/core/lib/concurrent-1.3.2.jar
> hibernate/core/lib/dom4j-1.6.1.jar
> hibernate/core/lib/ehcache-1.2.jar
> hibernate/core/lib/jacc-1_0-fr.jar
> hibernate/core/lib/jaxen-1.1-beta-7.jar
> hibernate/core/lib/jboss-cache.jar
> hibernate/core/lib/jboss-common.jar
> hibernate/core/lib/jboss-jmx.jar
> hibernate/core/lib/jboss-system.jar
> hibernate/core/lib/jgroups-2.2.8.jar
> hibernate/core/lib/oscache-2.1.jar
> hibernate/core/lib/proxool-0.8.3.jar
> hibernate/core/lib/swarmcache-1.0rc2.jar
> hibernate/core/lib/syndiag2.jar
> hibernate/core/lib/versioncheck.jar
> hibernate/entitymanager/
> hibernate/entitymanager/hibernate-entitymanager.jar
> hibernate/entitymanager/lib/
> hibernate/entitymanager/lib/ejb3-persistence.jar
> hibernate/entitymanager/lib/hibernate-annotations.jar
> hibernate/entitymanager/lib/javassist.jar
> hibernate/entitymanager/lib/jboss-archive-browsing.jar
> jaxrpc.jar
> jms.jar
> jsr88-api.jar
> jta-spec1_0_1.jar
> servlet-2_4.jar
> persistence-openjpa/
> persistence-openjpa/lib/
> persistence-openjpa/lib/commons-collections-3.1.jar
> persistence-openjpa/lib/commons-lang-2.1.jar
> persistence-openjpa/lib/commons-pool-1.2.jar
> persistence-openjpa/lib/openjpa-jdbc-0.9.0.jar
> persistence-openjpa/lib/openjpa-jdbc-5-0.9.0.jar
> persistence-openjpa/lib/openjpa-kernel-0.9.0.jar
> persistence-openjpa/lib/openjpa-kernel-5-0.9.0.jar
> persistence-openjpa/lib/openjpa-lib-0.9.0.jar
> persistence-openjpa/lib/openjpa-persistence-0.9.0.jar
> persistence-openjpa/lib/openjpa-persistence-jdbc-0.9.0.jar
> persistence-openjpa/lib/openjpa-project-0.9.0.jar
> persistence-openjpa/lib/openjpa-xmlstore-0.9.0.jar
> persistence-openjpa/lib/serp-1.11.0.jar
> persistence-oracle-toplink-essentials/
> persistence-oracle-toplink-essentials/lib/
> persistence-oracle-toplink-essentials/lib/glassfish-persiste nce/
> persistence-oracle-toplink-essentials/lib/glassfish-persiste nce/toplink-essentials-agent.jar
>
> persistence-oracle-toplink-essentials/lib/glassfish-persiste nce/toplink-essentials.jar
>
> org/
> org/jboss/
> org/jboss/util/
> org/jboss/util/file/
> org/objectweb/
> org/objectweb/easybeans/
> org/objectweb/easybeans/osgi/
> org/objectweb/easybeans/osgi/archive/
> org/objectweb/easybeans/osgi/component/
> org/objectweb/easybeans/osgi/core/
> org/objectweb/easybeans/osgi/ejbjar/
> org/objectweb/easybeans/osgi/util/
> org/jboss/util/file/ArchiveBrowser$Filter.class
> org/jboss/util/file/ArchiveBrowser.class
> org/jboss/util/file/BundleArchiveBrowser.class
> org/objectweb/easybeans/osgi/archive/BundleArchive.class
> org/objectweb/easybeans/osgi/archive/BundleArchiveFactory.cl ass
> org/objectweb/easybeans/osgi/component/AComponentActivator.c lass
> org/objectweb/easybeans/osgi/core/Activator.class
> org/objectweb/easybeans/osgi/core/ComponentServiceListener.c lass
> org/objectweb/easybeans/osgi/core/ContainerServiceListener.c lass
> org/objectweb/easybeans/osgi/ejbjar/Activator.class
> org/objectweb/easybeans/osgi/ejbjar/EmbeddedServiceListener. class
> org/objectweb/easybeans/osgi/util/BCMapper.class
>
Previous Topic:Probably an old chestnut. Seeking documentation / tutorials.
Next Topic:High load on equinox
Goto Forum:
  


Current Time: Fri Mar 29 09:58:53 GMT 2024

Powered by FUDForum. Page generated in 0.02425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top