JBossAS 6.1.0.Final启动报Unable to read the logging configuration from 'file:logging.properties'
2013-10-14 21:04
701 查看
最近在做jBoss服务器集群配置Apache和jBoss完成后启动Jboss报错,信息如下:
Unable to read the logging configuration from 'file:logging.properties' (java.io.FileNotFoundException: logging.properties) 系统找不到指定的文件
解决方案:
Windows下:
修改jBoss安装目录bin路径下的run.bat文件,找到
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%PROGNAME%\logging.properties %JAVA_OPTS%
将其修改为:
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:"%JBOSS_HOME%\bin\logging.properties" %JAVA_OPTS%
当然要配置JBOSS_HOME的环境变量,否则的话只能写全路径,注意添加了双引号。
Linux下:
找到run.sh文件中行:
JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}”
修改为:
JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file$JBOSS_HOME/bin/logging.properties}”
同理也需要配置环境变量,否则写全路径。
Unable to read the logging configuration from 'file:logging.properties' (java.io.FileNotFoundException: logging.properties) 系统找不到指定的文件
解决方案:
Windows下:
修改jBoss安装目录bin路径下的run.bat文件,找到
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%PROGNAME%\logging.properties %JAVA_OPTS%
将其修改为:
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:"%JBOSS_HOME%\bin\logging.properties" %JAVA_OPTS%
当然要配置JBOSS_HOME的环境变量,否则的话只能写全路径,注意添加了双引号。
Linux下:
找到run.sh文件中行:
JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}” - See more at: http://www.developerscrappad.com/759/java/java-ee/jboss/quick-fix-how-to-solve-unable-to-read-the-logging-configuration-on-netbeans7-with-jboss6/#sthash.lhc6M2kU.dpuf JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file:${DIRNAME}/logging.properties}”
修改为:
JAVA_OPTS=”${JAVA_OPTS:+$JAVA_OPTS -Dlogging.configuration=file$JBOSS_HOME/bin/logging.properties}”
同理也需要配置环境变量,否则写全路径。
相关文章推荐
- cloudera-scm-agent 启动失败 'Unable to create the pidfile'
- /WEB-INF/views/login.jsp(2,61) Unable to read TLD "META-INF/c.tld" from JAR file "file:/D:/Program%
- Unable to read TLD "META-INF/c.tld" from JAR file "file: 解决办法
- tomcat Unable to read TLD "META-INF/c.tld" from JAR file
- Unable to read TLD "META-INF/c.tld" from JAR file 解决方法
- Unable to read TLD "META-INF/c.tld" from JAR file standard.rar
- 《Springboot极简教程》问题解决:Logging system failed to initialize using configuration from 'logback.xml '
- org.apache.jasper.JasperException: /login.jsp(2,0) Unable to read TLD "META-INF/c.tld" from JAR file 、、、、、、
- 执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
- 解决Unable to read TLD "META-INF/c.tld" from JAR file
- 错误整理:Unable to add module to the current project as it is not of packaging type 'pom'
- Unable to read TLD "META-INF/tlds/struts-bean.tld" from JAR file
- Unable to read TLD "META-INF/c.tld" from JAR file 解决办法
- Android启动模拟器,遇到Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- github安装问题解决"Unable to retrieve your user info from the server"
- MAVEN Error:HV000183: Unable to load 'javax.el.ExpressionFactory'. Check that you have the EL depend
- Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extensio
- Error occurred in deployment step 'Add Solution': Failed to extract the cab file in the solution
- Unable to build: the file dx.jar was not loaded from the SDK folder
- 非正常结束weblogic进程导致weblogic无法启动(锁)<BEA-141281> <unable to get file lock, will retry …>