6 Replies Latest reply on Mar 24, 2014 7:23 PM by sfcoy

    eap-6.1 with Java 8 seems DOA

    chrisbitmead

      I perhaps stupidly installed java 8 on my Mac. Now jboss-eap-6.1 won't start. The last message I get in the log is...

       

      22:20:38,714 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -D[Standalone] -XX:+UseCompressedOops -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/MoreApplications/jboss-eap-6.1/standalone/log/server.log -Dlogging.configuration=file:/MoreApplications/jboss-eap-6.1/standalone/configuration/logging.properties

       

      then it hangs.

       

      Or in other words, basically nothing at all happens. It doesn't listen on socket 80 any more. The hot deploy does nothing. Just a big zero.

       

      I tried setting JAVA_HOME to java 7 to see if that would make it work again, but alas, no change. It then calls Java 7 instead of 8, but doesn't get anywhere.

       

      I did this all on another Mac, and exactly the same destruction occurred, JBoss stops working.

        • 1. Re: eap-6.1 with Java 8 seems DOA
          ctomc

          Looks like you didn't set JAVA_HOME properly to JDK7.

           

          when you start the server you get java being used printed out, make sure that that java that you see there is JDK7.

          • 2. Re: eap-6.1 with Java 8 seems DOA
            chrisbitmead

            I definitely set JAVA_HOME correctly to jdk7 and it was printed out before hanging again.

             

            Strangely, I installed eap6.2 and it did start correctly, java-8 and all. Then I installed an Oracle and Derby driver, and back to hanging. Then I deleted, installed 6.2 again the same, then installed oracle and derby again, and it works. Doesn't make sense all, something seems flakey about Java8 and JBoss on Mac, but I don't know what.

            • 3. Re: eap-6.1 with Java 8 seems DOA
              ctomc

              Hang on boot you are seeing in EAP 6.1 is a known issue that prevents running it on JDK8.

              6.2 has that problem resolved and it boots on JDK8 correctly.

               

              I would say that you have something messed up with your JDK installation whatever it is.

              It is still using JDK8 even when you think you set it to JDK7.

              • 4. Re: Re: eap-6.1 with Java 8 seems DOA
                sfcoy

                The correct way to set JAVA_HOME on a Mac is:

                export JAVA_HOME=`/usr/libexec/java_home -v1.7`
                

                 

                Is that how you are doing it?

                • 5. Re: Re: eap-6.1 with Java 8 seems DOA
                  chrisbitmead

                  That's how I'm doing it, but come to think of it I'm sudo-ing the script so it can bind to port 80, and it isn't getting passed through.

                  • 6. Re: Re: Re: eap-6.1 with Java 8 seems DOA
                    sfcoy

                    Your Mac has Apache httpd on it. It's pretty easy to set up mod_proxy and thereby avoid having to run JBossAS/WildFly etc as a privileged user.

                     

                    Just add /private/etc/apache2/other/jbossas.conf

                    ProxyPass /external-context/ http://localhost:8080/internal-context/
                    ProxyPassReverse /external-context/ http://localhost:8080/internal-context/