1 Reply Latest reply on Mar 15, 2004 1:03 PM by 794117

    sm1 please help.......urgent.....!!

    843836
      hi i m not able to create user-defined tags due to some problems iin the tag library descriptor :
      this is the exception i get :
      Error: 500
      Location: /hello/hello.jsp
      Internal Servlet Error:

      org.apache.jasper.compiler.CompileException: C:\tomcat\webapps\hello\hello.jsp(1,0) Unable to open taglibrary /web-inf/tlds/hello.tld : Parse Error in the tag library descriptor: XML declaration may only begin entities.
      at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:734)
      at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
      at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
      at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
      at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
      at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
      at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java:790)
      at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:731)
      at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
      at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
      at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
      at java.lang.Thread.run(Thread.java:484)

      here is the tag library descriptor :

      <!--Tag library descriptor -->

      <?xml version="1.0" encoding="ISO-8859-1" ?>

      <taglib>
      <tlibversion>1.0</tlibversion>
      <jspversion>1.1</jspversion>
      <shortname>examples</shortname>
      <info>Simple example library</info>

      <tag>
      <name>hello</name>
      <tagclass>tagext.HelloTag</tagclass>
      <bodycontent>JSP</bodycontent>
      <info>Simple example</info>
      </tag>

      </taglib>