v 2.0.2 doesn't work in Tomcat 4?!

"James Rigg" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <002501c415d7$c5903210$0000fea9@kouros>
I have been using an old version of oscache and I thought I'd upgrade to the
latest version... but I'm getting very annoyed that I cannot get it to work.
Given I can't find any other posts in this mailing list about install
problems, I'm guessing I'm doing something stupid - embarrassing, but at
least it means it should work...

I have followed the installation instructions but when I view a JSP using
oscache 2.0.2 I get a Tomcat error.  On my test box Tomcat (v4.0.1) seems to
complain it can't find the CacheTag class (err, it's in lib/oscache.jar?!).
Meanwhile the live box (v4.1.12) gives a stranger error:

2004-03-29 16:37:52 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException:
com.opensymphony.module.oscache.web.tag.CacheTag
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)

[snip]

----- Root Cause -----
javax.servlet.ServletException:
com.opensymphony.module.oscache.web.tag.CacheTag
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
        at org.apache.jsp.error_jsp._jspService(error_jsp.java:748)



My web.xml contains simply:

	<taglib>
		<taglib-uri>/oscache</taglib-uri>
		<taglib-location>/WEB-INF/classes/oscache.tld</taglib-location>
	</taglib>

And the JSP:

<%@ taglib uri="/oscache" prefix="cache" %>
[snip]
<cache:cache key="mini-nav" scope="session">
[snip]
</cache:cache>
[snip]

Can anyone point me in the right direction here?  Is this a problem with the
versions of Tomcat I am using?

Thanks,
James.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.