You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2010/08/30 16:37:24 UTC

Overriding OSGi MANIFEST.MF in Tuscany distribution

The original wink-server dependency does not export the META-INF
folder thus causing issues when trying to load some properties classes
under that folder in a OSGi environment.

If I update the wink-server pom with proper configuration to generate
valid OSGi manifest exporting the following folders, the
calculator-rest sample works fine

+                            'META-INF',
+                            'META-INF.server',

But, if I then use that generated MANIFEST-MF to override the existent
one in the Tuscany distribution, the calculator-rest keeps failing
(see manifest on link below)

https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/distribution/all/manifests/wink-server-1.1.1-incubating.MF

Any ideas ? Thoughts on what might be wrong ?


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Overriding OSGi MANIFEST.MF in Tuscany distribution

Posted by Luciano Resende <lu...@gmail.com>.
On Mon, Aug 30, 2010 at 9:49 AM, Raymond Feng <en...@gmail.com> wrote:
> Hi,
> You'll have to duplicate the MF file
> into modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher
> too. There is a JIRA open to see if we can just have one location.
> Maybe we can use the maven-dependency-plugin to copy the MF files from
> the node-launcher-equinox into the distribution.

Should the contents of these two folders (distribution and
node-launcher-equinox) be in sync ?

ls -1 distribution/all/manifests/
axiom-api-1.2.7.MF
axiom-api-1.2.8.MF
axis2-kernel-1.5.1.MF
axis2-transport-http-1.5.1.MF
wink-server-1.1.1-incubating.MF
woden-impl-dom-1.0M8.MF

ls -1 modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/
J2SE-1.5.profile
JavaSE-1.6.profile
axiom-api-1.2.7.MF
axiom-api-1.2.8.MF
axis2-kernel-1.4.1.MF
axis2-kernel-1.5.1.MF
axis2-transport-http-1.5.1.MF
ode-agents-1.3.2.MF
ode-bpel-api-1.3.2.MF
ode-bpel-compiler-1.3.2.MF
ode-bpel-dao-1.3.2.MF
ode-bpel-epr-1.3.2.MF
ode-bpel-obj-1.3.2.MF
ode-bpel-runtime-1.3.2.MF
ode-bpel-schemas-1.3.2.MF
ode-bpel-store-1.3.2.MF
ode-dao-hibernate-1.3.2.MF
ode-dao-jpa-1.3.2.MF
ode-jacob-1.3.2.MF
ode-jacob-ap-1.3.2.MF
ode-scheduler-simple-1.3.2.MF
ode-utils-1.3.2.MF
wink-server-1.1.1-incubating.MF
woden-impl-dom-1.0M8.MF
xercesImpl-2.9.0.MF


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Overriding OSGi MANIFEST.MF in Tuscany distribution

Posted by Raymond Feng <en...@gmail.com>.
Hi,

You'll have to duplicate the MF file into modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher too. There is a JIRA open to see if we can just have one location.

Maybe we can use the maven-dependency-plugin to copy the MF files from the node-launcher-equinox into the distribution.

Thanks,
Raymond
________________________________________________________________ 
Raymond Feng
rfeng@apache.org
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

On Aug 30, 2010, at 7:37 AM, Luciano Resende wrote:

> The original wink-server dependency does not export the META-INF
> folder thus causing issues when trying to load some properties classes
> under that folder in a OSGi environment.
> 
> If I update the wink-server pom with proper configuration to generate
> valid OSGi manifest exporting the following folders, the
> calculator-rest sample works fine
> 
> +                            'META-INF',
> +                            'META-INF.server',
> 
> But, if I then use that generated MANIFEST-MF to override the existent
> one in the Tuscany distribution, the calculator-rest keeps failing
> (see manifest on link below)
> 
> https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/distribution/all/manifests/wink-server-1.1.1-incubating.MF
> 
> Any ideas ? Thoughts on what might be wrong ?
> 
> 
> -- 
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/