[ http://jira.codehaus.org/browse/MOJO-333?page=comments#action_63112 ] 

Jerome Lacoste commented on MOJO-333:
-------------------------------------

OK there's some progress then.
The NPE comes because the JarSignMojo is broken.

If you apply both my former patch on the webstart plugin and apply the
first or both of the changes in http://jira.codehaus.org/browse/MJAR-31

Does that work again?

Try to find the minimal number of changes to make it work, you perhaps don't 
need the second part of the change in patch for MJAR-31.

If so, I will push again for MJAR-31 fixes to be committed, and investigate why 
we need to explicitly set the SignedJar property to null.



> webstart maven plugin: can't sign a jar file in place
> -----------------------------------------------------
>
>          Key: MOJO-333
>          URL: http://jira.codehaus.org/browse/MOJO-333
>      Project: Mojo
>         Type: Bug

>   Components: webstart
>  Environment: OSX 10.4.5, java 1.5.0_06
>     Reporter: Julian Wood
>     Assignee: Jerome Lacoste
>  Attachments: MOJO-333-maven-webstart-plugin.patch
>
>
> When the plugin goes to sign a jar file, it fails with an error of 138:
> [INFO] [webstart:jnlp {execution: default}]
> [debug] jarsigner 
> executable=[/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/jarsigner]
> [debug] mdkirs: false 
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp
> [debug] Executing: 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/jarsigner 
> -verbose -keystore /Users/woodj/Library/myKeyStore -storepass ***** -keypass 
> ***** -signedjar 
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  woodj
> [INFO] 
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Result of 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/jarsigner 
> -verbose -keystore /Users/woodj/Library/myKeyStore -storepass ***** -keypass 
> ***** -signedjar 
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  woodj execution is: '138'.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Result of 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/jarsigner 
> -verbose -keystore /Users/woodj/Library/myKeyStore -storepass ***** -keypass 
> ***** -signedjar 
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  woodj execution is: '138'.
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Result of 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/jarsigner 
> -verbose -keystore /Users/woodj/Library/myKeyStore -storepass ***** -keypass 
> ***** -signedjar 
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  
> /Volumes/Jaguar/Users/woodj/Documents/prt/prt/trunk/prt-webstart/target/jnlp/prt-admin-2.0-SNAPSHOT.jar
>  woodj execution is: '138'.
>         at 
> org.apache.maven.plugin.jar.JarSignMojo.signJar(JarSignMojo.java:268)
>         at 
> org.apache.maven.plugin.jar.JarSignMojo.execute(JarSignMojo.java:175)
>         at org.codehaus.mojo.webstart.JnlpMojo.signJars(JnlpMojo.java:865)
>         at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:441)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>         ... 16 more

-- 
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

Reply via email to