On 15/03/2012 23:44, Johannes Ernst wrote:
> I've implemented my own org.apache.catalina.loader.WebappLoader. It consults 
> a bunch of JARs held in the file system outside of the WAR.

Would one of the shared/common classloaders in Tomcat not achieve the
same thing - what is unique about the problem that requires a custom
classloader?


p

> One of those outside JARs contains a custom JSP tag.
> 
> When attempting to compile the JSP, Jasper fails to find it. I'm getting this:
> javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to 
> compile class for JSP: 
> 
> An error occurred at line: 13 in the jsp file: /foobar.jsp
> com.example.MyCustomTag cannot be resolved to a type
> My guess is that I somehow need to tell Jasper that it should use my custom 
> WebappLoader when looking for custom tags.
> 
> How would I do that? A few hours worth of poking around in the source code 
> hasn't helped …
> 
> This is Tomcat 6.0.28 but any answer for any version is appreciated.
> 
> Thanks,
> 
> 
> Johannes.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-- 

[key:62590808]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to