Re: Re: Re: Re: Re: Re: Re: Re: Re: Error while creating a iPOJO bundle
Guillaume Sauthier <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Organization | Objectweb Consortium |
| Message-ID | <[email protected]> |
Le 06/01/2011 14:22, ajinkya prabhune a écrit : > Hello, > > yes I read it... But my question is the bnd tool does not add any > libraries into the created bundle. > So how does the whole bundle works ? > for example > > a.b.myservice - will contain the Interface > a.b,myservice,internal - will contain the class file which implements > the interface. > > manifest.mf - created by the bnd tool is showing all the import,export > packages... > But where are the libraries (in the created bundle) that are referred ? If they are referred, they are not in the bundle (with referred == imported packages)... Theses packages should be provided by the OSGi environment (the other bundles installed on the platform) If you want to explicitely have a jar (aka your library) into your own bundle, you have to use the Embed-Dependency directive (works for maven projects). Again, read the Bnd documentation for more details... --G > > I hope u got my problem > > thanks for ur time... Thank u > > On Thu, Jan 6, 2011 at 12:00 PM, Guillaume Sauthier > <[email protected] > <mailto:[email protected]>> wrote: > > Sorry I didn"t understood what you want to achieve. > Bnd is used to compute automatically the imported package. > Please read the bnd documentation for a clear explanation. > http://www.aqute.biz/Bnd/Bnd > > --G > > Le 06/01/2011 09:16, ajinkya prabhune a écrit : >> HELLO, >> yes I tried using the bnd tool and I can make the bundle >> but the libraries are not getting added in the Bundle...like how >> they get added while making a jar file. >> >> Also I checked out one thing >> When I try making a ManifestFile manually ... It does not detect >> the import-packages : like (org.ow2.jonas.lib.service) >> but when I used the bnd tool it does it .... >> Why does this happens ? >> >> Thanks >> >> On Wed, Jan 5, 2011 at 12:00 PM, ajinkya prabhune >> <[email protected] <mailto:[email protected]>> >> wrote: >> >> >> Thank you so much.... >> >> I was confused with this issue >> that whether we need .bnd and manifest.mf files both together.... >> >> Thank you very much .... >> >> >> On Wed, Jan 5, 2011 at 11:56 AM, Guillaume Sauthier >> <[email protected] >> <mailto:[email protected]>> wrote: >> >> When you place '*' in import-Package, the import list is >> computed automatically (Refer to the aQute Bnd >> documentation for more details), you should have to set >> it manually. >> you also shouldn't have any Manifest file (bnd will >> generate everything for you) >> >> And yes, bundles are OSGi compliant so they can run on >> any OSGi implementation (felix, equinox, knoplefish , ...) >> >> --G >> >> Le 05/01/2011 11:49, ajinkya prabhune a écrit : >>> Hi, >>> >>> Thank you ... >>> Ok I will make the changes... >>> But there is one more issue.... >>> >>> In the Manifest,mf file... >>> I am trying to import packages - Import-Package: >>> org.ow2.jonas.service, org.ow2.jonas.lib.service, >>> a.b.myservice >>> but I am not able to do it the First 2 packages are in >>> Client.jar... but I cant see them... >>> How do I work around this... >>> >>> Also is it possible to run the bundle in equinox as well >>> as JOnAS.... >>> >>> >>> Thank you and Regards >>> Ajinkya >>> >>> On Wed, Jan 5, 2011 at 11:38 AM, Guillaume Sauthier >>> <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Hi Ajinkya >>> >>> Did you follow the developing a new service guide ? >>> There is also an empty pre-configured maven project >>> that you really should re-use for your own needs >>> http://websvn.ow2.org/listing.php?repname=jonas&path=%2Fsandbox%2Fsauthieg%2Fmyservice%2F >>> <http://websvn.ow2.org/listing.php?repname=jonas&path=%2Fsandbox%2Fsauthieg%2Fmyservice%2F> >>> >>> Just checkout use the following command line: >>> >$ svn co >>> svn://svn.forge.objectweb.org/svnroot/jonas/sandbox/sauthieg/myservice >>> <http://svn.forge.objectweb.org/svnroot/jonas/sandbox/sauthieg/myservice> >>> And then use maven to compile everything and produce >>> the bundle: >>> >$ mvn install >>> >>> And then (once you're sure it works unmodified), >>> adapt it to your own needs (incrementally). >>> >>> BTW, your Bnd file seems wrong, It exports >>> everything (meaning that all the files in the >>> classpath will be included in your archive). >>> Try with Export-Package a.b.myservice >>> and Private-Package *.internal >>> >>> Cheers >>> --Guillaume >>> >>> >>> Le 13/12/2010 13:05, ajinkya prabhune a écrit : >>>> Hi >>>> Sorry I have attached the project >>>> I have only removed the clinet.jar cos its big. >>>> >>>> Thank you >>>> >>>> On Mon, Dec 13, 2010 at 12:38 PM, Arda Aydin >>>> <[email protected] <mailto:[email protected]>> >>>> wrote: >>>> >>>> Hi, >>>> >>>> Can you send your bnd configuration and also >>>> your directory listing for the bundle project. >>>> >>>> Regards. >>>> >>>> Le 13/12/2010 12:22, ajinkya prabhune a écrit : >>>> >>>> An error ocurs during the bundle >>>> construction : Invalid class file >>>> >>>> >>>> >>>> -- >>>> >>>> Arda AYDIN >>>> Ingénieur de développement SOA BULL S.A.S. >>>> SOA development engineer at BULL >>>> http://www.ardaaydin.com >>>> >>>> >>>> >>>> >>>> -- >>>> Thank you and Regards >>>> Ajinkya Prabhune >>>> >>> >>> >>> >>> -- >>> Thank you and Regards >>> Ajinkya Prabhune >>> >> >> >> >> -- >> Thank you and Regards >> Ajinkya Prabhune >> >> >> >> >> -- >> Thank you and Regards >> Ajinkya Prabhune >> > > > > -- > Thank you and Regards > Ajinkya Prabhune >
Guillaume_Sauthier.vcf
(text/x-vcard, 387 B)
begin:vcard fn:Guillaume Sauthier n:Sauthier;Guillaume org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a> adr:;;;;;;France email;internet:[email protected] title:<a href="http://jonas.ow2.org">JOnAS Application Server</a> url:http://jonas.ow2.org version:2.1 end:vcard