Re: Re: Re: Re: Re: Re: Re: Re: Error while creating a iPOJO bundle
ajinkya prabhune <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
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 ? 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]> 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]> 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]> 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]> 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 >>>> >>>> Just checkout use the following command line: >>>> >$ svn co svn:// >>>> 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]>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