1 Reply Latest reply on Oct 9, 2015 1:36 PM by jaysensharma

    WildFly 9 start exception in domain mode

    priya_asthana15

      I was unable to start WildFly-9.0.1.Final version in domain mode.

      C:\Users\asthanpr\wildfly-9.0.1.Final\bin>.\domain.bat

      Calling "C:\Users\asthanpr\wildfly-9.0.1.Final\bin\domain.conf.bat"

      Setting JAVA property to "C:\Program Files\Java\jdk1.7.0_79\\bin\java"

      ===============================================================================

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: "C:\Users\asthanpr\wildfly-9.0.1.Final\"

       

       

        JAVA: "C:\Program Files\Java\jdk1.7.0_79\\bin\java"

       

       

        JAVA_OPTS: "-Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=t

      rue -Djboss.modules.system.pkgs=org.jboss.byteman -server"

       

       

      ===============================================================================

       

       

      09:22:10,379 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final

      Exception in thread "main" java.lang.IllegalArgumentException: WFLYPC0030: Invalid option: Files\Java\jdk1.7.0_79\\bin\java          -mp C:\Users\asthanpr\wildfly-9.0.1.Final\\modules     --     -Dorg.jboss.boot.log.file=C:\Users\asthanpr\wildfly-9.0.1.Final\\domain\log\host-controller.log     -Dlogging.configuration=file:C:\Users\asthanpr\wildfly-9.0.1.Final\\domain\configuration/logging.properties     -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server     --     -default-jvm C:\Program

              at org.jboss.as.process.Main.start(Main.java:177)

              at org.jboss.as.process.Main.main(Main.java:76)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.modules.Module.run(Module.java:308)

              at org.jboss.modules.Main.main(Main.java:487)

      Press any key to continue . . .

       

      Any help will be appreciated

        • 1. Re: WildFly 9 start exception in domain mode
          jaysensharma

          Looks like the JAVA_HOME which you have set contains Space in it's path ( like "Program Files" ) that seems to be causing the issue here.

          Just for testing can you copy and paste the "jdk1.7.0_79" folder to some path which does not contain the space. Like "C:\java\jdk1.7.0_79"  then set the JAVA_HOME to "C:\java\jdk1.7.0_79"   then try starting the WildFly again.    Ideally if a PATH contains space then that whole path should be included inside a Quotation Mark. So can you also check if you have included you JAVA_HOME value inside a quotation mark ?