[ 
https://issues.apache.org/jira/browse/WW-5079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17120314#comment-17120314
 ] 

James Chaplin commented on WW-5079:
-----------------------------------

Hello [~qman23].

Moving from Struts 2.3.35 to 2.5.22 in single release means multiple jars 
changing, and the potential for different behaviour (compared to an upgrade 
from 2.5.18 to 2.5.22, for instance).  Since the error shows up after running 
for a while, if you have any way of driving some load against your testing 
environment instance (e.g. JMeter), you might want to do that to see if the 
error can be made to occur in the testing environment.

The general symptom ("Could not find required filter class", presumably along 
with a "java.lang.ClassNotFoundException") could mean an issue with the 
application/server classloaders appearing after running for a while.  You might 
want to take a look at the classloader configuration for your application in 
WAS, as well as any settings that might involve "dynamic reloading" of the 
application.

With that in mind, some suggestions of things you could try if the error 
persists:

+WebSphere Application Server+:
 * Try configuring the application deployment in WAS with "Classes loaded with 
local class loader first (parent last)".
 * Try disabling hot deployment/dynamic reloading of the application, if it is 
enabled in WAS.

+Struts+:
 * Make sure you have devMode and dynamic reload options set as disabled 
(false) in struts.xml for the build to your production system:
 <constant name="struts.devMode" value="false" />
 <constant name="struts.i18n.reload" value="false" />
 <constant name="struts.configuration.xml.reload" value="false" />

Please let us know if you have any success with downgrading to 
javassist-3.25.0-GA.jar, trying some of the above configuration changes, or 
something different you try on your own.

> Could not find StrutsPrepareAndExecuteFilter sometime in WAS server
> -------------------------------------------------------------------
>
>                 Key: WW-5079
>                 URL: https://issues.apache.org/jira/browse/WW-5079
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.22
>         Environment: Please see our environment below:
> Application server: Websphere application server 8.5
> JDK version: 7.0
>            Reporter: Lee
>            Priority: Major
>             Fix For: 2.6
>
>         Attachments: dependency.png, err_log.txt
>
>
> We upgrade the Struts version to 2.5.22 recently.
> The new version working well in our testing enviroment. But after moved to 
> production. After some time it's been used. The system throw out exception 
> for 'Could not find required filter class - 
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.class'. 
> I used the minmal struts 2.5.22 jars download from Struts website, because of 
> our security scan application notify that javassist-3.20.0-GA.jar is out of 
> date, so i replace it to 3.26.0-GA. Could this issue related to this change? 
> Thanks a lot.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to