tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kmk kumar" <kumar_...@hotmail.com>
Subject pager taglibrary configuration problem
Date Mon, 14 Jan 2002 17:58:56 GMT

Hi
I am trying the pager taglib in jsptags.com.
I followed all the installation instruction where it installed in
/examples of tomcat. It worked fine.
I tried the same thing under a different directory /sample and it will
complain
unable to locate the taglib. I have added sample in the <Context> also.
What am i missing here.

Error I got:
org.apache.jasper.compiler.CompileException:
C:\jakarta-tomcat-3.2.3\webapps\sample\pager-demo.jsp(1,0) Unable to open
taglibrary http://jsptags.com/tags/navigation/pager : Could not locate TLD
http://jsptags.com/tags/navigation/pager
	at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713)
	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.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
	at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

In Server.xml I have this
<Context path="/sample"
	                 docBase="webapps/sample"
	                 crossContext="false"
	                 debug="0"
	                 reloadable="true" >
        </Context>


Installation instructions I followed. ( I extracted the pager-taglib.jar
under classes)
====================================
Choose the context in which to install. I'll use the "/examples" context
created in the default Tomcat configuration for the following instructions.

Edit the tomcat/webapps/examples/WEB-INF/web.xml file and add the following
lines inside the body of the <web-app>...</web-app> tags.

<taglib>
  <taglib-uri>
    http://jsptags.com/tags/navigation/pager
  </taglib-uri>
  <taglib-location>
    /WEB-INF/jsp/pager-taglib.tld
  </taglib-location>
</taglib>

Copy the file pager-taglib.tld to the tomcat/webapps/examples/WEB-INF/jsp
directory.

Copy pager-taglib.jar to the tomcat/webapps/examples/WEB-INF/lib directory.
You may need to create a tomcat/webapps/examples/WEB-INF/lib directory if it
does not already exist.

Please Note: The 3.1 Beta version of Tomcat does not support tag libraries
in jar files. The following steps will install for Tomcat 3.1 Beta.

Copy pager-taglib.jar to the tomcat/webapps/examples/WEB-INF/classes
directory.

Change current working directory to the
tomcat/webapps/examples/WEB-INF/classes directory.

Extract the contents of the pager-taglib.jar file with the command:
    jar xvf pager-taglib.jar

There will be a META-INF directory created during the extraction, this can
be removed.

The pager-taglib.jar file can now be removed from the
tomcat/webapps/examples/WEB-INF/classes directory.

Copy the files pager-demo.jsp and jsptags.gif to the tomcat/webapps/examples
directory.

Shutdown and restart tomcat.

Check out http://<yourserver>/examples/pager-demo.jsp




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message