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)