• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upgrading Struts from 1 to 2.0.14

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic