Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upgrading Struts from 1 to 2.0.14

 
Sanj Sharma
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having some issues while upgrading the struts:

I dowloaded the latest 2.0.14 source from mirror and then copied all the .jars from the /lib folder to my application /lib folder. Now when I restart my Jboss, it throws error for deploying my web application with an error:

java.lang.ClassCastException: org.apache.struts.tiles.TilesPlugin cannot be cast to org.apache.struts.action.PlugIn
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:855)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
....




So I am not sure if this error comes because of new jar files that I added to upgrade struts or I did not follow the complete process for upgrading the struts. Any insights???

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts 2 is not compatible with Struts 1; you need to migrate your code. See http://struts.apache.org/2.x/docs/migration-guide.html for details, particularly in the "Struts 1 to Struts 2" section.
 
Sanj Sharma
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Struts 2 is not compatible with Struts 1; you need to migrate your code. See http://struts.apache.org/2.x/docs/migration-guide.html for details, particularly in the "Struts 1 to Struts 2" section.


Thanks Ulf, Seems like I need to re-write my whole application to upgrade to version 2.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic