Equinox WebStart [message #76969] |
Mon, 13 November 2006 19:22  |
Eclipse User |
|
|
|
Originally posted by: hani.naguib.info
Hi I have writen an Equinox based application composed of around 20 bundles.
I now want to start it using WebStart but I am not quite sure how to go
about it.
I have not been able to find any documentation on this and am not sure if it
is possible. My bundles are generic (ie not equinox specific bundles).
Currently the
application is started using the standard java -jar
plugins/org.eclipse.osgi_3.2.0.v20060601.jar
The problems I think I will have are these.
Currently the app looks for the configuration file in plugins/configuration
directory. How can a webstarted application get hold of the configuration
since everything has
to be jarred up?
What would I need to specify in the jnpl file (ie how are the other bundles
specified)
Anyway tomorrow I will give it a try, but I was wondering if someone has
already done this and could shed some light.
Thanks,
Hani
|
|
|
|
|
|
|
|
|
Re: Equinox WebStart [message #77144 is a reply to message #77105] |
Tue, 14 November 2006 19:21   |
Eclipse User |
|
|
|
Originally posted by: hani.naguib.info
Hi Alex, that seems to have helped although renaming it caused the export
feature to fail, so I went back to an
older version of eclipse (still 3.2 but a little older). I would never have
figured that one out thanks alot.
Now the application downloads and starts but nothing happens and it exists
without leaving any logs (either in the
instance area nor under java webstart ).
Unfortunately my own bundles have underscores in there names, tomorrow I
will remove those and see if that helps.
One thing I would like to make sure is that it is in fact possible to run
osgi based applications through webstart?
My application is a set of 'generic' bundles and not specific to equinox, I
use equinox because I develop on Eclipse
but they can also be run on knoperfish for example.
Has anyone in this forum done this?
Also from what I gather the information which is normally stored in my
config.ini is moved into my jnpl file.
Specifically I define 'osgi.bundles' and 'eclipse.ignoreApp' properties with
the same values I have in my config.ini.
It also seems like I need to define 'eclipse.product' setting it to the name
of my wrapping feature id.
Thanks,
Hani
"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:29158246.1163516694479.JavaMail.root@cp1.javalobby.org...
> Looking at the <a
> href=" http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.platfor m/src/org/eclipse/core/launcher/WebStartMain.java?rev=HEAD&a mp;only_with_tag=R3_2_1&content-type=text/vnd.viewcvs-ma rkup">source
> code</a>, it looks like it's failing to find the osgi.framework:
>
>
> //Set the fwk location since the regular lookup would not find it
> String fwkURL = searchFor(framework, null);
> System.getProperties().put(PROP_FRAMEWORK, fwkURL);
>
>
> I seem to recall a bug raised not so long ago about the new name for the
> OSGi bundle causing problems:
>
> ... href="plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar"
>
> because there were two _ in the title. Can you try renaming this to
> plugins/org.eclipse.osgi_3.2.1.v20060919.jar, and see if that fixes the
> problem? You should also check that it's been downloaded OK in the Java
> WebStart cache (which I think is in .javaws in your home directory, but I
> could be wrong)
>
> Alex.
|
|
|
Re: Equinox WebStart [message #77160 is a reply to message #77144] |
Tue, 14 November 2006 19:45   |
Eclipse User |
|
|
|
Originally posted by: hani.naguib.info
Seems like my current problem is related to this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=163312
"Hani Naguib" <hani@naguib.info> wrote in message
news:ejdmiv$hom$1@utils.eclipse.org...
> Hi Alex, that seems to have helped although renaming it caused the export
> feature to fail, so I went back to an
> older version of eclipse (still 3.2 but a little older). I would never
> have figured that one out thanks alot.
>
> Now the application downloads and starts but nothing happens and it exists
> without leaving any logs (either in the
> instance area nor under java webstart ).
>
> Unfortunately my own bundles have underscores in there names, tomorrow I
> will remove those and see if that helps.
>
> One thing I would like to make sure is that it is in fact possible to run
> osgi based applications through webstart?
> My application is a set of 'generic' bundles and not specific to equinox,
> I use equinox because I develop on Eclipse
> but they can also be run on knoperfish for example.
> Has anyone in this forum done this?
>
> Also from what I gather the information which is normally stored in my
> config.ini is moved into my jnpl file.
> Specifically I define 'osgi.bundles' and 'eclipse.ignoreApp' properties
> with the same values I have in my config.ini.
> It also seems like I need to define 'eclipse.product' setting it to the
> name of my wrapping feature id.
>
> Thanks,
> Hani
>
>
>
> "Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
> news:29158246.1163516694479.JavaMail.root@cp1.javalobby.org...
>> Looking at the <a
>> href=" http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.platfor m/src/org/eclipse/core/launcher/WebStartMain.java?rev=HEAD&a mp;only_with_tag=R3_2_1&content-type=text/vnd.viewcvs-ma rkup">source
>> code</a>, it looks like it's failing to find the osgi.framework:
>>
>>
>> //Set the fwk location since the regular lookup would not find it
>> String fwkURL = searchFor(framework, null);
>> System.getProperties().put(PROP_FRAMEWORK, fwkURL);
>>
>>
>> I seem to recall a bug raised not so long ago about the new name for the
>> OSGi bundle causing problems:
>>
>> ... href="plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar"
>>
>> because there were two _ in the title. Can you try renaming this to
>> plugins/org.eclipse.osgi_3.2.1.v20060919.jar, and see if that fixes the
>> problem? You should also check that it's been downloaded OK in the Java
>> WebStart cache (which I think is in .javaws in your home directory, but I
>> could be wrong)
>>
>> Alex.
>
>
|
|
|
|
|
|
Re: Equinox WebStart [message #77333 is a reply to message #77287] |
Thu, 16 November 2006 09:29  |
Eclipse User |
|
|
|
Originally posted by: hani.naguib.info
Hi Alex,
Thanks for all the help, I have not managed to get my osgi application
started and will need to
revisit this at some later time since I can't afford to spend too much time
on it right now.
Although all the jar files get downloaded properly my test bundle does not
get started, I am not
sure why. As for product id's and application ids, I think those relate to
RCP applications mine is
not an RCP application it is an OSGI application there is no notion of
product id etc.
I will reply to this thread if I ever do get it going but for now I need to
move on to something else.
Thanks for all the help.
Hani
"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:28834907.1163613510137.JavaMail.root@cp1.javalobby.org...
>> By using a slightly older version of eclipse (ie where the
>> org.eclipse.osgi...jar file did not have 2 underscores in its
>> name) my initial problem disappeared.
>
> Yes, I thought it would, that's why I suggested it. Thanks for letting me
> (and others) know though.
>
> You were specifying the name of the product in the properties already. It
> should be the same one that you have in the .product file, if you're using
> products to customise your eclipse runtime. If not, you might need to pass
> "-application" and "com.example.application.id" as arguments in via the
> JNLP.
>
> Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.04846 seconds