Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5142

runtime errors if JAVA_HOME or JRE_HOME is not specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.4, 2.2
    • Wish List
    • None
    • Security Level: public (Regular issues)
    • None

    Description

      setjavaenv.sh used to require JAVA_HOME or JRE_HOME to be specified. Looks like it was updated to look for a java runtime in the PATH, and use that, if the environment variables weren't specified.

      On Mac OS, at least, this doesn't work. JAVA_HOME/JRE_HOME are used to set other variables. Namely EXT_DIRS and ENDORSED_DIRS. They aren't set properly, if JAVA_HOME/JRE_HOME aren't set. This causes runtime errors:

      Module 19/70 org.apache.geronimo.configs/openejb/2.1.4/car
      2010-02-11 09:48:23,404 ERROR [SimpleEncryption] Unable to decrypt
      java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES
      at javax.crypto.Cipher.getInstance(DashoA13*..)
      at org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:74)
      at org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:109)
      ...

      Attachments

        1. setjavaenv.sh
          5 kB
          Haihong Xu
        2. geronimo.sh
          15 kB
          Haihong Xu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kevan Kevan Lee Miller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: