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.