title: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:struts2-core-2.2.3.jar!/struts-default.xml:29:72
body: <h2>struts.xml</h2>
  <p>struts.xml File i have written this</p>
  <pre><code>    &lt;!DOCTYPE struts PUBLIC &quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;
          &quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&gt;
      
      &lt;struts&gt;
          &lt;constant name=&quot;struts.devMode&quot; value=&quot;true&quot; /&gt;
      
          &lt;package name=&quot;default&quot; extends=&quot;struts-default&quot; namespace=&quot;/&quot;&gt;
      
          &lt;/package&gt;
      &lt;/struts&gt;
  </code></pre>
  <p>web.xml File i have written this</p>
  <pre><code>    &lt;web-app version=&quot;2.5&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee 
          http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&gt;
          &lt;filter&gt;
              &lt;filter-name&gt;struts2&lt;/filter-name&gt;
              &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
          &lt;/filter&gt;
          &lt;filter-mapping&gt;
              &lt;filter-name&gt;struts2&lt;/filter-name&gt;
              &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
          &lt;/filter-mapping&gt;
          &lt;welcome-file-list&gt;
              &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
          &lt;/welcome-file-list&gt;
      &lt;/web-app&gt;
  </code></pre>
  <p>jar file i took in <code>web-inf/lib</code></p>
  <ul>
  <li>commons-beanutils-1.7.0.jar</li>
  <li>commons-collections-3.2.1.jar</li>
  <li>commons-digester-1.8.jar</li>
  <li>commons-fileupload-1.2.2.jar</li>
  <li>commons-io-2.0.1.jar</li>
  <li>commons-lang-2.5.jar</li>
  <li>commons-logging-1.1.1.jar</li>
  <li>commons-validator-1.3.1.jar</li>
  <li>freemarker-2.3.16.jar</li>
  <li>ognl-3.0.1.jar</li>
  <li>struts2-core-2.2.3.jar</li>
  <li>xwork-core-2.2.3.jar</li>
  </ul>
  <p>when I am going to run this in eclispe that this will error</p>
  <h2>Errors</h2>
  <pre><code>&gt;&gt;&gt;SEVERE: Dispatcher initialization failed
  &gt;&gt;&gt;Unable to load configuration. - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
  &gt;&gt;&gt; at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
  &gt;&gt;&gt; at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
  &gt;&gt;&gt; at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:108)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
  &gt;&gt;&gt; at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardService.start(StandardService.java:516)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  &gt;&gt;&gt; at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
  &gt;&gt;&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  &gt;&gt;&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  &gt;&gt;&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  &gt;&gt;&gt; at java.lang.reflect.Method.invoke(Method.java:597)
  &gt;&gt;&gt; at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  &gt;&gt;&gt; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
  &gt;&gt;&gt;Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
  &gt;&gt;&gt; at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
  &gt;&gt;&gt; ... 31 more
  &gt;&gt;&gt;Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:205)
  &gt;&gt;&gt; ... 34 more
  &gt;&gt;&gt;Jan 30, 2014 11:57:43 AM org.apache.catalina.core.StandardContext filterStart
  &gt;&gt;&gt;SEVERE: Exception starting filter struts2
  &gt;&gt;&gt;Unable to load configuration. - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
  &gt;&gt;&gt; at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
  &gt;&gt;&gt; at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
  &gt;&gt;&gt; at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:108)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
  &gt;&gt;&gt; at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
  &gt;&gt;&gt; at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
  &gt;&gt;&gt; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardService.start(StandardService.java:516)
  &gt;&gt;&gt; at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  &gt;&gt;&gt; at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
  &gt;&gt;&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  &gt;&gt;&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  &gt;&gt;&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  &gt;&gt;&gt; at java.lang.reflect.Method.invoke(Method.java:597)
  &gt;&gt;&gt; at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  &gt;&gt;&gt; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
  &gt;&gt;&gt;Caused by: Unable to load configuration. - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
  &gt;&gt;&gt; at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
  &gt;&gt;&gt; ... 29 more
  &gt;&gt;&gt;Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
  &gt;&gt;&gt; at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
  &gt;&gt;&gt; ... 31 more
  &gt;&gt;&gt;Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 - bean - jar:file:/F:/m/.metadata/.me_tcat/webapps/project/WEB-INF/lib/struts2-core-2.2.3.jar!/struts-default.xml:29:72
  &gt;&gt;&gt; at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:205)
  &gt;&gt;&gt; ... 34 more
  &gt;&gt;&gt;Jan 30, 2014 11:57:43 AM org.apache.catalina.core.StandardContext start
  &gt;&gt;&gt;SEVERE: Error filterStart
  &gt;&gt;&gt;Jan 30, 2014 11:57:43 AM org.apache.catalina.core.StandardContext start
  &gt;&gt;&gt;SEVERE: Context [/project] startup failed due to previous errors
  </code></pre>