4 Replies Latest reply on Sep 5, 2012 4:26 AM by qtm

    isolate war - don't inherit anything

    qtm

      Hi,

       

      I've got a war application that I'm deploying on JBoss7. The application has everything it needs in its lib folder. I don't want to inherit anything from jboss7 - https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments - none of those.

      How can I do that?

      I've created a jboss-deployment-structure.xml file in my WEB-INF folder.

      It looks like:

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

          <deployment>

              <exclusions>    

                  <module name="org.jboss.jts" />

                  <module name="org.jboss.xts" />

                  <module name="org.jboss.as.transactions" />

                  <module name="javaee.api" />

              </exclusions>

          </deployment>

      </jboss-deployment-structure>

       

      but it's not working. I'm still getting Caused by: java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager exceptions.

       

      Can anyone help me?

       

      Thank you