On 27/02/2014 13:58, Johan Compagner wrote:
> i download here:
> 
> http://archive.apache.org/dist/tomcat/tomcat-7/
> 
> .50 and .52
> 
> i look into org.apache.tomcat.util.descriptor.DigesterFactory
> 
> those 2 files are for the piece that is wrong exactly the same for me:
> 
>     private static String idFor(String url) {
>         URL id = ServletContext.class.getResource("resources/" + url);
>         if (id == null) {
>             id = ServletContext.class.getResource("jsp/resources/" + url);
>         }
>         return id.toExternalForm();
>     }
> 
> both have that, but it should be:
> 
>     private static String idFor(String url) {
>         URL id = ServletContext.class.getResource("resources/" + url);
>         if (id == null) {
>             id = JspContext.class.getResource("resources/" + url);
>         }
>         return id.toExternalForm();
>     }

Sorry, I got confused about what changed between which 7.0.x and 8.0.x
versions. There was a lot of rapid changes over a short period of time
as folks reported different issues.

The solution you propose is not acceptable as it causes other problems:
https://issues.apache.org/bugzilla/show_bug.cgi?id=56045

The solution in 7.0.x (and released in 7.0.51) was to place all of the
necessary schema in the Servlet JAR.

> i need to patch this before it works for me (because we are running tomcat
> also in a OSGI enviroment and then
> jsp-api and servlet-api jars are not the same classloader
> 
> They are bundles of there own. So you can't load jsp related xml files
> (from the jsp-api jar) through the ServletContext.class
> the id == null for me

What code path is trying to load JSP XML files from jsp-api.jar? Tomcat
should be loading them all from servlet-api.jar

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to