Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » How are bundle jars copied to stage dir?
How are bundle jars copied to stage dir? [message #918617] Fri, 21 September 2012 07:11 Go to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hello all.

I have a couple of bundle jars which, when deployed to Virgo's stage dir automatically, drop all their contents except the META-INF directory.

What could be the cause of that? What is the mechanism that does that copying over and creating the special dir structure in stage?

I have to add that I am still running Virgo 3.0.0.RELEASE, unfortunately.

TIA,
B.

[Updated on: Fri, 21 September 2012 07:12]

Report message to a moderator

Re: How are bundle jars copied to stage dir? [message #926100 is a reply to message #918617] Fri, 28 September 2012 09:53 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
The tooling uploads each bundle to the stage directory and then invoke the Virgo deployer via JMX passing a reference to the bundle in the stage directory. So the tooling or its upload mechanism are implicated rather than the Virgo runtime. What version of the tooling are you using?
Re: How are bundle jars copied to stage dir? [message #937732 is a reply to message #926100] Tue, 09 October 2012 08:07 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi Glyn, apologies for the late reply.

The version of the Virgo IDE I am using is 1.0.0.201207122033-MILESTONE.

I should probably add that this happens on bundles whose MANIFEST.MF has been created by the Maven Bundle plugin (as opposed to Bundlor), in case this makes a difference.

Thanks,
B.
Re: How are bundle jars copied to stage dir? [message #937761 is a reply to message #937732] Tue, 09 October 2012 08:34 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Well it would be worth upgrading to the released version of the tooling before you go any further as Miles Parker fixed quite a few bugs. Please could you do that and report back?
Re: How are bundle jars copied to stage dir? [message #937847 is a reply to message #937761] Tue, 09 October 2012 10:17 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Done (updated to latest release tooling) and still same issue.
Re: How are bundle jars copied to stage dir? [message #937968 is a reply to message #937847] Tue, 09 October 2012 12:22 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
This is what the generated MANIFEST.MF looks like, maybe you can spot the problem. Funny thing is, I am having this issue for all bundles that wrap non-OSGi jar dependencies.

Manifest-Version: 1
Bnd-LastModified: 1349686464562
Build-Jdk: 1.6.0_24
Built-By: rosib
Bundle-Description: This OSGi bundle simply wraps wt-springrest-intf-2.4
 .1.jar artifact.
Bundle-DocURL: http://www.iggroup.com
Bundle-ManifestVersion: 2
Bundle-Name: com.iggroup.wb.core.wt.springrest.intf
Bundle-SymbolicName: com.iggroup.wb.core.wt.springrest.intf
Bundle-Vendor: IG Index
Bundle-Version: 1.10.0.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Export-Package: uk.co.igindex.springrest.client;uses:="org.apache.common
 s.logging,org.apache.http.params,org.apache.commons.io,org.apache.http.
 client,org.apache.http.client.methods,org.apache.http,uk.co.igindex.spr
 ingrest.domain,org.apache.http.conn.scheme,javax.net.ssl,org.apache.htt
 p.message,uk.co.igindex.springrest.mapping,org.apache.http.conn.params,
 org.apache.http.entity,org.springframework.util,org.apache.http.conn.ss
 l,org.apache.http.client.utils,org.apache.http.conn,org.apache.http.imp
 l.client,org.apache.http.impl.conn.tsccm";version="1.10.0.SNAPSHOT",uk.
 co.igindex.springrest.domain;uses:="uk.co.igindex.springrest.mapping,or
 g.apache.commons.lang.builder,org.apache.commons.lang";version="1.10.0.
 SNAPSHOT",uk.co.igindex.springrest.mapping;uses:="uk.co.igindex.springr
 est.domain";version="1.10.0.SNAPSHOT"
Ignore-Package: uk.co.igindex.commons.log.rule
Import-Package: javax.net.ssl,org.apache.commons.io;version="[1.4,2)",or
 g.apache.commons.lang;version="[2.4,3)",org.apache.commons.lang.builder
 ;version="[2.4,3)",org.apache.commons.logging;version="[1.1,2)",org.apa
 che.http;version="[4.1,5)",org.apache.http.client;version="[4.1,5)",org
 .apache.http.client.methods;version="[4.1,5)",org.apache.http.client.ut
 ils;version="[4.1,5)",org.apache.http.conn;version="[4.1,5)",org.apache
 .http.conn.params;version="[4.1,5)",org.apache.http.conn.scheme;version
 ="[4.1,5)",org.apache.http.conn.ssl;version="[4.1,5)",org.apache.http.e
 ntity;version="[4.1,5)",org.apache.http.impl.client;version="[4.1,5)",o
 rg.apache.http.impl.conn.tsccm;version="[4.1,5)",org.apache.http.messag
 e;version="[4.1,5)",org.apache.http.params;version="[4.1,5)",org.spring
 framework.util;version="[3.0,4)"
Tool: Bnd-1.43.0


Thanks,
B.
Re: How are bundle jars copied to stage dir? [message #1236918 is a reply to message #937968] Tue, 28 January 2014 11:43 Go to previous messageGo to next message
Matteo Cantarelli is currently offline Matteo Cantarelli
Messages: 15
Registered: June 2012
Junior Member
Hi Barbara,
I'm having the same issue now. Do you remember how did you fix it if you did?
I hope your memory is better than mine Smile
Thanks,
Matteo
Re: How are bundle jars copied to stage dir? [message #1258497 is a reply to message #1236918] Thu, 27 February 2014 12:52 Go to previous message
Martin Baumgartner is currently offline Martin Baumgartner
Messages: 9
Registered: June 2013
Junior Member
I had similar issues, the maven-jar-plugin helped me. (I use the virgo bundler plugin too)

	<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>

Previous Topic:virgo:UnableToSatisfyBundleDependenciesExcept
Next Topic:javax.mail issues with multipart messages
Goto Forum:
  


Current Time: Sat Oct 25 07:18:14 GMT 2014

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

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