The taglibs contained in a module are not loaded for an application which uses such module.
For example, when trying to use Tiles in a web application with Jboss 7.0.2, I added
the necessary modules for Tiles to get loaded, but when a tiles page is shown,
the "http://tiles.apache.org/tags-tiles" taglib is not recognized.
In the page, the taglib is declared:
In one of the modules, tiles-jsp-2.2.2.jar is present with the following taglib:
The tiles module is referenced by configuration at the pom.xml:
I know that tiles is referenced by the application 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 the module is included as a dependency?
Attached to this message, you will find the modules and the test
- Unzip the modules and copy them to your JBoss directory.
- Unzip the application
- Copy the webapplication.war file to your standalone/deployments directory
After having added the attached modules to JBoss and deployed the
application, you can see the result at:
At the resulting page, the following message is displayed:
Warning: This page calls for XML namespace
http://tiles.apache.org/tags-tiles declared with prefix tiles but no
taglibrary exists for that namespace.