Hi,
My Requirement is to migrate my web-application from Struts1 to
struts 2
The web-app runs on websphere, and it has several portlets which are managed by websphere Portal administration.
My application is an EAR file having some different porlets (war files). and some war files having the Back end code.
My task is to migrate complete EAR to struts2.
I thought lets first migrate the front end part of it ie. portlets.
I read various websites about how to migrate struts1 to struts2. I did the required changes in web.xml and converted struts-config.xml( struts1 ) to struts.xml (struts2)
There is this one line in web.xml which is causing trouble
The below class comes in PortalStruts.jar (present in WEB-INF/lib folder of the portlet war file)
and below is struts.xml
These two classes WpsRequestProcessor and WpsStrutsPortlet belong to websphere portlet framework I believe. And I dont know if I need to make changes to these classes, and how to go about it.
Meanwhile I tried to deploy the Portlet war with the above changes, but I got the following error
[12/15/20 6:42:01:169 PST] 0000013c PortletContai E com.ibm.wps.pe.pc.legacy.PortletContainerImpl endPage EJPPG1126E: An error occurred while method endPage was processed by portlet Control@-1370172183 (Struts2 Project21 portlet, [ObjectIDImpl 'Z7_7G56HG01N0J810QD6LFOHI10K2', NAVIGATION_NODE, VP: 0, [Domain: rel], DB: 0000-0716132108174C14806EA63E1C650054], [ObjectIDImpl 'Z6_7G56HG01N0D900QLGPR8HA3043', CONTENT_NODE, VP: 0, [Domain: rel], DB: 0000-071613210817B40480AE306F14D50064], 1100.
com.ibm.wps.pe.pc.legacy.LegacyPortletExceptionWrapper: org.apache.jetspeed.portlet.UnavailableException: EJPYE0013E: The request processor must be a subclass of the Struts Portlet Framework request processor.
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1313)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.endPage(PortletContainerImpl.java:643)
Can someone please help me how should I proceed with portlet migration, and any video or guide can also help.