Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classpath setings for struts

 
Syed Khateeb
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm new to struts. Well i have started with a small struts application running on tomcat. i have set the classpath settings for Servlet & jsp-api.jar, and struts.jar. But still i'm finding an error while starting the application:
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection.
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)

.


I have kept the struts-html.tld file at the right place, is it the problem with struts tag library?

The code in my application is the one from the book professional Jakarta Struts 1.1 http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764544373,descCd-download_code.html

can somebody suggest what could be the problem, is there any other classpath settings required?

Thanks & Regards.
 
RoshaniG Gopal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abu,
Please see the following link for the details on the problem.
http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html
It also contains a link to a the problem faced by a fellow rancher.
Do let know if you still face problems.
Regards,
Roshani
 
Syed Khateeb
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Roshani,

The link was helpful to find the problem i had, And now my sample aplication is working. Indeed it has very useful common error handling information.

Thanks & regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic