I am migrating from Struts 2.0.11.1 to 2.1.6 and have read the
migration guide but am running into trouble.  I changed my web.xml to

    <filter>
      <filter-name>struts2</filter-name>
      
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>

    <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>*.action</url-pattern>
    </filter-mapping>

    <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>/struts/*</url-pattern>
    </filter-mapping>


but get the following error:

<Jun
3, 2009 8:11:47 AM EDT> <Error> <HTTP>
<BEA-101165> <Could not load user defined filter in web.xml: 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.
Unable
to load configuration. -
file:/dun/d67loc3/nesbitjs/NNC/enames2/dev/applications/eNames2/enames/WEB-INF/classes/struts.xml:13:19
        at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)

In my WEB-INF/lib I have struts2-core-2.1.6.jar so it should find the class 
fine.  

One thing I am not sure about is my struts.xml.  I am using Dojo so I added the 
following.

      <dependency>
         <groupId>org.apache.struts</groupId>
         <artifactId>struts2-dojo-plugin</artifactId>
         <version>2.1.6</version>
      </dependency>

However, I am not quite sure where to put it.  Inside the package, or just 
after the <struts> tag?  The migration page was not very clear on this.

Any suggestions or tips would be greatly appreciated.

Thank you,

Scott 


      

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

Reply via email to