struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown" <donald.br...@gmail.com>
Subject Re: Problem With struts-2.1.2
Date Sun, 01 Jun 2008 06:16:50 GMT
You are missing the commons-fileupload jar.  As of 2.1.2, this is no
longer an optional dependency.

Don

On Sun, Jun 1, 2008 at 3:29 PM, aum strut <aum.struts@gmail.com> wrote:
> Hi All,
>
> I am developing an application in struts2(2.0.11) and everything was working
> fine.
> when i tried to shift my application from 2.0.11 to 2.1.2 it is giving me
> exception.
>
> i have developed a simple application to test it. a simple Index.jsp page
> with a button on it.
>
> but itis giving me exception the server console output is below
>
>
> SEVERE: Exception starting filter struts2
>
> Unable to load configuration. - bean -
> jar:file:/F:/Kartavya%20Foundation/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/DojoTest/WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:46:178
>
> at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(*
> ConfigurationManager.java:58*)
>
> at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(*
> Dispatcher.java:371*)
>
> at org.apache.struts2.dispatcher.Dispatcher.init(*Dispatcher.java:424*)
>
> at org.apache.struts2.dispatcher.FilterDispatcher.init(*
> FilterDispatcher.java:213*)
>
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(*
> ApplicationFilterConfig.java:275*)
>
> at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(*
> ApplicationFilterConfig.java:397*)
>
> at org.apache.catalina.core.ApplicationFilterConfig.<init>(*
> ApplicationFilterConfig.java:108*)
>
> at org.apache.catalina.core.StandardContext.filterStart(*
> StandardContext.java:3693*)
>
> at org.apache.catalina.core.StandardContext.start(*StandardContext.java:4340
> *)
>
> at org.apache.catalina.core.ContainerBase.addChildInternal(*
> ContainerBase.java:791*)
>
> at org.apache.catalina.core.ContainerBase.addChild(*ContainerBase.java:771*)
>
> at org.apache.catalina.core.StandardHost.addChild(*StandardHost.java:525*)
>
> at org.apache.catalina.startup.HostConfig.deployDirectory(*
> HostConfig.java:920*)
>
> at org.apache.catalina.startup.HostConfig.deployDirectories(*
> HostConfig.java:883*)
>
> at org.apache.catalina.startup.HostConfig.deployApps(*HostConfig.java:492*)
>
> at org.apache.catalina.startup.HostConfig.start(*HostConfig.java:1138*)
>
> at org.apache.catalina.startup.HostConfig.lifecycleEvent(*
> HostConfig.java:311*)
>
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(*
> LifecycleSupport.java:117*)
>
> at org.apache.catalina.core.ContainerBase.start(*ContainerBase.java:1053*)
>
> at org.apache.catalina.core.StandardHost.start(*StandardHost.java:719*)
>
> at org.apache.catalina.core.ContainerBase.start(*ContainerBase.java:1045*)
>
> at org.apache.catalina.core.StandardEngine.start(*StandardEngine.java:443*)
>
> at org.apache.catalina.core.StandardService.start(*StandardService.java:516*
> )
>
> at org.apache.catalina.core.StandardServer.start(*StandardServer.java:710*)
>
> at org.apache.catalina.startup.Catalina.start(*Catalina.java:566*)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
> at java.lang.reflect.Method.invoke(Unknown Source)
>
> at org.apache.catalina.startup.Bootstrap.start(*Bootstrap.java:288*)
>
> at org.apache.catalina.startup.Bootstrap.main(*Bootstrap.java:413*)
>
> Caused by: Unable to load bean:
> type:org.apache.struts2.dispatcher.multipart.MultiPartRequest
> class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean
> -
> jar:file:/F:/Kartavya%20Foundation/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/DojoTest/WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:46:178
>
> at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(*
> XmlConfigurationProvider.java:239*)
>
> at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(*
> StrutsXmlConfigurationProvider.java:100*)
>
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(
> *DefaultConfiguration.java:156*)
>
> at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(*
> ConfigurationManager.java:55*)
>
> ... 30 more
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/commons/fileupload/RequestContext
>
> at java.lang.Class.getDeclaredConstructors0(*Native Method*)
>
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
>
> at java.lang.Class.getDeclaredConstructors(Unknown Source)
>
> at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(*
> XmlConfigurationProvider.java:229*)
>
> ... 33 more
>
>
>
>
>
> i have included the following jar files in my application
>
> 1xxwork-2.1.1
>
> 2 struts2-core-2.1.2
>
> 3 ognl-2.6.11
>
> 4 freemarker-2.3.12
>
> 5 commons-logging-api-1.1
>
> 6 commons-logging-1.0.4
>
> 7 commons-lang-2.3
>
> how ever if use the jarfiles from 2.0.11 distributuion it work fine, any
> reason for this?
>
> any help in this regrad is most welcome
>
>
>
> -aum
>

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


Mime
View raw message