0 Replies Latest reply on May 31, 2003 2:18 PM by tek1

    Java2ClassLoadingCompliance=false -> ClassCastException

    tek1 Newbie

      Hello all!

      I'm using JBoss 3.2.1 jetty and in JBOSS_HOME/server/default/deploy/jbossweb-jetty.sar/META-INF/jboss-service.xml, when I changed the setting for Java2ClassLoadingCompliance to "false":


      and restarted JBoss, the following ClassCastException was encountered:

      13:57:10,360 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported e
      rror follows.
      13:57:10,360 ERROR [STDERR] java.lang.ClassCastException
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseApp
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppe
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppe
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChi
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoo
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DO
      13:57:10,370 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfig
      (it goes on and on)


      Basically, I'm trying to get my .war to check the .jars in its own .war file before checking the all the .jars loaded by the classloader.

      I've deployed two .ear files (not related to each other), one containing pure EJB stuff and the other just a .war file (deployed it as an .ear because I needed to change the name its context root). The two .ear files do contain some similar .jar files. Before I deployed the EJB .ear file, the war .ear file worked fine. However, after deploying the EJB .ear file, which contains some of the same .jars as the war .ear file, the war .ear is not deploying correctly. It appears as though the war .ear is trying to read information from the .jars in the EJB .ear for some reason. It seemed that changing the class loading attribute for Jetty:


      would solve this problem. Unfortunately, that's when the ClassCastException was encountered.

      Any advice would be greatly appreciated.

      Thank you.