• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to migrate portlets from Struts1 to Struts2?

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic