0 Replies Latest reply on Feb 1, 2010 9:45 AM by ben222

    Scan .ear/lib for jars with TLDs?



      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?


      My env:

      • JBoss 5.1.0.GA
      • Java version 1.6.0_16


      The structure of my .ear:


      • META-INF/application.xml
      • .war
        • WEB-INF/web.xml, faces-config.xml
      • ejb.jar
      • lib
        • jsfComponents.jar
          • 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.


      FYI: similar posts, but unsolved: