Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 270421 - [launcher] Webstart fails on Linux (even with osgi.ws=gtk)
Summary: [launcher] Webstart fails on Linux (even with osgi.ws=gtk)
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 270949 (view as bug list)
Depends on:
Blocks: 268733
  Show dependency tree
 
Reported: 2009-03-30 05:01 EDT by Nicolas Richeton CLA
Modified: 2018-12-03 09:06 EST (History)
5 users (show)

See Also:


Attachments
Nebula Example log on Linux (15.37 KB, text/x-log)
2009-03-30 05:25 EDT, Nicolas Richeton CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Richeton CLA 2009-03-30 05:01:16 EDT
I'm trying generating the Nebula examples as a webstart application. (see bug 268733)
This works work windows and macos, but on linux, the linux.gtk fragment is not selected. I've added the osgi.ws property with no result : 
	<property name="osgi.ws" value="gtk" />
	
the application starts with the right system : 'Bootloader constants : OS=linux, ARCH=x86, WS=gtk, NL=fr_FR'  but I get a class not found exception on SWTError.

See attached log.

Using Ubuntu and JRE 1.6 u13 from Sun website, Eclipse 3.5M6
Comment 1 Nicolas Richeton CLA 2009-03-30 05:25:57 EDT
Created attachment 130212 [details]
Nebula Example log on Linux

Showing Boot arguments and exception.
Comment 2 Thomas Watson CLA 2009-03-30 13:47:26 EDT
Pascal, do you think p2 has anything to do with this bug?  Or did you mean to move it to framework?
Comment 3 Andrew Niefer CLA 2009-04-02 10:08:11 EDT
This is does not appear to be a framework problem.
When I run on sun VMs, JNLP is not downloading the platform specific fragments, and the application fails to run because they aren't there.

When I run on an IBM vm, Webstart fails early because 
http://nricheton.homeip.net/public/nebula/plugins/org.eclipse.swt.motif.linux.x86_3.5.0.v3536b.jar
does not exist.

It could be that sun is just more forgiving about missing resources on the server.

 Note that webstart does not filter on ws, try either removing the motif bundles from the jnlp files, or put them up on the server.

On my linux machine, I can see what webstart downloaded :
~/.java/deployment/cache/javaws/http/Dnricheton.homeip.net/P80/DMpublic/DMnebula/*
Comment 4 Nicolas Richeton CLA 2009-04-02 10:28:47 EDT
You're right about the missing fragment. This will be another bug this Eclipse is giving me errors when I try to generate it. 

BUT : I removed this fragment from the jnlp and I still get the error. The attached it the one given by equinox, so the problem doesn't seem caused by javaws. 
It start with ws=gtk so the lack of motif should not be a problem with sun WMs. 

I suspect something like starting with ws=gtk and still looking for motif. 

(With Sun Java 6 I can't find the path you mentionned to see what is downloaded, every jar seems stored renamed as a hash).
Comment 5 Nicolas Richeton CLA 2009-04-02 11:50:42 EDT
Ok, found the issue : 
Eclipse generate a jnlp with 
<resources os="Linux" arch="x86">

But on sun VM + Debian, the arch is i386

So the bundle is not resolved. 

I updated the jnlp and it works

-> Eclipse must include the i386 arch when generating the jnlp for RCP.

I guess this bug must be moved to the PDE inbox.



Comment 6 Nicolas Richeton CLA 2009-04-02 11:55:48 EDT
reassigning to equinox.p2-inbox@eclipse.org. Sorry, wrong click.
Comment 7 Andrew Niefer CLA 2009-04-03 11:27:24 EDT
*** Bug 270949 has been marked as a duplicate of this bug. ***
Comment 8 Andrew Niefer CLA 2009-04-03 11:28:09 EDT
What do other vms (IBM, harmony?) do with i386, do we need to add both i386 and x86?
Comment 9 Nicolas Richeton CLA 2009-04-03 11:38:37 EDT
I guess it's both since you had early errors with IBM VM : it was really using x86. I did not get early errors with sun VM since it uses i386.
Comment 10 Lars Vogel CLA 2018-12-03 09:06:47 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.