1 Reply Latest reply on Apr 1, 2011 5:10 PM by Ales Justin

    Ignoring a specific jBoss default lib jar

    Bruno Carneiro Newbie

      Hi folks,

       

       

      I'm using JBoss AS 6 and I'm having some problems with the default jBoss RestEasy jar.

      Trying to fix the problem I removed the default RestEasy jar and replace by my jar, which is on the same version. It worked fine.

      So considering there are another apps in the same container, I would like to ignore the default jBoss RestEasy jar in my app.

      How can I do it? Can I declare what kind of jBoss jars I would like to load for my app?

       

       

      Here is some tests that I did:

       

       

      1) I removed all RestEasy libs from my application. At that moment my app used all RestEasy jar from jBoss. However, I have a lot of injection problems (It couldn't inject @Context).

       

       

      2) I replaced the default RestEasy jar to my RestEasy jar (that is on the same version). Everything worked fine.

       

       

      3) I've also tried to use the jboss-scanning.xml but as I understood it only works for intern app scanning.

       

       

      Thank you.

      Regards.

       

       

      Bruno

        • 1. Ignoring a specific jBoss default lib jar
          Ales Justin Master
          2) I replaced the default RestEasy jar to my RestEasy jar (that is on the same version). Everything worked fine.

          I don't see how the same jar ( == same version) can change things?

           

          3) I've also tried to use the jboss-scanning.xml but as I understood it only works for intern app scanning.

          jboss-scanning.xml limits what we scan wrt resources; e.g.

          * annotations; @EJB, @Stateless, @Entity, ...

          * config files; .hbm.xml, ...

          Why exactly you need it here?

          How can I do it? Can I declare what kind of jBoss jars I would like to load for my app?

          There is plenty forum discussions on this topic, a few just recently.