title: struts2:Unable to load configuration
body: <p>I am first time developing simple sturts2 application using below code,</p>
  
  <p>HelloWorld.java</p>
  
  <pre><code>package com.ManiFirst.struts2;
  
  public class HelloWorldAction {
      private String name;
  
      public String excecute(){
          return "success";
      }
      public String getName(){
          return name;
      }
      public void setName(String name){
          this.name = name;
      }
  
  }
  </code></pre>
  
  <p>index.jsp :</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
     pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;
     &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
  "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Hello World&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
     &lt;h1&gt;Hello World From Struts2&lt;/h1&gt;
     &lt;form action="hello"&gt;
        &lt;label for="name"&gt;Please enter your name&lt;/label&gt;&lt;br/&gt;
        &lt;input type="text" name="name"/&gt;
        &lt;input type="submit" value="Say Hello"/&gt;
     &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>struts.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE struts PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
     "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;
  &lt;struts&gt;
  &lt;constant name="struts.devMode" value="true"&gt;&lt;/constant&gt;
  &lt;package name="HelloWorld" extends="struts-default"&gt;
  &lt;action name="hello" class="com.ManiFirst.struts2.HelloWorldAction" method="execute"&gt;
  &lt;result name="success"&gt;/HelloWorld.jsp&lt;/result&gt;
  &lt;/action&gt;
  &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>web.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns="http://java.sun.com/xml/ns/javaee" 
     xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
     http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
     id="WebApp_ID" version="3.0"&gt;
  
     &lt;display-name&gt;Struts 2&lt;/display-name&gt;
     &lt;welcome-file-list&gt;
        &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
     &lt;/welcome-file-list&gt;
     &lt;filter&gt;
        &lt;filter-name&gt;struts2&lt;/filter-name&gt;
        &lt;filter-class&gt;
           org.apache.struts2.dispatcher.FilterDispatcher
        &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;/web-app&gt;
  </code></pre>
  
  <p>I downloaded struts-2.3.15-lib.zip and added into /WEB-INF/lib/.But i am getting error when run index.jsp page as</p>
  
  <pre><code>SEVERE: Dispatcher initialization failed
  Unable to load configuration. - bean - jar:file:/home/raptorjd4/Music/apache-tomcat-7.0.47/wtpwebapps/struts2App1/WEB-INF/lib/struts2-gxp-plugin-2.3.15.jar!/struts-plugin.xml:8:162
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
      at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)
      at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
      at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:107)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/home/raptorjd4/Music/apache-tomcat-7.0.47/wtpwebapps/struts2App1/WEB-INF/lib/struts2-gxp-plugin-2.3.15.jar!/struts-plugin.xml:8:162
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
      at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
      ... 15 more
  Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
      at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
      ... 18 more
  
  Dec 26, 2014 5:02:25 PM org.apache.catalina.core.StandardContext filterStart
  SEVERE: Exception starting filter struts2
  Unable to load configuration. - bean - jar:file:/home/raptorjd4/Music/apache-tomcat-7.0.47/wtpwebapps/struts2App1/WEB-INF/lib/struts2-gxp-plugin-2.3.15.jar!/struts-plugin.xml:8:162
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:502)
      at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)
      at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
      at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:107)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: Unable to load configuration. - bean - jar:file:/home/raptorjd4/Music/apache-tomcat-7.0.47/wtpwebapps/struts2App1/WEB-INF/lib/struts2-gxp-plugin-2.3.15.jar!/struts-plugin.xml:8:162
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
      ... 13 more
  Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/home/raptorjd4/Music/apache-tomcat-7.0.47/wtpwebapps/struts2App1/WEB-INF/lib/struts2-gxp-plugin-2.3.15.jar!/struts-plugin.xml:8:162
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
      at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
      ... 15 more
  Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
      at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
  </code></pre>
  
  <p>why i am getting this error and how to solve this one?</p>