[rules-users] Can't Deploy drools-server.war to JBoss 5.1.0.GA - ClassCastException

rtmacphail rtmacphail at gov.pe.ca
Tue Feb 15 11:17:52 EST 2011


When attempting to deploy version 5.1 of the drools execution server
(drools-server.war) to JBoss AS 5.1.0.GA I receive the following
ClassCastException:

Caused by: java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
javax.xml.parsers.DocumentBuilderFactory


I tried removing the xml-apis-2.0.2.jar from the lib directory of the
drools-server.war, but that resulted in xml parsing exceptions for the
spring and camel configuration files.

I tried adding a JBOSS-WEB.xml with the following class loader
configuration:

        <class-loading java2ClassLoadingCompliance="false">
                  <loader-repository>
                         xml-apis:archive=drools-server.war
                        
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                  </loader-repository>
           </class-loading>

but that had no effect.

The Drools Integration documentation says the following in regards to
deploying the execution server:

"Deploy on JBoss AS 4.x / Tomcat 6.x works out-of-the-box, instead some
external dependencies must be added and the configuration must be changed to
be deployed in JBoss AS 5"

Does anyone know what these external dependencies and configuration changes
are for JBoss AS 5?

By the way, I have been able to successfully deploy and test the server on
Tomcat 6.0.29.

Thanks in advance for any help; I've been spinning my wheels on this one. 
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-t-Deploy-drools-server-war-to-JBoss-5-1-0-GA-ClassCastException-tp2502412p2502412.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list