You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Scroll <ch...@gmail.com> on 2023/10/03 15:05:06 UTC

ViewPreparer issue after updating from 6.2.0 to 6.3.0.1

After I updated to struts 6.3.0.1 I am receiving the following exception:

java.lang.ClassCastException: helpers.preparer.BreadCrumbPreparer cannot be
cast to org.apache.tiles.api.preparer.ViewPreparer

If I revert back to struts2-tiles-plugin-6.2.0.jar the program runs without
exceptions.

Note: My BreadCrumbPreparer class implements 'ViewPreparer' from
tiles-api-3.0.8.jar

Re: ViewPreparer issue after updating from 6.2.0 to 6.3.0.1

Posted by Lukasz Lenart <lu...@apache.org>.
wt., 3 paź 2023 o 17:05 Chris Scroll <ch...@gmail.com> napisał(a):
>
> After I updated to struts 6.3.0.1 I am receiving the following exception:
>
> java.lang.ClassCastException: helpers.preparer.BreadCrumbPreparer cannot be
> cast to org.apache.tiles.api.preparer.ViewPreparer
>
> If I revert back to struts2-tiles-plugin-6.2.0.jar the program runs without
> exceptions.
>
> Note: My BreadCrumbPreparer class implements 'ViewPreparer' from
> tiles-api-3.0.8.jar

Could you post the whole stack? As far as I see the ViewPreparer
interface [1] is part of the plugin, maybe we have both JARs on
classpath - tiles-api & struts2-tiles-plugin?

[1] https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/tiles/api/preparer/ViewPreparer.java


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org