[advice needed] Programmatically installed bundles [message #36937] |
Thu, 11 March 2004 15:14 |
Eclipse User |
|
|
|
Originally posted by: alexsmr.sympatico.ca
Hi folks,
I would like to use to use Eclipse OSGi platform to build a sort of registry
that will very dynamically install/uninstall/start/stop components
(bundles). In my registry plugin I keep BundleContext (by overriding the
start() method - is there a better way?) and using it for installation of
bundles. But here is the problem I stumbled into: when I'm getting the
headers (expected to get all manifest.mf dictionary) of recently installed
bundle I'm getting nothing. When asking in console to show the headers I'm
getting next:
osgi> headers 88
Bundle headers:
META-INF/IVEATTRS.XML not found in
file:D:\dev\runtime-workspace\test\test.jar [88]
META-INF/IVERES.XML not found in file:D:\dev\runtime-workspace\test\test.jar
[88]
Does that mean that Eclipse OSGi is not compatable with standard
specification? Or probably I miss something...
Thanks,
Alex.
|
|
|
Re: [advice needed] Programmatically installed bundles [message #36971 is a reply to message #36937] |
Thu, 11 March 2004 16:13 |
Eclipse User |
|
|
|
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com
Is IVEATTRS.XML one of your files? Its not one of ours. Is it actually
there?
Jeff
"Alex Smirnoff" <alexsmr@sympatico.ca> wrote in message
news:c2pv5t$5e4$1@eclipse.org...
> Hi folks,
>
> I would like to use to use Eclipse OSGi platform to build a sort of
registry
> that will very dynamically install/uninstall/start/stop components
> (bundles). In my registry plugin I keep BundleContext (by overriding the
> start() method - is there a better way?) and using it for installation of
> bundles. But here is the problem I stumbled into: when I'm getting the
> headers (expected to get all manifest.mf dictionary) of recently installed
> bundle I'm getting nothing. When asking in console to show the headers I'm
> getting next:
>
> osgi> headers 88
> Bundle headers:
>
> META-INF/IVEATTRS.XML not found in
> file:D:\dev\runtime-workspace\test\test.jar [88]
> META-INF/IVERES.XML not found in
file:D:\dev\runtime-workspace\test\test.jar
> [88]
>
> Does that mean that Eclipse OSGi is not compatable with standard
> specification? Or probably I miss something...
>
> Thanks,
> Alex.
>
>
|
|
|
Re: [advice needed] Programmatically installed bundles [message #37004 is a reply to message #36971] |
Thu, 11 March 2004 18:19 |
Eclipse User |
|
|
|
Originally posted by: alexsmr.sympatico.ca
"Jeff McAffer" <jeff_mcaffer@REMOVE.ca.ibm.com> wrote in message
news:c2q2vr$c2e$1@eclipse.org...
> Is IVEATTRS.XML one of your files? Its not one of ours. Is it actually
> there?
No.
test.jar file is actually empty jar archive without BundleActivator.
Framework installes this bundle OK. Manifest.mf is looks like this:
Manifest-Version: 1.0
Bundle-Name: Test
Created-By: 1.4.1_02 (Sun Microsystems Inc.)
Bundle-Vendor: Alex
Bundle-Version: 0.0.1
I've tried with Oscar to install the same bundle but doesn't seems to
provide Headers as well. According to specification bundle must provide
Headers even in UNINSTALLED state.
> "Alex Smirnoff" <alexsmr@sympatico.ca> wrote in message
> news:c2pv5t$5e4$1@eclipse.org...
> > Hi folks,
> >
> > I would like to use to use Eclipse OSGi platform to build a sort of
> registry
> > that will very dynamically install/uninstall/start/stop components
> > (bundles). In my registry plugin I keep BundleContext (by overriding the
> > start() method - is there a better way?) and using it for installation
of
> > bundles. But here is the problem I stumbled into: when I'm getting the
> > headers (expected to get all manifest.mf dictionary) of recently
installed
> > bundle I'm getting nothing. When asking in console to show the headers
I'm
> > getting next:
> >
> > osgi> headers 88
> > Bundle headers:
> >
> > META-INF/IVEATTRS.XML not found in
> > file:D:\dev\runtime-workspace\test\test.jar [88]
> > META-INF/IVERES.XML not found in
> file:D:\dev\runtime-workspace\test\test.jar
> > [88]
> >
> > Does that mean that Eclipse OSGi is not compatable with standard
> > specification? Or probably I miss something...
> >
> > Thanks,
> > Alex.
> >
> >
>
>
|
|
|
Re: [advice needed] Programmatically installed bundles [message #37036 is a reply to message #37004] |
Thu, 11 March 2004 18:41 |
Eclipse User |
|
|
|
Originally posted by: alexsmr.sympatico.ca
I guess it was something wrong with M7 Export JAR Wisard: it created two
Manifest.mf files. After manual repackaging both Oscar and Eclipse correctly
show headers. The only problem is that console still looking for those XML
files:
osgi> headers 87
Bundle headers:
Bundle-Name = Test
Bundle-Vendor = Alex
Bundle-Version = 0.0.1
Created-By = 1.4.1_02 (Sun Microsystems Inc.)
Manifest-Version = 1.0
META-INF/IVEATTRS.XML not found in
file:D:\dev\runtime-workspace\test\test.jar [87]
META-INF/IVERES.XML not found in
file:D:\dev\runtime-workspace\test\test.jar [87]
I have no idea what they are. I guess this is something specific to Eclipse.
> > Is IVEATTRS.XML one of your files? Its not one of ours. Is it actually
> > there?
>
> No.
>
> test.jar file is actually empty jar archive without BundleActivator.
> Framework installes this bundle OK. Manifest.mf is looks like this:
>
> Manifest-Version: 1.0
> Bundle-Name: Test
> Created-By: 1.4.1_02 (Sun Microsystems Inc.)
> Bundle-Vendor: Alex
> Bundle-Version: 0.0.1
>
> I've tried with Oscar to install the same bundle but doesn't seems to
> provide Headers as well. According to specification bundle must provide
> Headers even in UNINSTALLED state.
>
> > "Alex Smirnoff" <alexsmr@sympatico.ca> wrote in message
> > news:c2pv5t$5e4$1@eclipse.org...
> > > Hi folks,
> > >
> > > I would like to use to use Eclipse OSGi platform to build a sort of
> > registry
> > > that will very dynamically install/uninstall/start/stop components
> > > (bundles). In my registry plugin I keep BundleContext (by overriding
the
> > > start() method - is there a better way?) and using it for installation
> of
> > > bundles. But here is the problem I stumbled into: when I'm getting the
> > > headers (expected to get all manifest.mf dictionary) of recently
> installed
> > > bundle I'm getting nothing. When asking in console to show the headers
> I'm
> > > getting next:
> > >
> > > osgi> headers 88
> > > Bundle headers:
> > >
> > > META-INF/IVEATTRS.XML not found in
> > > file:D:\dev\runtime-workspace\test\test.jar [88]
> > > META-INF/IVERES.XML not found in
> > file:D:\dev\runtime-workspace\test\test.jar
> > > [88]
> > >
> > > Does that mean that Eclipse OSGi is not compatable with standard
> > > specification? Or probably I miss something...
> > >
> > > Thanks,
> > > Alex.
> > >
> > >
> >
> >
>
>
|
|
|
Re: [advice needed] Programmatically installed bundles [message #37135 is a reply to message #37036] |
Fri, 12 March 2004 04:15 |
Eclipse User |
|
|
|
Originally posted by: pascal.ibm.canada
Please enter a bug in Equinox / OSGi containing this message as well as
your test.jar if it does not contains secret code.
Thank you in advance.
PaScaL
Alex Smirnoff wrote:
> I guess it was something wrong with M7 Export JAR Wisard: it created two
> Manifest.mf files. After manual repackaging both Oscar and Eclipse correctly
> show headers. The only problem is that console still looking for those XML
> files:
>
> osgi> headers 87
> Bundle headers:
> Bundle-Name = Test
> Bundle-Vendor = Alex
> Bundle-Version = 0.0.1
> Created-By = 1.4.1_02 (Sun Microsystems Inc.)
> Manifest-Version = 1.0
>
> META-INF/IVEATTRS.XML not found in
> file:D:\dev\runtime-workspace\test\test.jar [87]
> META-INF/IVERES.XML not found in
> file:D:\dev\runtime-workspace\test\test.jar [87]
>
> I have no idea what they are. I guess this is something specific to Eclipse.
>
>
>>>Is IVEATTRS.XML one of your files? Its not one of ours. Is it actually
>>>there?
>>
>>No.
>>
>>test.jar file is actually empty jar archive without BundleActivator.
>>Framework installes this bundle OK. Manifest.mf is looks like this:
>>
>>Manifest-Version: 1.0
>>Bundle-Name: Test
>>Created-By: 1.4.1_02 (Sun Microsystems Inc.)
>>Bundle-Vendor: Alex
>>Bundle-Version: 0.0.1
>>
>>I've tried with Oscar to install the same bundle but doesn't seems to
>>provide Headers as well. According to specification bundle must provide
>>Headers even in UNINSTALLED state.
>>
>>
>>>"Alex Smirnoff" <alexsmr@sympatico.ca> wrote in message
>>>news:c2pv5t$5e4$1@eclipse.org...
>>>
>>>>Hi folks,
>>>>
>>>>I would like to use to use Eclipse OSGi platform to build a sort of
>>>
>>>registry
>>>
>>>>that will very dynamically install/uninstall/start/stop components
>>>>(bundles). In my registry plugin I keep BundleContext (by overriding
>
> the
>
>>>>start() method - is there a better way?) and using it for installation
>>
>>of
>>
>>>>bundles. But here is the problem I stumbled into: when I'm getting the
>>>>headers (expected to get all manifest.mf dictionary) of recently
>>
>>installed
>>
>>>>bundle I'm getting nothing. When asking in console to show the headers
>>
>>I'm
>>
>>>>getting next:
>>>>
>>>>osgi> headers 88
>>>>Bundle headers:
>>>>
>>>>META-INF/IVEATTRS.XML not found in
>>>>file:D:\dev\runtime-workspace\test\test.jar [88]
>>>>META-INF/IVERES.XML not found in
>>>
>>>file:D:\dev\runtime-workspace\test\test.jar
>>>
>>>>[88]
>>>>
>>>>Does that mean that Eclipse OSGi is not compatable with standard
>>>>specification? Or probably I miss something...
>>>>
>>>>Thanks,
>>>>Alex.
>>>>
>>>>
>>>
>>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03282 seconds