Win a copy of Head First Android this week in the Android forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

How to migrate portlets from Struts1 to Struts2?

Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 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. org.apache.jetspeed.portlet.UnavailableException: EJPYE0013E: The request processor must be a subclass of the Struts Portlet Framework request processor.

Can someone please help me how should I proceed with portlet migration, and any video or guide can also help.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic