> I have been having some problems with packaged tag libraries and have seen
> other mentions of this problem on the tomcat-user list.  Basically the
> problem is that when a taglib is packaged as specified in the JSP 1.2 spec
> the following error is returned when trying to use a tag in that library:
> org.apache.jasper.JasperException: File "/util" not found
> where "/util" is the uri specified in the .tld file.  Anyway the full
> details are in an email posted to the user list.
>
> So the root of the problem appears to be that the TldLocationsCache does
not
> correctly process .jar files found in the WEB-INF/lib directory.  When
> inside the processJars() method the call to
> ctxt.getResource("/WEB-INF/lib");
> returns a URL of - jndi:/orangefood/of/WEB-INF/lib
> The code only process the returned URL if the protocol is "file".  So I am
> not sure if the TldLocationsCache should be more robust and handle a
> protocol of "jndi" or if the servlet should return a "file" URL.
>
> In any case this is causing some problems for a few people.
>
> I'd be happy to do any additional investigation if necessary.

Yes indeed. It appears that piece of code should be rewritten using the new
getResourcePaths call to replace the direct filesystem access.

Remy

Reply via email to