3 Replies Latest reply on Jun 6, 2017 4:55 PM by James Perkins

    Wildfly won't start..

    Justin Goh Newbie

      Hi,

      I an new to Java EE and was trying to start Wildfly 11 in Eclipse Neon but encountered the below.

      Would appreciate if anyone can advise what went wrong?

      Do I need to link path to the Wildfly folder in environment variables?

       

      Thank you

       

      java.lang.IllegalArgumentException: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE"

          at org.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:116)

          at org.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:335)

          at org.jboss.logmanager.config.LogContextConfigurationImpl.prepare(LogContextConfigurationImpl.java:288)

          at org.jboss.logmanager.config.LogContextConfigurationImpl.commit(LogContextConfigurationImpl.java:297)

          at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:546)

          at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:97)

          at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:514)

          at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:476)

          at java.util.logging.LogManager$3.run(Unknown Source)

          at java.util.logging.LogManager$3.run(Unknown Source)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.util.logging.LogManager.readPrimordialConfiguration(Unknown Source)

          at java.util.logging.LogManager.access$800(Unknown Source)

          at java.util.logging.LogManager$2.run(Unknown Source)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.util.logging.LogManager.ensureLogManagerInitialized(Unknown Source)

          at java.util.logging.LogManager.getLogManager(Unknown Source)

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

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at org.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:114)

          ... 17 more

      Caused by: java.io.FileNotFoundException: C:\Program Files\wildfly\wildfly 11.0.0\standalone\log\boot.log (The system cannot find the path specified)

          at java.io.FileOutputStream.open0(Native Method)

          at java.io.FileOutputStream.open(Unknown Source)

          at java.io.FileOutputStream.<init>(Unknown Source)

          at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:151)

          at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setFile(PeriodicRotatingFileHandler.java:108)

          at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:189)

          at org.jboss.logmanager.handlers.FileHandler.<init>(FileHandler.java:119)

          at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.<init>(PeriodicRotatingFileHandler.java:76)

          ... 22 more

      java.lang.IllegalStateException: WFLYSRV0124: Could not create server data directory: C:\Program Files\wildfly\wildfly 11.0.0\standalone\data

          at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:463)

          at org.jboss.as.server.Main.determineEnvironment(Main.java:339)

          at org.jboss.as.server.Main.main(Main.java:95)

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

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