title: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
body: <p>I'm new to Struts and I got issue like this </p>
  
  <pre><code>INFO: Starting service Catalina
  Mar 10, 2011 10:40:39 AM org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
  Mar 10, 2011 10:40:39 AM org.apache.catalina.core.StandardContext filterStart
  SEVERE: Exception starting filter struts2
  java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
      at org.apache.catalina.core.ApplicationFilterConfig.&lt;init&gt;(ApplicationFilterConfig.java:115)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      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:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  Mar 10, 2011 10:40:39 AM org.apache.catalina.core.StandardContext start
  SEVERE: Error filterStart
  Mar 10, 2011 10:40:39 AM org.apache.catalina.core.StandardContext start
  SEVERE: Context [/StrutsPrj] startup failed due to previous errors
  Mar 10, 2011 10:40:39 AM org.apache.coyote.http11.Http11Protocol start
  INFO: Starting Coyote HTTP/1.1 on http-8080
  Mar 10, 2011 10:40:39 AM org.apache.jk.common.ChannelSocket init
  INFO: JK: ajp13 listening on /0.0.0.0:8009
  Mar 10, 2011 10:40:39 AM org.apache.jk.server.JkMain start
  INFO: Jk running ID=0 time=0/16  config=null
  Mar 10, 2011 10:40:39 AM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 625 ms
  </code></pre>
  
  <p>Also I got some probs in my struts.xml file</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.enable.DynamicMethodInvocation" value="false" /&gt;
      &lt;constant name="struts.devMode" value="false" /&gt;
      &lt;constant name="struts.custom.i18n.resources" value="AppResources" /&gt;
      &lt;package name="default" extends="struts-default" namespace="/"&gt;
          &lt;action name="login"
              class="sturts2.LoginAction"&gt;
              &lt;result name="success"&gt;Welcome.jsp&lt;/result&gt;
              &lt;result name="error"&gt;Login.jsp&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
  &lt;/struts&gt; 
  </code></pre>
  
  <p>In first line of struts.xml, I got error like this:</p>
  
  <blockquote>
    <p>Referenced file contains errors (<a href="http://struts.apache.org/dtds/struts-2.0.dtd" rel="nofollow noreferrer">http://struts.apache.org/dtds/struts-2.0.dtd</a>). For more information, right click on the message in the Problems View and select "Show Details..."</p>
  </blockquote>