We are facing below error:
---------------------------------------------------------------------------------------
[4/4/23 0:38:08:353 EDT] 000000c3 webapp        E 
com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet 
Error]-[com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor]: 
java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
        at java.net.URLClassLoader.findClass(URLClassLoader.java:607)
        at 
com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:273)
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:846)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:825)
        at 
com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:150)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
        at 
com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:67)
        at 
com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:63)
        at 
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:629)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
        at 
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:661)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
        at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:575)
        at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:510)
        at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:315)
        at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:388)
        at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:943)
        at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1119)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4238)
        at 
com.ibm.ws.webcontainer.webapp.WebAppImpl.handleRequest(WebAppImpl.java:2210)
        at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
        at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1033)
        at 
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
        at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:289)
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
        at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
        at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
        at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
-----------------------------------------------------------------------------------------------------------------------

As the above error is dealing with "StrutsPrepareAndExecuteFilter" class and it 
gives ClassNotFoundException, but when we run the application we get the below 
error on UI:

Error 500: javax.servlet.ServletException: Filter [Struts]: 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter was found, 
but is missing another required class.

Which says it was able to find StrutsPrepareAndExecuteFilter class.

We only made one change regarding StrutsPrepareAndExecuteFilter by removing the 
"ng" package from 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.

I am not able to fig. out what is causing the difference in error at the server 
level and UI level.


Thanks & Regards
Rohan Patil.



-----Original Message-----
From: Lukasz Lenart <lukaszlen...@apache.org> 
Sent: 28 March 2023 14:36
To: Struts Users Mailing List <user@struts.apache.org>
Subject: [EXTERNAL] Re: upgrade from struts 2.3.37 to 2.5.30

wt., 28 mar 2023 o 10:23 Rohan Patil7 <rohan.pat...@ibm.com.invalid> napisał(a):
> First, we added the essential JARs, but it was giving the same error, so 
> added all other JAR that are sturts dependent but not required by the project 
> but it gives the same error.
> After that, we made some changes in web.xml and struts.xml which are 
> mentioned in the migration doc of 2.3 to 2.5.
> Is there any other source or document which tells specific 
> configuration changes to need to be done in the web.xml and struts.xml file, 
> I think as we have included all of Jar may be it is a configuration-related 
> issue.

No, that's the only document and it's very hard to guess what's wrong based on 
so little information, could you post the whole stacktrace or increase logging 
to get more information?


Regards
--
Łukasz
+ 48 606 323 122 
+ INVALID URI REMOVED
+ &d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=Ll_FdyInzbB4Wc0Goy3FmVqPQqouvZbKx
+ C2VA2-3Dhw&m=52IxRw0G3opTXWz_sZszMbCyNsRVFsKpky6jBN0pm3AwO_SDe_XuLMAkq
+ T489XfY&s=ATSddqrEuN3HMx-Cn-R2Yek7XyeX6XbNYcac5oH6KIk&e=

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

Reply via email to