1 Reply Latest reply on Aug 3, 2005 9:28 AM by raydecampo

    Implicit TLD mappings from jar files

    raydecampo

      Hello,

      I am trying to get JBoss to recognize a TLD file from a jar file as described in section JSP.7.3.4 of the JSP 2.0 specification. According to the specification, the container will search for TLD files inside of the /META-INF (or subdirectories) of any jar file in the /WEB-INF/lib directory.

      Here you can see how I have packaged the jar file:

      [09:02 C:/jboss/sop/server/default/deploy/sop.ear/sop.war/WEB-INF/lib] jar tvf efc.jar
       0 Thu Jul 21 07:08:02 EDT 2005 META-INF/
       253 Thu Jul 21 07:08:00 EDT 2005 META-INF/MANIFEST.MF
       7257 Thu Jul 21 03:08:16 EDT 2005 META-INF/efc.tld
      


      When the efc.tld file is placed directly in the /WEB-INF directory everything works as expected. When I remove the /WEB-INF/efc.tld file and rely on the file inside the jar, I get the following error:

      08:47:15,360 ERROR [Engine] ApplicationDispatcher[/sop] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: File "/tags/efc" not found
      


      I am using JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445).

      Thanks for any assistance,
      Ray