Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1790

elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl

    Details

    • Steps to Reproduce:
      Hide
      1. build WF from master
      2. ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --debug
      3. There is exception
        Exception encountered executing the command:
        org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
        	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
        	at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
        	at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
        	at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
        	at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
        Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
        	at java.security.Provider$Service.getImplClass(Provider.java:1649)
        	at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
        	at java.security.Provider$Service.newInstance(Provider.java:1584)
        	at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
        	at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
        	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
        	... 4 more
        Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
        	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        	at java.security.Provider$Service.getImplClass(Provider.java:1636)
        	... 9 more
        
      Show
      build WF from master ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --debug There is exception Exception encountered executing the command: org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402) at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242) at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226) at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242) at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84) Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found. at java.security.Provider$Service.getImplClass(Provider.java:1649) at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660) at java.security.Provider$Service.newInstance(Provider.java:1584) at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119) at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76) at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276) ... 4 more Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang. ClassLoader .loadClass( ClassLoader .java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang. ClassLoader .loadClass( ClassLoader .java:357) at java.security.Provider$Service.getImplClass(Provider.java:1636) ... 9 more

      Description

      We are hitting regression in our tests against WF master

      01:48:56,706 INFO  [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
      01:48:57,255 INFO  [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
      01:48:57,255 INFO  [com.redhat.eap.qe.cli.CommandExecutor] (main) 
      01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
      01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
      org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
      	at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
      	at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
      	at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
      	at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
      Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
      	at java.security.Provider$Service.getImplClass(Provider.java:1649)
      	at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
      	at java.security.Provider$Service.newInstance(Provider.java:1584)
      	at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
      	at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
      	... 4 more
      Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.security.Provider$Service.getImplClass(Provider.java:1636)
      	... 9 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlofthouse Darran Lofthouse
                  Reporter:
                  mchoma Martin Choma
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: