1 Reply Latest reply on Jun 26, 2011 9:11 AM by Joshua Davis

    web-fragment.xml in weld-servlet.jar?

    Cay Horstmann Newbie
      I just tried running Weld 1.1 with Tomcat 7 and JSF 2. It did not work out of the box--I found that I needed the following magic incantation:


      Wasn't that the kind of grief that web-fragment.xml was supposed to avoid? Would it be reasonable to add that to weld-servlet.jar in the future?


        • 1. Re: web-fragment.xml in weld-servlet.jar?
          Joshua Davis Expert

          Let me take a stab at answering this...

          This is something that Servlet 3.x is responsible for (somebody correct me if I'm wrong).   The web-fragment.xml resources may or may not be visible to the Servlet engine, depending on the container and the packaging of the application.   For example, I found that if I packaged my application as an EAR and deployed in JBoss AS 6.0.0.Final, the Servlet engine didn't pick up the web-fragment.xml from some of the Seam modules (weld itself was fine).

          What packaging are you using?   What container are you deploying to?