Struts (RSS)

Topics on Struts

Blog moved to WordPress and new domain...

I've moved my blog to my own domain and onto a WordPress engine, CS + SPAM was driving me nuts!

Catchup posts: Oh yes, I've been in Japan for a couple of months, first 2 weeks of photos are uploaded on Flickr, I still havent had a chance to upload the thousands after.

Whats more, I've actually written some information about me so you can finally find out my sad sad way of life. See About Thushan Fernando.

Thunderbird 2 goes out too!

Wow, Thunderbird 2.0 officially got released yesterday too! I've been using the interim releases at work and love it (though I'm not rushing to get it installed at home and replace Outlook 2007:p)

Either way, checkout the features page and download!

Struts: Cannot find ActionMappings or ActionFormBeans collection (FIX!)

I've had to tackle some of the (many) statistical data thats stored about the clips on our site (dont worry, nothing sensitive!), now to do that I *COULD* have gone with the lovely ASP.NET stuff, but alas I've got requirements to fufil, so it was decided on JSP. I absolutely *HATE* JSP, (but i've taken a liking to Java - after 1.5), its just seems a tad "over the top" for me, but trying hard to forget my political stance i wrote up the front-end in JSP with a lovely framework called Struts(See site for more info, i'm posting this from work).

So after meddling with and learning Struts(not easy at the start!) I finally finished and went to deploy, somewhere around that time I must have done a cleanup and accidentally deleted a few JAR libaries that are required by Struts, so when i went to run the form in the browser I got this in my logs:

SEVERE: ServletException in '/include/tiles/template.jsp': ServletException in '/include/tiles/body/chartViewBody.jsp': Cannot find ActionMappings or ActionFormBeans collection
javax.servlet.ServletException: ServletException in '/include/tiles/body/chartViewBody.jsp': Cannot find ActionMappings or ActionFormBeans collection
        at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
        at org.apache.jsp.include.tiles.template_jsp._jspService(template_jsp.java:185)
	[...]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:595)
OK I thought, Cannot find ActionMappings or ActionFormBeans collection must be something in my web.xml file, so I rolled back from CVS, nope, struts-config.xml? Nahh... So I was stumped for 3 PHAR-King days trying to think wtf was going on (and in the process hacking uneccessary things to try and fix it). TOday I stumbled apon the solution:
Cannot find ActionMappings or ActionFormBeans collection really means You may be missing some jar libraries in the '/WEB-INF/lib' folder. (add any course language as necessary!)
Thanks Struts guys! You guys rock, your messages are *SOoooo* helpful:-)

If you've googled the error and came here, heres what (the minimum) you need to have in order to run STRUTS:

  • commons-beanutils.jar
  • antlr.jar
  • commons-digester.jar
  • commons-fileupload.jar (as the name goes, I think its optional)
  • commons-logging.jar
  • commons-validator.jar
  • jarkarta-oro.jar
  • struts.jar
So make sure all the above (with the exception of fileupload I think) are there and try and run it again, it works!

I've openned up a Struts/JSP/Java area to talk about my findings/messings in this area.