2 Replies Latest reply on Sep 20, 2007 8:39 PM by lewis cheung

    Error: Start JBoss -> log4j:ERROR setFile(null,false) call f

    Anuradha Uduwage Newbie

      I am trying setup a jboss in Linux box, I install j2sdk, and jboss on root and then moved /usr/local/j2sdk, /usr/local/jboss then I set the paths for JAVA_HOME, and JBOSS_HOME
      such as /usr/local/j2sdk1.4.2_15/bin:JBOSS_HOME=/usr/local/jboss/jboss-4.2.0.GA/bin

      I didn't set the JAVA_OPT and also I haven't installed ANT but I thought I dont have to do those two things just to fireup the JBOSS. But I am getting bellow mentioned error...

      Can someone help..?

      [administrator@linuxtest bin]$ sh run.sh
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /usr/local/jboss/jboss-4.2.0.GA

      JAVA: java

      JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

      CLASSPATH: /usr/local/jboss/jboss-4.2.0.GA/bin/run.jar

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

      log4j:ERROR setFile(null,false) call failed.
      java.io.FileNotFoundException: /usr/local/jboss/jboss-4.2.0.GA/server/default/log/boot.log (Permission denied)
      at gnu.java.nio.channels.FileChannelImpl.open (libgcj.so.7)
      at gnu.java.nio.channels.FileChannelImpl. (libgcj.so.7)
      at java.io.FileOutputStream. (libgcj.so.7)
      at java.io.FileOutputStream. (libgcj.so.7)
      at org.apache.log4j.FileAppender.setFile (FileAppender.java:289)
      at org.apache.log4j.FileAppender.activateOptions (FileAppender.java:168)
      at org.apache.log4j.config.PropertySetter.activate (PropertySetter.java:258)
      at org.apache.log4j.config.PropertySetter.setProperties (PropertySetter.java:133)