JBoss failed to start referring to old Domain directory

Solution Unverified - Updated -

Issue

  • JBoss EAP fails to start , we are using below command to change the domain location :
./domain.sh -Djboss.domain.base.dir=/jboss/new/domain
  • However, JBoss EAP still referring to old Domain directory and failed to start :
 Caused by: java.io.FileNotFoundException: /jboss/old/domain/servers/server_one/log/server.log (Permission denied)
               at java.io.FileOutputStream.openAppend(Native Method)
               at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
               at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:151)
               at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setFile(PeriodicRotatingFileHandler.java:102)
               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:70)
               ... 25 more

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.