WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Struts 2 on WAS 6.1

    Posted 10/11/10 04:56 PM

    We are developing applications for WAS 6.1.0.33 using RAD 7.5.  We would like to use the Struts 2 (2.1.6) framework.  We are getting the 404 "There is no Action mapped for namespace / and action..." error. 


    When we set web container custom property com.ibm.ws.webcontainer.invokeFiltersCompatibility = true as recommended in many places (like www.ibm.com/developerworks/forums/thread...), it works on our local server, but not on our development server.


    Our local server (where the web container custom property fixes it) is 6.1.0.29 on Windows.  Our devl server (where the web container custom property does not fix it) is 6.1.0.33 on linux (intel).


    Any ideas?


    Thanks!



  • 2.  Struts 2 on WAS 6.1

    Posted 10/12/10 04:25 PM

    When I export the ear file, and deploy it that way, I get the 404 error.  It works fine when running in the workspace environment (hot swaps).

    Installing via EAR also works fine if I change the struts mapping from Annotations to Struts.xml config file.

    Any ideas why Struts2 Annotations are giving me trouble in WAS 6.1.0.33?

    Thanks!