Hi Luk I don't think the application dependency version of commons-text is causing the problem. Issue is causing because of the commons-lang3 version which is used within the struts-core-6.4.0 library since the dependency version is not same as the version in the apache tomee - 8.0.16 web container.
When we try to load the logic behind the library, by default it is pointing to the version available in the container rather than in the struts2 core - 6.4.0 library. As the lib version in the tomee container is lesser version when compared to the one in the struts2 core library. When I placed the commons-lang3 library version manually on the tomee container as same as the commons lang3 version on the struts2 core library code is working as expected without any breakage. I would suggest to align the library version on the struts library as same as the tomee one. As both are from Apache community we need to have in alignment to make it work as expected. Thanks and Regards, Saravanan.S FTMS/NFT APP-DEV Team Mob:- +91 9715644123. [cid:504d8f37-b6b6-46dc-8584-79225a288710] This e-mail may contain confidential information. If you have received this e-mail in error, please notify the sender and then immediately delete it from your system. This email and the contents of an attachment to this e-mail may contain software viruses which could damage your own computer system. Although Nielsen has taken reasonable precautions to minimize this risk, it cannot accept liability for any damage you may sustain as a result of software viruses ________________________________ From: SARAVANAN SIVAGURU <saravanan.sivag...@nielseniq.com.INVALID> Sent: Thursday, April 25, 2024 4:43 PM To: Struts Users Mailing List <user@struts.apache.org> Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Luk I found the issue, the below email helps me to narrow down the issue - https://lists.apache.org/thread/jswvr9ls6kxqncp2b0423tby1orvqgsg The dependency version which we used on the PR branch(feature/WW-5420-text), 6.4.0 and 6.5.0-SNAPSHOT version has commons-lang3 version as 3.14.0. Whereas the latest Apache TomEE 8.x container has the version commons-lang3 - 3.12.0. (Please find the attachment for more details) As the container libs has highest precendence when compared to the application to load, we have a issue and getting the error as below, java.lang.NoClassDefFoundError: org/apache/commons/lang3/Range In order to run the application with Struts 6.4.0 and 6.5.0-SNAPSHOT we should align the dependencies with same as the container library version. If there is any way to instruct the precedence of the library to the application higher than the container please do let me know if now I doubt this will work on the Apache TomEE web server of version 8.x I believe it is best to have the version same as the container one, please review my comments and do let me know your thoughts on the same. Thanks and Regards, Saravanan.S FTMS/NFT APP-DEV Team ________________________________ From: SARAVANAN SIVAGURU <saravanan.sivag...@nielseniq.com> Sent: Thursday, April 25, 2024 12:20 PM To: Struts Users Mailing List <user@struts.apache.org> Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing Hi Luk Thank you, let me check by taking the PR in my local and keep you posted. Thanks and Regards, Saravanan.S ________________________________ From: Lukasz Lenart <lukaszlen...@apache.org> Sent: Thursday, April 25, 2024 11:56 AM To: Struts Users Mailing List <user@struts.apache.org> Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. I upgraded commons-text to ver 1.12.0 https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fstruts%2Fpull%2F924&data=05%7C02%7CSARAVANAN.SIVAGURU%40nielseniq.com%7C1aaf7a56d77745bc537108dc64f0bd53%7C6ac7a1f45fb14153bb4f12d2020a1f7d%7C0%7C0%7C638496232335496749%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=HAoWZZIb2ts2PQyWu90jd6IHh4cGrVLKoSRZHXcR2Tw%3D&reserved=0<https://github.com/apache/struts/pull/924> śr., 24 kwi 2024 o 15:27 SARAVANAN SIVAGURU <saravanan.sivag...@nielseniq.com.invalid> napisał(a): > > Hi Luk > > Even for 6.4 version am facing the issue irrespective of changing the > dependency version or not on common-text. > > Thanks and Regards, > Saravanan.S > ________________________________ > From: SARAVANAN SIVAGURU <saravanan.sivag...@nielseniq.com> > Sent: Tuesday, April 23, 2024 6:45 PM > To: Struts Users Mailing List <user@struts.apache.org> > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | > Testing > > Hi Luk > > Please find the attachment for the 6.5 version dependency. > > Thanks and Regards, > Saravanan.S > ________________________________ > From: SARAVANAN SIVAGURU <saravanan.sivag...@nielseniq.com.INVALID> > Sent: Tuesday, April 23, 2024 2:31 PM > To: Struts Users Mailing List <user@struts.apache.org> > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | > Testing > > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Sure, I will do > > Thanks and Regards, > Saravanan.S > ________________________________ > From: Lukasz Lenart <lukaszlen...@apache.org> > Sent: Tuesday, April 23, 2024 2:29 PM > To: Struts Users Mailing List <user@struts.apache.org> > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | > Testing > > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > wt., 23 kwi 2024 o 10:54 SARAVANAN SIVAGURU > <saravanan.sivag...@nielseniq.com.invalid> napisał(a): > > > Hi Luk > > > > Somehow I was unable to share the report files as a attachment in html > > format. Am attaching the text file, output of the gradle dependencies > > command for the my application. > > > > This is for Struts 6.4.0, but could you use Struts 6.5.0-SNAPSHOT and > re-post the dependencies? > > > Thanks in advance > Lukasz --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org