Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6375

password_tool.sh and password_tool.bat: wrong classpath in the script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EAP_EWP 5.1.1 ER2
    • EAP_EWP 5.1.1 ER1
    • Security
    • None
    • Windows and RHEL.

    • Hide

      Change line:
      JBOSSPASS_CLASSPATH="$JBOSSPASS_CLASSPATH:$JBOSS_HOME/common/lib/jbosssx.jar"
      to:
      JBOSSPASS_CLASSPATH="$JBOSSPASS_CLASSPATH:$JBOSS_HOME/lib/jbosssx.jar"

      Similar fix applies for password_tool.bat file.

      Show
      Change line: JBOSSPASS_CLASSPATH="$JBOSSPASS_CLASSPATH:$JBOSS_HOME/common/lib/jbosssx.jar" to: JBOSSPASS_CLASSPATH="$JBOSSPASS_CLASSPATH:$JBOSS_HOME/lib/jbosssx.jar" Similar fix applies for password_tool.bat file.
    • NEW

      See following session. Password tool ends up with java.lang.NoClassDefFoundError.
      jbosssx.jar is relocated to $JBOSS_HOME/lib directory.

      The same issue applies for password_tool.bat.

      [pskopek@hucho bin]$ ./password_tool.sh
      **********************************

            • JBoss Password Tool********
              **********************************
              Error while trying to load data:Encrypted password file not located
              Maybe it does not exist and need to be created.
              0: Encrypt Keystore Password 1:Specify KeyStore 2:Create Password 3: Remove a domain 4:Enquire Domain 5:Exit
              1
              Enter Keystore location including the file name
              password/password.keystore
              Enter Keystore alias
              1
              Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/plugins/FilePassword
              at org.jboss.security.integration.password.PasswordMaskManagement.ensureKeyStore(PasswordMaskManagement.java:297)
              at org.jboss.security.integration.password.PasswordMaskManagement.setKeyStoreDetails(PasswordMaskManagement.java:83)
              at org.jboss.security.integration.password.PasswordTool.main(PasswordTool.java:121)
              Caused by: java.lang.ClassNotFoundException: org.jboss.security.plugins.FilePassword
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              ... 3 more
              org.jboss.security.integration.password.PasswordTool$ShutdownHook run called
              Keystore is null. Cannot store.

            pskopek@redhat.com Peter Skopek
            pskopek@redhat.com Peter Skopek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: