error running sample/jirb.jnlp with signed version of jruby-complete.jar
------------------------------------------------------------------------
Key: JRUBY-1782
URL: http://jira.codehaus.org/browse/JRUBY-1782
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1b1
Environment: MacOS 10.4.11, JRuby trunk
Reporter: Stephen Bannasch
Assignee: Thomas E Enebo
When using a signed version of jruby-complete.jar with jnlp sample:
samples/jirb.jnlp IRB console appears and then quits a few seconds later.
I used jarsigner to make a signed copy of jruby-complete.jar called
jruby-complete-signed.jar.
{code}
jarsigner -keystore <path-to_keystore> -storepass <storepass> -keypass
<keypass> -signedjar jruby-complete-signed.jar jruby-complete.jar <alias>
{code}
The jar verifies:
{code}
$ jarsigner -verify jruby-complete-signed.jar
jar verified.
{code}
The modified version of jirb.jnlp looks like this:
{code}
file: signed_jirb.jnlp
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
<!-- NOTE: Adjust codebase to your location, and make sure
jruby-complete.jar is in the lib directory, relative to
the specified codebase. The jruby-complete.jar is
typically built via 'ant jar-complete'.
-->
codebase="file:.">
<information>
<title>JRuby IRB Console</title>
<vendor>The JRuby Team</vendor>
<description>Sample WebStart Application with JRuby</description>
<description kind="short">JRuby IRB Console Sample</description>
<homepage href="http://jruby.codehaus.org/"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="jruby-complete-signed.jar" download="eager" main="false"/>
</resources>
<application-desc main-class="org.jruby.demo.IRBConsole">
</application-desc>
</jnlp>
{code}
I start my test in the shell like this:
{code}
javaws signed_jirb.jnlp
{code}
The webstart console appears and then the IRBConsole appears. The IRB prompt
does not appear and after a few seconds the webstart instance quits with no
obvious error.
I'm not sure if webstart keeps any more informative logs about what was going
on.
If anybody has any ideas about how I can instrument this to get more info let
me know.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email