Re: Issue in migration from struts2.3.35 to struts2.5.22
śr., 28 paź 2020 o 11:55 Peer Mohammad napisał(a): > Please find the web.xml and struts.xml file. I have observed that many > library classes are not available in strut2-tiles-plugin file and xwork some > package in struts-core-2.5.22 compare to struts2.3.35. Not sure what do you mean by that? Which classes are missing? XWork was merged into Struts Core and there is no additional jar anymore. Maybe you are mixing different jars in your app, do you use Maven to control dependencies? Could you list jars from the lib folder? Also did you use a proper DTD in your tiles.xml files as mentioned here https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration#Struts2.3to2.5migration-Tiles http://tiles.apache.org/dtds/tiles-config_3_0.dtd";> > Web.xml > > > http://xmlns.jcp.org/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"; > version="3.1"> > CHEETTA_online > > > > org.apache.struts2.tiles.StrutsTilesListener > > > > > > CSRFTokenFilter > > com.sbc.cheetta.common.framework.filter.GenerateCSRFTokenFilter > > > CSRFTokenFilter > /* > > > CSRFTokenFilter > *.action > > > CSRFTokenFilter > *.do > This is duplication, just /* is enough, remove other patterns > > > CSRFValidationFilter > > com.sbc.cheetta.common.framework.filter.CSRFValidationFilter > > excludedUrls > > > /index.jsp,/Welcome.do,/Logoff.do,/LogonSubmit.do,/networkEditProfileLinker.do,/images/swmainmenubutton.gif,/images/att_logo.gif,/images/mwmainmenubutton.gif,/images/admin.gif,/theme/Master.css,/images/wmainmenubutton.gif,/images/atmainmenubutton.gif,/images/bg_header1024.gif,/images/bg_footer1024.gif,/images/bg_header1024.gif > > > > CSRFValidationFilter > /* > > > > > xFrameOptionsFilter > > com.sbc.cheetta.common.framework.filter.XFrameOptionsFilter > > > xFrameOptionsFilter > *.action > > > xFrameOptionsFilter > *.do > > > struts2 > > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter > > actionPackages > com.sbc.cheetta.actions > > > > struts2 > /* > > > struts2 > *.action > > > struts2 > *.do > Same here, just left /* pattern Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Issue in migration from struts2.3.35 to struts2.5.22
Hi, Please find the web.xml and struts.xml file. I have observed that many library classes are not available in strut2-tiles-plugin file and xwork some package in struts-core-2.5.22 compare to struts2.3.35. I am not accessing jsp file directly. Kindly check and the web.xml and struts.xml and guide me Web.xml http://xmlns.jcp.org/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"; version="3.1"> CHEETTA_online org.apache.struts2.tiles.StrutsTilesListener CSRFTokenFilter com.sbc.cheetta.common.framework.filter.GenerateCSRFTokenFilter CSRFTokenFilter /* CSRFTokenFilter *.action CSRFTokenFilter *.do CSRFValidationFilter com.sbc.cheetta.common.framework.filter.CSRFValidationFilter excludedUrls /index.jsp,/Welcome.do,/Logoff.do,/LogonSubmit.do,/networkEditProfileLinker.do,/images/swmainmenubutton.gif,/images/att_logo.gif,/images/mwmainmenubutton.gif,/images/admin.gif,/theme/Master.css,/images/wmainmenubutton.gif,/images/atmainmenubutton.gif,/images/bg_header1024.gif,/images/bg_footer1024.gif,/images/bg_header1024.gif CSRFValidationFilter /* xFrameOptionsFilter com.sbc.cheetta.common.framework.filter.XFrameOptionsFilter xFrameOptionsFilter *.action xFrameOptionsFilter *.do struts2 org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter actionPackages com.sbc.cheetta.actions struts2 /* struts2 *.action struts2 *.do MetaDataServlet com.sbc.cheetta.util.MetaDataServlet 2 InvalidLogoutServlet com.sbc.cheetta.java.InvalidLogoutServlet InvalidLogoutServlet /InvalidLogoutServlet 480 index.jsp CHEETTADataSource javax.sql.DataSource Container Shareable Struts.xml: http://struts.apache.org/dtds/struts-2.5.dtd";> dojo\..* input,back,cancel,browse dojo\..*,^struts\..* input,back,cancel,browse Logoff.do InvalidLogout.do /Logon.jsp /Logon.jsp /Welcome.jsp /WelcomeAdmin.jsp cheetta.logicError cheetta.logicError cheetta.login RegionDispatch.do cheetta.login cheetta.underdevelopment cheetta.customError cheetta.token