[ 
https://jira.codehaus.org/browse/MWEBSTART-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282426#comment-282426
 ] 

Tony Chemit commented on MWEBSTART-164:
---------------------------------------

Could you try just to do a little project only using the keytool plugin (since 
in the webstart plugin we just call this other mojo).
If the problem persist just with you little project, best to do I thing is to 
affect this bug to the keytool maven plugin.

> "keytool error: java.lang.RuntimeException: Too may retries, program 
> terminated" when missing dname*
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MWEBSTART-164
>                 URL: https://jira.codehaus.org/browse/MWEBSTART-164
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: Bug
>          Components: keytool
>    Affects Versions: 1.0-beta-1
>         Environment: JDK 1.6.0_24, Maven 3.0.3
>            Reporter: The Alchemist
>
> h2. The Error
> {code}
> [INFO] 
> [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ bccommander-jws ---
> [INFO] 
> [INFO] <<< webstart-maven-plugin:1.0-beta-1:jnlp (default-cli) @ 
> bccommander-jws <<<
> [INFO] 
> [INFO] --- webstart-maven-plugin:1.0-beta-1:jnlp (default-cli) @ 
> bccommander-jws ---
> [INFO] No resources found in 
> C:\Users\kpietrzak\Documents\code\BCC\branches\private\kpietrzak\trunk-modularization\bcc-jws\src\main\jnlp\resources
> [INFO] artifact com.rajant:bccommander-gui:jar:10.24-SNAPSHOT:compile seems 
> to contain the main class: com.rajant.bcc.ui.BCCApplication but the jar 
> doesn't seem to contain all dependencies 
> org/jdesktop/application/SingleFrameApplication
> [INFO] Skipping artifact of type pom for lib
> [WARNING] What is your first and last name?
> [WARNING]   [Unknown]:  What is the name of your organizational unit?
> [WARNING]   [Unknown]:  What is the name of your organization?
> [WARNING]   [Unknown]:  What is the name of your City or Locality?
> [WARNING]   [Unknown]:  What is the name of your State or Province?
> [WARNING]   [Unknown]:  What is the two-letter country code for this unit?
> [WARNING]   [Unknown]:  Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, 
> ST=Unknown, C=Unknown correct?
> [WARNING]   [no]:  What is your first and last name?
> [WARNING]   [Unknown]:  What is the name of your organizational unit?
> [WARNING]   [Unknown]:  What is the name of your organization?
> [WARNING]   [Unknown]:  What is the name of your City or Locality?
> [WARNING]   [Unknown]:  What is the name of your State or Province?
> [WARNING]   [Unknown]:  What is the two-letter country code for this unit?
> [WARNING]   [Unknown]:  Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, 
> ST=Unknown, C=Unknown correct?
> [WARNING]   [no]:  What is your first and last name?
> [WARNING]   [Unknown]:  What is the name of your organizational unit?
> [WARNING]   [Unknown]:  What is the name of your organization?
> [WARNING]   [Unknown]:  What is the name of your City or Locality?
> [WARNING]   [Unknown]:  What is the name of your State or Province?
> [WARNING]   [Unknown]:  What is the two-letter country code for this unit?
> [WARNING]   [Unknown]:  Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, 
> ST=Unknown, C=Unknown correct?
> ...snip.... repeats about 20 more times...
> [INFO] keytool error: java.lang.RuntimeException: Too may retries, program 
> terminated
> [INFO] java.lang.RuntimeException: Too may retries, program terminated
> [INFO]        at sun.security.tools.KeyTool.getX500Name(KeyTool.java:2226)
> [INFO]        at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:1151)
> [INFO]        at sun.security.tools.KeyTool.doCommands(KeyTool.java:786)
> [INFO]        at sun.security.tools.KeyTool.run(KeyTool.java:172)
> [INFO]        at sun.security.tools.KeyTool.main(KeyTool.java:166)
> [WARNING]   [no]:  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 2.623s
> [INFO] Finished at: Tue Mar 22 12:22:15 EDT 2011
> [INFO] Final Memory: 9M/167M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.codehaus.mojo.webstart:webstart-maven-plugin:1.0-beta-1:jnlp 
> (default-cli) on project bccommander-jws: Result of cmd.exe /X /C 
> '""C:\Program Files\Java\jdk1.6.0_24\jre\..\bin\keytool.exe" -genkey -v 
> -alias fillme -keypass fillme -keystore fillme -storepass fillme"' execution 
> is: '1': ...snip some more... [Help 1]
> [ERROR] 
> {code}
> h2. The Workaround
> {code:xml}
> <!-- SIGNING -->
>                                       <!-- defining this will automatically 
> sign the jar and its dependencies, if necessary -->
>                                       <sign>
>                                               <keystore>fillme</keystore>
>                                               <keypass>fillme</keypass>  <!-- 
> we need to override passwords easily from the command line. ${keypass} -->
>                                               <storepass>fillme</storepass> 
> <!-- ${storepass} -->
>                                               
> <!--storetype>fillme</storetype-->
>                                               <alias>fillme</alias>
>                                               <!--validity>fillme</validity-->
>                                               <!-- only required for 
> generating the keystore -->
> <!--                                          <dnameCn>fillme</dnameCn> -->
> <!--             <dnameOu>fillme</dnameOu> -->
> <!--             <dnameO>fillme</dnameO> -->
> <!--             <dnameL>fillme</dnameL> -->
> <!--             <dnameSt>fillme</dnameSt> -->
> <!--             <dnameC>fillme</dnameC> -->
> {code}
> See that the dname* properties are commented out?  If you uncomment the 
> properties, everything is a-OK.
> If someone points me in the right direction (e.g., a class name and method), 
> I can write a test case and patch.

--
This message is automatically generated by JIRA.
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