This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes java.lang.ClassCastException: org.spring.....ContextLoaderPlugIn cannot be cast to ..action.PlugIn 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 » Other Application Frameworks
Bookmark "java.lang.ClassCastException: org.spring.....ContextLoaderPlugIn cannot be cast to ..action.PlugIn" Watch "java.lang.ClassCastException: org.spring.....ContextLoaderPlugIn cannot be cast to ..action.PlugIn" New topic
Author

java.lang.ClassCastException: org.spring.....ContextLoaderPlugIn cannot be cast to ..action.PlugIn

leela addagulla
Greenhorn

Joined: Mar 31, 2008
Posts: 10
Hello I am trying to to integrate Spring and Struts using the Spring PlugIn org.springframework.web.struts.ContextLoaderPlugIn for the Struts.
I am getting the following error. Can anyone please help me?

java.lang.ClassCastException: org.springframework.web.struts.ContextLoaderPlugIn cannot be cast to org.apache.struts.action.PlugIn
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:816)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Unknown Source)
Jun 7, 2009 1:36:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Jun 7, 2009 1:36:07 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /SuiteAccess threw load() exception
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:850)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Unknown Source)
 
 
subject: java.lang.ClassCastException: org.spring.....ContextLoaderPlugIn cannot be cast to ..action.PlugIn
 
Similar Threads
rg.apache.jasper.JasperException: Unable to get connection, DataSource invalid: "java.sql.SQLExcepti
JSF2 FacesServlet delegation
Struts Plugins
log4j:WARN No appenders could be found for logger
how do i solve this error caused due to problem in spring initiation on tomcat