The downloaded Wildfly 10.1 installer gives startup error like below (But start up gets completed) when starting standalone.sh at command line,


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

Caused by: java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
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

There are lot of google search was resulting to check for folder permission, etc. In my situation the issue turns out to be with Wildfly startup adding server log location which is removed by my custom script during shutdown at $WILDFLY_HOME/standalone/configuration/logging.properties.


handler.FILE.fileName=/opt/wildfly-10.1.0/standalone/log/server.log

IMO, It sounds like a wildfly bug !

 

Leave a Reply

Your email address will not be published.

WP2Social Auto Publish Powered By : XYZScripts.com