wood burning stoves 2.0*
The moose likes Struts and the fly likes struts.action.PlugIn Class cast issue in Struts on JBoss server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.action.PlugIn Class cast issue in Struts on JBoss server" Watch "struts.action.PlugIn Class cast issue in Struts on JBoss server" New topic
Author

struts.action.PlugIn Class cast issue in Struts on JBoss server

Merwin Linus Pinto
Greenhorn

Joined: May 04, 2011
Posts: 1
I wrote a custom plugin for my application and pluged it into struts config xml. when i deploy the ear on Jboss i get a class cast exception.
Every thing seems fine. i have created my plugin as public class MyAppPlugin implements PlugIn { ...}
yet i dont understand why it says cannot be cast to org.apache.struts.action.PlugIn . I am working on JBoss 4.2.
Could that be an issue? please help

error:
com.util.MyAppPlugin cannot be cast to org.apache.struts.action.PlugIn
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:846)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts.action.PlugIn Class cast issue in Struts on JBoss server
 
Similar Threads
Upgrading Struts from 1 to 2.0.14
How to execute a function when struts loads?
struts servlet init
Struts Plugins
java.lang.ClassCastException: org.spring.....ContextLoaderPlugIn cannot be cast to ..action.PlugIn