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

password_tool.bat generates java.lang.ClassNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • EAP_EWP 5.1.0
    • EAP_EWP 5.1.0_CR3
    • Security
    • None
    • Windows

      The password_tool.bat command found in $JBOSS_HOME%\bin generates a java.lang.ClassNotFoundException:

      C:\JBPAPP\jboss-eap-5.1\jboss-as\bin>password_tool.bat
      **********************************

            • 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
              0
              Enter Keystore password
              testpass
              Enter Salt (String should be at least 8 characters)
              hshdgfdjdekjdsd,md
              Enter Iterator Count (integer value)
              4
              Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/plugins/FilePassword
              at org.jboss.security.integration.password.PasswordTool.main(PasswordTool.java:104)
              Caused by: java.lang.ClassNotFoundException: org.jboss.security.plugins.FilePassword
              at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
              ... 1 more
              org.jboss.security.integration.password.PasswordTool$ShutdownHook run called
              Keystore is null. Cannot store.

      THis exception occurs on Windows but does not occur on Linux.
      It seems to be a simple classpath problem in the script.

            rachmato@redhat.com Richard Achmatowicz
            rachmato@redhat.com Richard Achmatowicz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: