1 Reply Latest reply on May 23, 2005 4:57 AM by Kai Baufeldt

    How to deploy custom tld´s for JSF applications

    Kai Baufeldt Newbie

      I try to build a JSF/JBoss4.0.1 application using Eclipse_IDE 1.4. I can deploy a JSP (JSF) file bundled in an .ear or .war file and run it in my browser.

      This works until I try to use custom JSF components, declared in

      WEB-INF/lib/jacronym.tld

      If I don´t add jacronym.tld to my war file (prefix: WEB-INF/lib) I get an error:


      org.apache.jasper.JasperException: File "/WEB-INF/lib/jacronym.tld" not found
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
      org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
      org.apache.jasper.compiler.Parser.parse(Parser.java:126)
      . . . and much more


      When I add jacronym.tld to my war file (prefix: WEB-INF/lib) I get another error:

      org.apache.jasper.JasperException: Unable to compile class for JSP

      Generated servlet error:
      error: error reading C:\Programme\Tools\Prg\JBoss401\jboss-4.0.1\server\default\tmp\deploy\tmp28019JAcroWeb-exp.war\WEB-INF\lib\jacronym.tld; java.util.zip.ZipException: error in opening zip file

      Generated servlet error:
      Note: C:\Programme\Tools\Prg\JBoss401\jboss-4.0.1\server\default\work\jboss.web\localhost\JAcroWeb\org\apache\jsp\jacronym_jsp.java uses unchecked or unsafe operations.

      Generated servlet error:
      Note: Recompile with -Xlint:unchecked for details.
      1 error

      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
      org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
      . . . and much more

      So, if I don´t give him the tld (look at first error-list), he says File "/WEB-INF/lib/jacronym.tld" not found, if I put it to the war file he is not pleased too (error in opening zip file --> which zip file?). So what can I do to make him happy? After reading a lot stuff searching in this forum, google & co., every hint is welcome!

      p.s. he/him ist the Tomcat instance embedded in JBoss 4.0.1