4 Replies Latest reply on Apr 25, 2017 1:10 PM by ctomc

    Jboss AS6 to Wildfly 8 Upgrade

    ashwin0202

      Hello everyone,

       

      I am trying to upgrade from Jboss AS 6 to Wildfly 8 in the same linux box.

      Current Jboss AS 6 uses jdk 1.6. and I want to upgrade from jdk 1.6 to 1.8 and Jboss AS 6 to Wildfly 8 without disturbing the current running JBoss AS 6.

       

      I downloaded jdk1.8 and Wildfly 8. When I try to run add-user.sh, it shows java version error below as:

       

      Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jboss/as/domain/management/security/adduser/AddUser : Unsupported major.minor version 51.0

       

      My question is, how to use 2 different versions of jdks' and Jboss in same machine.

      What are the files do I need to update so that Wildfly 8 picks up Jdk1.8 ? (Using standalone mode)

       

      Thanks in advance.

        • 1. Re: Jboss AS6 to Wildfly 8 Upgrade
          ctomc

          just set JAVA_HOME enviroment variable to proper value before starting standalone.sh

          or in standalone.conf if you are using service.

           

          so something like

          export JAVA_HOME=/path/to/jdk/

          /path/to/wildfly/bin/standalone.sh <params>

           

          should do it

           

          same goes for all other scripts.

          • 2. Re: Jboss AS6 to Wildfly 8 Upgrade
            claudio4j

            Hi Ashwin, as you wants to upgrade wildfly, I recommend to use latest wildfly 10.1 (Downloads · WildFly )

             

            You can use different JDK version, the bin directory contains domain.sh and standalone.sh, just modify them and add the JAVA_HOME=/jdk_path.

            • 3. Re: Jboss AS6 to Wildfly 8 Upgrade
              ashwin0202

              Thanks for the response.

              If I make any changes to JAVA_HOME environment, it may impact current running Jboss AS 6.

              So, I want to know what are the steps/files do I need to modify so that only Wildfly 8 picks jdk 1.8 ?

              • 4. Re: Jboss AS6 to Wildfly 8 Upgrade
                ctomc

                Ashwin K wrote:

                So, I want to know what are the steps/files do I need to modify so that only Wildfly 8 picks jdk 1.8 ?

                As I told you, set JAVA_HOME in your service configuration or in standalone.conf (for standalone.sh script)