Translated message

A translation of this page exists in English.

分離したデプロイメントで Log4J を起動できない

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content