This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes Problem using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem using "Cache taglib ver. 2.4" in JSP" Watch "Problem using "Cache taglib ver. 2.4" in JSP" New topic
Author

Problem using "Cache taglib ver. 2.4" in JSP

Mazhar Shaikh
Greenhorn

Joined: Aug 13, 2002
Posts: 2
I was trying to test the "Cache taglib ver. 2.4" taglib but I am getting following Exception.

The "Cache taglib ver. 2.4" is taken from an external site
http://www.servletsuite.com/servlets/cachetag.htm


-->In my JSP, I have included
<%@ taglib uri="/WEB-INF/Cache.tld" prefix="cache"%>

-->In Web.xml, I have added following mapping
<taglib>
<taglib-uri>/WEB-INF/Cache.tld</taglib-uri>
<taglib-location>/WEB-INF/Cache.tld</taglib-location>
</taglib>

-->I have copied the Cache.tld in WEB-INF folder of my web app. and
-->I have copied cachetag.jar in the WEB_INF/LIB folder.

Please guide me
----------------------------------------------------------------------------
[4/30/08 2:44:38:873 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.strVariable: com.cj.cache.strVariable

[4/30/08 2:44:38:876 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.longVariable: com.cj.cache.longVariable

[4/30/08 2:44:38:878 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.longVariable: com.cj.cache.longVariable

[4/30/08 2:44:38:880 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.dateVariable: com.cj.cache.dateVariable

[4/30/08 2:44:38:882 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.strVariableNested: com.cj.cache.strVariableNested

[4/30/08 2:44:38:883 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.strVariable: com.cj.cache.strVariable

[4/30/08 2:44:38:951 PDT] 1abfbe62 WebGroup E SRVE0026E: [Servlet Error]-[/search.jsp(8,0) Unable to load class com.cj.cache.CacheIt]: javax.servlet.ServletException: /search.jsp(8,0) Unable to load class com.cj.cache.CacheIt

at com.netegrity.was511.filter.ServletFilter.doFilter(ServletFilter.java:75)

at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)

at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)

at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)

at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:294)

at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)

at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)

at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)

at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)

at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)

at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)

[4/30/08 2:44:38:984 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: CiscoErrorHandler: init

[4/30/08 2:45:01:973 PDT] 1abfbe62 HttpMethodBas I org.apache.commons.httpclient.HttpMethodBase Redirect requested but followRedirects is disabled

[4/30/08 2:45:27:618 PDT] 38be62 HttpMethodBas I org.apache.commons.httpclient.HttpMethodBase Redirect requested but followRedirects is disabled

---------------------------------------------------------------------------


Terminator
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55

Is this just a typo? The directory must be named "WEB-INF/lib".

Make sure the jar file is not corrupted (e.g. by using the jar tool to list its contents).


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: Problem using "Cache taglib ver. 2.4" in JSP