Good day, Hmm...an exploded ear still seems to cause problems. If I have the following jboss-app.xml in the ear, nothing happens (it does not read the log4j.xml)
| <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd"> | <jboss-app> | <class-loading java2ClassLoadingCompliance="false"> | <loader-repository> | trade6:loader=trade6.ear | <loader-repository-config>java2ParentDelegation=false</loader-repository-config> | </loader-repository> | </class-loading> | </jboss-app> | but when I remove the <class-loading> element from that file, I get the following (well known) exception: | Caused by: java.lang.ClassCastException | at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) | at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:644) | at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616) | at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602) | at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460) | at org.apache.log4j.LogManager.<clinit>(LogManager.java:113) | ... 133 more | Has anyone been able to get per-ear log4j configuration working with only EJBs deployed in the ear (no war files)? Thanks, Sean View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868244#3868244 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868244 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
