struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject Re: Struts 2.1.7 Vote
Date Tue, 23 Jun 2009 13:18:58 GMT
On Tue, Jun 23, 2009 at 4:13 AM, Al Sutton<al@funkyandroid.com> wrote:
> A few things I've noticed (not hugely important, but may raise some end user questions);
>
> ** Upgrade issues **
>
> My project uses -codebehind-plugin, -core, -rest-plugin, -sitemesh-plugin. After the
upgrading just the jars I get;
>
> Caused by: java.lang.ClassNotFoundException: org.apache.struts2.rest.handler.MultipartFormDataHandler
from;
>
[...]

I think this needs looked into, the rest-showcase on the zone doesn't
load because of this problem. I did change the handling in Dispatcher
for how struts deals with multipart submissions. Prior, the handler
was injected by type. I added a little logic to read a constant, then
inject the handler by the name of the constant. I don't know if I will
have time to look at this today, and I'm not familiar with the
rest-plugin. The full exception/stacktrace is pasted below -

SEVERE: Dispatcher initialization failed
Unable to load configuration. - bean -
jar:file:/local/appservers/tomcat/apache-tomcat-5.5.27/webapps/tomcat-5-5-27-java5-struts2-re
st-showcase/WEB-INF/lib/struts2-rest-plugin-2.1.7.jar!/struts-plugin.xml:39:163
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
        at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
        at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
        at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1218)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
        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.run(ContainerBase.java:1559)
        at java.lang.Thread.run(Thread.java:595)
Caused by: Unable to load bean:
type:org.apache.struts2.rest.handler.ContentTypeHandler
class:org.apache.struts2.rest.handler.Multip
artFormDataHandler - bean -
jar:file:/local/appservers/tomcat/apache-tomcat-5.5.27/webapps/tomcat-5-5-27-java5-struts2-rest-showcase
/WEB-INF/lib/struts2-rest-plugin-2.1.7.jar!/struts-plugin.xml:39:163
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
        at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
        ... 23 more
Caused by: java.lang.ClassNotFoundException:
org.apache.struts2.rest.handler.MultipartFormDataHandler
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
        at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:146)
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:192)
        ... 26 more
Jun 19, 2009 8:19:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jun 19, 2009 8:19:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/tomcat-5-5-27-java5-struts2-rest-showcase] startup
failed due to previous errors


-Wes

-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message