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]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.