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

Stephane Nicoll edited comment on MWEBSTART-32 at 5/10/07 2:35 AM:
-------------------------------------------------------------------

As I said, I have rebuilt the whole webstart project from trunk.

- Maven 2.0.6
- jnlp-inline goal
- Here's the log

{noformat}
DEBUG] webstart-jarsigner-api: using locally installed snapshot
[DEBUG] pack200-jdk15: using locally installed snapshot
[DEBUG] Configuring mojo 
'org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp-inline' -->
[DEBUG]   (f) basedir = 
/data/sandboxes/projects/components/style-editor/style-editor-jnlp
[DEBUG]   (f) gzip = false
[DEBUG]   (s) mainClass = com.ionicsoft.tools.styler.Main
[DEBUG]   (s) outputFile = start.jnlp
[DEBUG]   (f) jnlp = [EMAIL PROTECTED]
[DEBUG]   (f) localRepository = [local] -> file:///home/sn/.m2/repository
[DEBUG]   (s) outputJarVersions = false
[DEBUG]   (f) pack200 = false
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: 
org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT



Cause: Class 'org.codehaus.mojo.webstart.SignConfig' cannot be instantiated
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: 
org.codehaus.mojo:webstart-maven-plugin. 
Reason: Unable to parse the created DOM for plugin configuration
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:568)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        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.PluginConfigurationException: Error 
configuring: 
org.codehaus.mojo:webstart-maven-plugin. Reason: Unable to parse the created 
DOM for plugin configuration
        at 
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1153)
        at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:614)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: 
org.codehaus.plexus.component.configurator.ComponentConfigurationException: 
Class 
'org.codehaus.mojo.webstart.SignConfig' cannot be instantiated
        at 
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:121)
        at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:88)
        at 
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
        at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
        at 
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
        at 
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1147)
        ... 19 more
Caused by: java.lang.InstantiationException: 
org.codehaus.mojo.webstart.SignConfig
        at java.lang.Class.newInstance0(Class.java:335)
        at java.lang.Class.newInstance(Class.java:303)
        at 
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111)
        ... 24 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu May 10 09:31:49 CEST 2007
[INFO] Final Memory: 8M/17M
[INFO] ------------------------------------------------------------------------
{noformat}

Note that by adding the sign implementation thingy (see above) it works.

Here's my plugin config

{code:xml}
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>webstart-maven-plugin</artifactId>
                <version>1.0-alpha-2-SNAPSHOT</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jnlp-inline</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jnlp>
                        <mainClass>com.ionicsoft.tools.styler.Main</mainClass>
                        <outputFile>start.jnlp</outputFile>
                    </jnlp>
                    <verbose>true</verbose>

                    <sign 
implementation="org.codehaus.mojo.webstart.JarSignMojoConfig"> 
                        <keystore>/tmp/keystore</keystore>
                        <keypass>m2m2m2</keypass>
                        <storepass>m2m2m2</storepass>
                        <!-- ${storepass} -->                        
                        <alias>ionic</alias>
                        <validity></validity>

                        <dnameCn>www.ionicsoft.com</dnameCn>
                        <dnameOu>RD</dnameOu>
                        <dnameO>Ionic Software</dnameO>
                        <dnameL>Liege</dnameL>
                        <dnameSt>Liege</dnameSt>
                        <dnameC>BE</dnameC>

                        <verify>true</verify>

                        <keystoreConfig>
                            <delete>true</delete>
                            <gen>true</gen>
                        </keystoreConfig>
                    </sign>
                </configuration>
            </plugin>
{code}


 was:
As I said, I have rebuilt the whole webstart project from trunk.

- Maven 2.0.6
- jnlp-inline goal
- Here's the log

{noformat}
DEBUG] webstart-jarsigner-api: using locally installed snapshot
[DEBUG] pack200-jdk15: using locally installed snapshot
[DEBUG] Configuring mojo 
'org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp-inline' -->
[DEBUG]   (f) basedir = 
/data/sandboxes/projects/components/style-editor/style-editor-jnlp
[DEBUG]   (f) gzip = false
[DEBUG]   (s) mainClass = com.ionicsoft.tools.styler.Main
[DEBUG]   (s) outputFile = start.jnlp
[DEBUG]   (f) jnlp = [EMAIL PROTECTED]
[DEBUG]   (f) localRepository = [local] -> file:///home/sn/.m2/repository
[DEBUG]   (s) outputJarVersions = false
[DEBUG]   (f) pack200 = false
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: 
org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT



Cause: Class 'org.codehaus.mojo.webstart.SignConfig' cannot be instantiated
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: 
org.codehaus.mojo:webstart-maven-plugin. 
Reason: Unable to parse the created DOM for plugin configuration
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:568)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        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.PluginConfigurationException: Error 
configuring: 
org.codehaus.mojo:webstart-maven-plugin. Reason: Unable to parse the created 
DOM for plugin configuration
        at 
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1153)
        at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:614)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: 
org.codehaus.plexus.component.configurator.ComponentConfigurationException: 
Class 
'org.codehaus.mojo.webstart.SignConfig' cannot be instantiated
        at 
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:121)
        at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:88)
        at 
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
        at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
        at 
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
        at 
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1147)
        ... 19 more
Caused by: java.lang.InstantiationException: 
org.codehaus.mojo.webstart.SignConfig
        at java.lang.Class.newInstance0(Class.java:335)
        at java.lang.Class.newInstance(Class.java:303)
        at 
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111)
        ... 24 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu May 10 09:31:49 CEST 2007
[INFO] Final Memory: 8M/17M
[INFO] ------------------------------------------------------------------------
{noformat}

Note that by adding the sign implementation thingy (see above) it works.

Here's my plugin config

{code:xml}
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>webstart-maven-plugin</artifactId>
                <version>1.0-alpha-2-SNAPSHOT</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jnlp-inline</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jnlp>
                        <mainClass>com.ionicsoft.tools.styler.Main</mainClass>
                        <outputFile>start.jnlp</outputFile>
                    </jnlp>
                    <verbose>true</verbose>

                    <sign 
implementation="org.codehaus.mojo.webstart.JarSignMojoConfig"> 
                        <keystore>/tmp/keystore</keystore>
                        <keypass>m2m2m2</keypass>
                        <storepass>m2m2m2</storepass>
                        <!-- ${storepass} -->                        
                        <alias>ionic</alias>
                        <validity></validity>

                        <dnameCn>www.ionicsoft.com</dnameCn>
                        <dnameOu>RD</dnameOu>
                        <dnameO>Ionic Software</dnameO>
                        <dnameL>Liege</dnameL>
                        <dnameSt>Liege</dnameSt>
                        <dnameC>BE</dnameC>

                        <verify>true</verify>

                        <keystoreConfig>
                            <delete>true</delete>
                            <gen>true</gen>
                        </keystoreConfig>
                    </sign>
                </configuration>
            </plugin>
{code}

> 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
>            Assignee: Jerome Lacoste
>             Fix For: 1.0-alpha-2
>
>
> 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