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

Julian Wood commented on MOJO-333:
----------------------------------

I'm not sure what error 138 is - it's produced by the jarsigner tool when used 
by maven. On the CL, it is just a bus error.

Your new jarsigner syntax works fine from the CL.

Your patch doesn't work for me on a freshly checked out and installed version 
of maven-webstart-plugin. My patch still does though. Yours fails like this:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failure to run the plugin: 

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the 
plugin: 
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        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:256)
        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: Failure to run the 
plugin: 
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:484)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more
Caused by: java.lang.NullPointerException
        at org.apache.maven.plugin.jar.JarSignMojo.signJar(JarSignMojo.java:217)
        at org.apache.maven.plugin.jar.JarSignMojo.execute(JarSignMojo.java:175)
        at org.codehaus.mojo.webstart.JnlpMojo.signJars(JnlpMojo.java:870)
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:446)
        ... 18 more

The problem is this line in the jar plugin:

        addArgIfNotEmpty( arguments, "-signedjar", this.signedjar.getPath() );

this.signedjar is null, so this line is sort of self-defeating.

J





> 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