i got a .jar file containing custom JSF components and therefore containing a faces-config.xml and .tld file in its META-INF folder. This .jar file works well if i deploy it within the WEB-INF/lib folder of my .war (the .war in turn is part of my .ear). However, if i move the jsfComponents.jar from WEB-INF/lib to .ear/lib, i.e. to the default lib folder of enterprise archives, the .jar is not scanned for the TLD file. Due to that, the namespace defined within the TLD is not regocnized and my custom JSF components do not work any longer.
Question: is there a way to force JBoss / Tomcat to scan .jars within .ear/lib for TLDs?
Java version 1.6.0_16
The structure of my .ear:
META-INF/*.tld, faces-config.xml // these files are not parsed!
FYI: the same .ear works well in Glassfish v.2.1.1, i.e. the TLD (within .ear/lib) is parsed, the namespace is recognized, my JSF components are working.