Open GoogleCodeExporter opened 9 years ago
If you want to try for yourself:
https://store.java.com/warehouse/site/Login
Original comment by tableYou...@gmail.com
on 21 Dec 2009 at 10:04
I updated OneJarMojo.java with a hack that would cause all the jars to be
signed in
the same way the onejar is signed (see enclosed).
This was just a proof-of-concept, the key store info is hard coded and would
need to
get passed in from the pom.
What I found out is that JNLP will still fail on restricted operations, such as
io,
even though the outside and internal jars are all signed in the same way.
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission user.dir read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
Original comment by karldinw...@gmail.com
on 1 Jan 2010 at 12:42
Attachments:
Actually, are you sure you want to use OneJAR with JNLP? I'm starting to think
it
even defeats the purpose of JNLP being able to download just the jars which
have been
updated, and letting the other ones stay cached on disk...
Isn't there a good way to generate JNLP stuff with some Maven plugin too? What
I mean
is that the purpose (for me at least) with using OneJAR for standalone
executable
jars, is that I get one easy way to deliver the app. The same goes for the
standard
way JNLP is done: it's one easy way for the user to download and launch the
entire
app with one mouse click.
Or am I missing something in your use-case?
Thanks,
Hugo
Original comment by hugo.josefson.old@gmail.com
on 26 Jan 2010 at 7:16
Yes, you are right. OneJar isn't really for the JNLP-usecase.
The problem was that neither OneJar nor the JNLP plugin worked for the appstore
(allthough both work for my timefinder.de application directly on the site)
And then I thought I post the exceptions here :-)
because I though that there could be use-cases where you need to sign the OneJar
(maybe I was wrong with this assumption)
Original comment by tableYou...@gmail.com
on 27 Jan 2010 at 6:26
Original issue reported on code.google.com by
tableYou...@gmail.com
on 21 Dec 2009 at 10:00