9 Replies Latest reply on Aug 21, 2012 4:26 AM by Martin Thorpe

    Taglib in module not loaded for JBoss 7

    Juan Manuel Medina Apodaca Newbie



      I'm trying to use Tiles in a web application with Jboss 7.0.1. I added

      the necessary modules for Tiles to get loaded, but when I try to show

      a page, the "http://tiles.apache.org/tags-tiles" taglib is not recognized.


      At web.xml, I added the listener and the servlet, which work fine:






          <servlet-name>Tiles Dispatch Servlet</servlet-name>




          <servlet-name>Tiles Dispatch Servlet</servlet-name>




      In my page, I declared the taglib:


         <html xmlns="http://www.w3.org/1999/xhtml"






      Finally in one of my modules, I have tiles-jsp-2.2.2.jar with the taglib:






      The tiles module is referenced by the application. I added the following

      configuration at the pom.xml:















      I know that tiles is referenced because, if I delete the configuration

      section above, the application doesn't deploy since some referenced

      libraries are not present.


      Shouldn't the taglib be automatically loaded as I include the

      module as a dependency?


      Attached to this message, you will find the modules and the test

      application. After having added the modules and deployed the

      application, you can see the result at:




      The result is rather explicit:


      Warning: This page calls for XML namespace

      http://tiles.apache.org/tags-tiles declared with prefix tiles but no

      taglibrary exists for that namespace.


      Thank you for your help.