2 Replies Latest reply on Sep 27, 2012 7:07 PM by Nico Nico

    Avoid descriptors loading in war files with jboss-deployment-structure.xml (AS 7.1.1)

    Nico Nico Newbie

      I'm deploying a war to a Jboss 7.1.1 instance, but I have one problem. One of the jars inside the lib folder of ther war file has a persistence.xml, that is loading when war starts, but I need it not to load!






      ----externaljar2.jar (inside has a persistence.xml, I need that xml not to load)


      Is there any chance of avoiding persistence.xml loading with jboss-deployment-structure.xml? I tried several ways but none work (with resource-root/filter or declaring modules), so I don't know if i can't do that with jboss-deployment-structure.xml, or it's so easy that i'm not getting it!


      Or maybe I need to take the jar out, remove the xml from it and repackage the war file?


      Thanks in advance!