struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WW-3239) Exception starting filter struts2 When start Struts2 2.1.6
Date Sun, 06 Sep 2009 06:23:34 GMT

     [ https://issues.apache.org/struts/browse/WW-3239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Musachy Barroso resolved WW-3239.
---------------------------------

    Resolution: Not A Problem

commons-io and commons-fileupload are required in 2.1

> Exception starting filter struts2 When start Struts2 2.1.6
> ----------------------------------------------------------
>
>                 Key: WW-3239
>                 URL: https://issues.apache.org/struts/browse/WW-3239
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Core Actions
>    Affects Versions: 2.1.6
>         Environment: MyEclipse6.5.0GA, Tomcat 6.0.18 JDK1.6.0_04
>            Reporter: Alan Wang
>
> When I start the Tomcat in MyEclipse IDE and the struts2 core vertion is "struts2-core-2.0.11"
it's ok.  but when i use "struts2-core-2.1.6" ,it shows in the Console::
> 2009-9-6 11:41:20 org.apache.catalina.core.AprLifecycleListener init
> 信息: The APR based Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: D:\Develop\MyEclipse6.5\bin;D:\Develop\Tomcat
6.0\bin
> 2009-9-6 11:41:20 org.apache.coyote.http11.Http11Protocol init
> 信息: Initializing Coyote HTTP/1.1 on http-9898
> 2009-9-6 11:41:20 org.apache.catalina.startup.Catalina load
> 信息: Initialization processed in 695 ms
> 2009-9-6 11:41:20 org.apache.catalina.core.StandardService start
> 信息: Starting service Catalina
> 2009-9-6 11:41:20 org.apache.catalina.core.StandardEngine start
> 信息: Starting Servlet Engine: Apache Tomcat/6.0.18
> 2009-9-6 11:41:23 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
> 信息: Parsing configuration file [struts-default.xml]
> 2009-9-6 11:41:23 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
> 信息: Parsing configuration file [struts-plugin.xml]
> 2009-9-6 11:41:23 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
> 信息: Parsing configuration file [struts.xml]
> 2009-9-6 11:41:23 org.apache.struts2.config.Settings getLocale
> 警告: Settings: Could not parse struts.locale setting, substituting default VM locale
> 2009-9-6 11:41:25 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit>
> 信息: Setting DefaultObjectTypeDeterminer as default ...
> 2009-9-6 11:41:25 org.apache.catalina.core.ApplicationContext log
> 信息: ContextListener: contextInitialized()
> 2009-9-6 11:41:25 org.apache.catalina.core.ApplicationContext log
> 信息: SessionListener: contextInitialized()
> 2009-9-6 11:41:27 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> 信息: Parsing configuration file [struts-default.xml]
> 2009-9-6 11:41:27 org.apache.catalina.core.StandardContext filterStart
> 严重: Exception starting filter struts2
> Unable to load configuration. - bean - jar:file:/D:/Develop/Tomcat%206.0/webapps/test/WEB-INF/lib/struts2-core-2.1.6.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:360)
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
> 	at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
> 	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:3709)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
> 	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:926)
> 	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
> 	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:578)
> 	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:/D:/Develop/Tomcat%206.0/webapps/test/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
> 	at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
> 	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:212)
> 	... 33 more
> 2009-9-6 11:41:27 org.apache.catalina.core.StandardContext start
> 严重: Error filterStart
> 2009-9-6 11:41:27 org.apache.catalina.core.StandardContext start
> 严重: Context [/test] startup failed due to previous errors
> 2009-9-6 11:41:28 org.apache.coyote.http11.Http11Protocol start
> 信息: Starting Coyote HTTP/1.1 on http-9898
> 2009-9-6 11:41:28 org.apache.jk.common.ChannelSocket init
> 信息: JK: ajp13 listening on /0.0.0.0:8009
> 2009-9-6 11:41:28 org.apache.jk.server.JkMain start
> 信息: Jk running ID=0 time=0/47  config=null
> 2009-9-6 11:41:28 org.apache.catalina.startup.Catalina start
> 信息: Server startup in 7850 ms

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message