[ 
http://jira.codehaus.org/browse/MWEBSTART-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92336
 ] 

Jerome Lacoste commented on MWEBSTART-32:
-----------------------------------------

It's a work-around but you *shouldn't* have to do! The whole point of waiting 
to check in MWEBSTART-18 was to allow the depending MNG-2293 to be fixed. It 
looks like you're affected by it.
The default implementation should be picked automatically.

I've found the problem:

The generated  META-INF/maven/plugin.xml in the webstart plugin jar file should 
contain:

        <parameter>
          <name>sign</name>
          <type>SignConfig</type>
          
<implementation>org.codehaus.mojo.webstart.JarSignMojoConfig</implementation>
          <required>false</required>
          <editable>true</editable>
          <description>The Sign Config</description>
        </parameter>

but contains

<parameter>
  <name>sign</name>
  <type>SignConfig</type>
  <required>false</required>
  <editable>true</editable>
  <description>The Sign Config</description>
</parameter>

(the default implementation is missing). Strange because the plugin.xml file on 
my machine contains the implementation element. Maybe I deployed from another 
PC ?

I will regenerate a new jar file and deploy it. After that you will be able to 
use it without the implementation element.

> Class 'org.codehaus.mojo.webstart.SignConfig' cannot be instantiated
> --------------------------------------------------------------------
>
>                 Key: MWEBSTART-32
>                 URL: http://jira.codehaus.org/browse/MWEBSTART-32
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-2
>         Environment: Maven 2.0.5, Maven 2.0.6
>            Reporter: Ken Geis
>
> With the April 3 snapshot, I get the following error message:
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to configure plugin parameters for: 
> org.codehaus.mojo:webstart-mav
> en-plugin:1.0-alpha-2-SNAPSHOT
> Cause: Class 'org.codehaus.mojo.webstart.SignConfig' cannot be instantiated
> [INFO] 
> ------------------------------------------------------------------------
> I'm guessing that this is because the POM declares webstart-jarsigner-api as 
> a compile-time dependency, and it is probably also needed at runtime.

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

Reply via email to