分離したデプロイメントで Log4J を起動できない
Issue
- 分離した
Log4J環境を設定するデプロイメントが、以下のエラーを出力します。どのような問題が発生していますか? 修正するにはどうしたら良いですか?
log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.
log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
log4j:ERROR [BaseClassLoader@2fecdb1b{vfszip:/app/jboss-eap-5.1.2/jboss-as/server/default/deploy//your-deployment.ear/}] whereas object of type
log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [BaseClassLoader@2bc68b6f{vfsfile:/app/jboss-eap-5.1.2/jboss-as/server/default/conf/jboss-service.xml}].
log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].
log4j:WARN No appenders could be found for logger (some.class.that.uses.log4j.ClassName).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
- log4j を
standalone.xmlファイルのロギングサブシステムに関連させるにはどうしたら良いですか?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
