my dog learned polymorphism*
The moose likes Struts and the fly likes Upgrading Struts from 1 to 2.0.14 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Upgrading Struts from 1 to 2.0.14" Watch "Upgrading Struts from 1 to 2.0.14" New topic
Author

Upgrading Struts from 1 to 2.0.14

Sanj Sharma
Ranch Hand

Joined: Feb 14, 2004
Posts: 32
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
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Sanj Sharma
Ranch Hand

Joined: Feb 14, 2004
Posts: 32
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upgrading Struts from 1 to 2.0.14
 
Similar Threads
Cannot load a validator resource
attribute is not recognized for labelSeparator
There is no Action mapped for namespace
Unable to initialize Struts ActionServlet
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource