On 03/03/2014 08:06, Lukasz Lenart wrote:
> Hi,
> 
> We just were informed about bug in Apache Struts [1] but it looks like
> a bug in Tomcat 8. The PackageBasedActionConfigBuilder class uses
> class loader to fetch all the URLs where application's classes are
> stored, but right now the resulting enumeration contains also null
> element. The same code works with no problems on Tomcat 7.
> 
> If I add if(url != null) (see [2]) everything works as expected (but I
> must apply this ugly fix in few other places as well).

Including null in that enumeration doesn't look right but I do wonder
(without having looked at the code) how it got there. I'll take a look.

Mark


> 
> [1] https://issues.apache.org/jira/browse/WW-4294
> [2] 
> https://github.com/apache/struts/blob/master/plugins/convention/src/main/java/org/apache/struts2/convention/PackageBasedActionConfigBuilder.java#L406
> 
> 
> Regards
> 


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

Reply via email to