Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » [buckminster-dev] create.eclipse.jnlp.product issues
[buckminster-dev] create.eclipse.jnlp.product issues [message #478718] Thu, 06 August 2009 14:24
Eclipse User
Originally posted by: dieter.cailliau.barco.com

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA16A1.AC3FE73D
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm using this ant target create.eclipse.jnlp.product from =
buckminster.pdetasks (1) using the properties file (2) to produce an =
installer/ folder containing most of the contents for my =
webstartable.war; to turn it into a war i zip the folder, and add the =
WEB-INF/lib/jnlp-servlet.jar + WEB-INF/web.xml + startup.signed.jar + =
my.jnlp (3). My target env is eclipse 3.5 with delta pack. The =
feature-project where i run this target, has a feature.xml with 4 =
included features: my own app, rcp, platform and help

I'm not sure if this startup.jar is the right way to launch the 3.5 =
thing, but it used to work in eclipse 3.2 so i just copied it :)

To get it actually downloadable, i have to fix some things:

A) the jars never get signed even though site.signing=3Dtrue. I tried to =
fix this by signing them myself, but eventually the client env still =
stops, saying "jar resources in jnlp are not signed by the same =
certificate".

for i in $(find installer/*/*.jar)=20
do
echo $i;
jarsigner -keystore jnlp.keystore -keypass xyz -storepass xyz $i me
done
jarsigner -keystore jnlp.keystore -keypass xyz -storepass xyz =
startup.signed.jar me

B) in the generated jnlp files, i see extension nodes that refer to =
other generated jnlp files. Typically the href looks like =
"features/....jnlp" though the actual jnlp is not in that features =
folder; it's on the root. Fix =3D remove the "features/" prefix from the =
href value.

C) for win32 win32 x86 the org.eclipse.rcp...jnlp refers to 2 ...wpf... =
bundles or fragments which are not there (but the same name with =
....win32... is there). I just remove these lines.



(1)
<public name=3D"create.eclipse.jnlp.product" actor=3D"ant">
<actorProperies>
<property key=3D"buildFileId" value=3D"buckminster.pdetasks"/>
<property key=3D"targets" value=3D"create.eclipse.jnlp.product"/>
</actorProperties>
<properties>
<property key=3D"buckminster.eclipse.productFile" =
value=3D"client.product"/>
<property key=3D"buckminster.eclipse.deleteuilauncher" value=3D"false"/>
</properties>
<prerequisites alias=3D"action.requirements">
<attribute name=3D"feature.exports"/>
</prerequisites>
<products alias=3D"action.output" base=3D"${buckminster.output}" >
<path path=3D"installer/"/>
</products>
</public>

(2)
buckminster.output.root /tmp/x6
buckminster.temp.root /tmp/y6
local.keystore.path ${workspace.root}/.../jnlp.keystore
local.keystore.alias me
local.keystore.password xyz
local.keystore.passphrase xyz =20
site.pack200 false
site.signing true
signing.type local
cbi.include.source false
qualifier.replacement.*=3Dgenerator:lastRevision
#target.os=3Dlinux
#target.ws=3Dgtk
#target.arch=3Dx86
target.os=3Dwin32
target.ws=3Dwin32
target.arch=3Dx86
=20

(3)
....
<resources>
<jar href=3D"startup.signed.jar"/>

<extension=20
name=3D"mystuff"
href=3D"installer/com....generated.jnlp"/>
=20
</resources>


DISCLAIMER:
Unless indicated otherwise, the information contained in this message is =
privileged and confidential, and is intended only for the use of the =
addressee(s) named above and others who have been specifically =
authorized to receive it. If you are not the intended recipient, you are =
hereby notified that any dissemination, distribution or copying of this =
message and/or attachments is strictly prohibited. The company accepts =
no liability for any damage caused by any virus transmitted by this =
email. Furthermore, the company does not warrant a proper and complete =
transmission of this information, nor does it accept liability for any =
delays. If you have received this message in error, please contact the =
sender and delete the message. Thank you.

------_=_NextPart_001_01CA16A1.AC3FE73D
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7654.12">
<TITLE>create.eclipse.jnlp.product issues</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>I'm using this ant target create.eclipse.jnlp.product =
from buckminster.pdetasks (1) using the properties file (2) to produce =
an installer/ folder containing most of the contents for my =
webstartable.war; to turn it into a war i zip the folder, and add the =
WEB-INF/lib/jnlp-servlet.jar + WEB-INF/web.xml + startup.signed.jar + =
my.jnlp (3). My target env is eclipse 3.5 with delta pack. The =
feature-project where i run this target, has a feature.xml with 4 =
included features: my own app, rcp, platform and help<BR>
<BR>
I'm not sure if this startup.jar is the right way to launch the 3.5 =
thing, but it used to work in eclipse 3.2 so i just copied it :)<BR>
<BR>
To get it actually downloadable, i have to fix some things:<BR>
<BR>
A) the jars never get signed even though site.signing=3Dtrue. I tried to =
fix this by signing them myself, but eventually the client env still =
stops, saying &quot;jar resources in jnlp are not signed by the same =
certificate&quot;.<BR>
<BR>
for i in $(find installer/*/*.jar)<BR>
do<BR>
echo $i;<BR>
jarsigner -keystore jnlp.keystore -keypass xyz -storepass xyz $i me<BR>
done<BR>
jarsigner -keystore jnlp.keystore -keypass xyz -storepass xyz =
startup.signed.jar me<BR>
<BR>
B) in the generated jnlp files, i see extension nodes that refer to =
other generated jnlp files. Typically the href looks like =
&quot;features/....jnlp&quot; though the actual jnlp is not in that =
features folder; it's on the root. Fix =3D remove the =
&quot;features/&quot; prefix from the href value.<BR>
<BR>
C) for win32 win32 x86 the org.eclipse.rcp...jnlp refers to 2 ...wpf... =
bundles or fragments which are not there (but the same name with =
....win32... is there). I just remove these lines.<BR>
<BR>
<BR>
<BR>
(1)<BR>
&lt;public name=3D&quot;create.eclipse.jnlp.product&quot; =
actor=3D&quot;ant&quot;&gt;<BR>
&lt;actorProperies&gt;<BR>
&lt;property key=3D&quot;buildFileId&quot; =
value=3D&quot;buckminster.pdetasks&quot;/&gt;<BR >
&lt;property key=3D&quot;targets&quot; =
value=3D&quot;create.eclipse.jnlp.product&quot;/& ;gt; <BR>
&lt;/actorProperties&gt;<BR>
&lt;properties&gt;<BR>
&lt;property key=3D&quot;buckminster.eclipse.productFile&quot; =
value=3D&quot;client.product&quot;/&gt;<BR>
&lt;property key=3D&quot;buckminster.eclipse.deleteuilauncher&quo t; =
value=3D&quot;false&quot;/&gt;<BR>
&lt;/properties&gt;<BR>
&lt;prerequisites alias=3D&quot;action.requirements&quot;&gt;<BR>
&lt;attribute name=3D&quot;feature.exports&quot;/&gt;<BR>
&lt;/prerequisites&gt;<BR>
&lt;products alias=3D&quot;action.output&quot; =
base=3D&quot;${buckminster.output}&quot; &gt;<BR>
&lt;path path=3D&quot;installer/&quot;/&gt;<BR>
&lt;/products&gt;<BR>
&lt;/public&gt;<BR>
<BR>
(2)<BR>
buckminster.output.root&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; /tmp/x6<BR>
buckminster.temp.root&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp; =
/tmp/y6<BR>
local.keystore.path ${workspace.root}/.../jnlp.keystore<BR>
local.keystore.alias me<BR>
local.keystore.password xyz<BR>
local.keystore.passphrase xyz&nbsp;&nbsp;<BR>
site.pack200&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; false<BR>
site.signing&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; true<BR>
signing.type&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; local<BR>
cbi.include.source&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp; false<BR>
qualifier.replacement.*=3Dgenerator:lastRevision<BR>
#target.os=3Dlinux<BR>
#target.ws=3Dgtk<BR>
#target.arch=3Dx86<BR>
target.os=3Dwin32<BR>
target.ws=3Dwin32<BR>
target.arch=3Dx86<BR>
<BR>
<BR>
(3)<BR>
....<BR>
&nbsp; &lt;resources&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;jar =
href=3D&quot;startup.signed.jar&quot;/&gt;<BR>
<BR>
&nbsp;&nbsp;&nbsp; &lt;extension<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
name=3D&quot;mystuff&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
href=3D&quot;installer/com....generated.jnlp&quot;/& amp;gt; <BR>
<BR>
&nbsp; &lt;/resources&gt;</FONT>
</P>

<p></p><p>DISCLAIMER:<br>Unless indicated otherwise, the information =
contained in this message is privileged and confidential, and is =
intended only for the use of the addressee(s) named above and others who =
have been specifically authorized to receive it. If you are not the =
intended recipient, you are hereby notified that any dissemination, =
distribution or copying of this message and/or attachments is strictly =
prohibited. The company accepts no liability for any damage caused by =
any virus transmitted by this email. Furthermore, the company does not =
warrant a proper and complete transmission of this information, nor does =
it accept liability for any delays. If you have received this message in =
error, please contact the sender and delete the message. Thank =
you.</BODY>
</HTML>
------_=_NextPart_001_01CA16A1.AC3FE73D--
Previous Topic:[buckminster-dev] There must be 50 ways to build your project... or leave your lover (was Re: Moving
Next Topic:Tutorial for building an RCP from hudson
Goto Forum:
  


Current Time: Sun Oct 26 07:57:39 GMT 2014

Powered by FUDForum. Page generated in 0.13335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software