Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Merwin Linus Pinto
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic