4 Replies Latest reply on Dec 15, 2017 2:52 AM by Dilip Raj Bishwokarma

    Exclude javax.jms from JBOSS EAP 7

    Dilip Raj Bishwokarma Newbie

      I'm trying to deploy WAR that already has javax.jms library included. And apparently, Jboss EAP 7 also loads it's javax.jms library. I am particularly interested in ConnectionFactory class which I can see two instances loaded during runtime

       

      vfs:/content/nipe_simulator_dev.war/WEB-INF/lib/jms-1.1.jar/javax/jms/ConnectionFactory.class and

      com.dbs.nipe.engine.sender.MQSender:50 - :243-, rxnTransRef=null, jar:file:/Users/dilipraj/ipe/app/jboss/modules/system/layers/base/javax/jms/api/main/jboss-jms-api_2.0_spec-1.0.0.Final-redhat-1.jar!/javax/jms/ConnectionFactory.class

       

      I'm getting "Cannot cast to ConnectionFactory" exception.

       

      So, how can exclude implicitly included jms library from jboss so that my application uses the library (jar) included with the WAR itself?