I am having a problem with a tutorial I am doing in Coreservlets and
JSP Vol.1. It is located in Chapter 4 and is the 4.7 section Automatically Populating
java OBjects...I am using Eclipse as my
IDE. I believe that I have my
servlets and my html pages in the correct location. I can get it to build without any errors. I had to use three jar files, commons-beanutils.jar, commons-collections.jar and commons-logging.jar and used the configure build path in Eclipse to add these jars.
The problem I am getting is this:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanUtils
coreservlets.beans.BeanUtilities.populateBean(BeanUtilities.java:52)
coreservlets.beans.BeanUtilities.populateBean(BeanUtilities.java:40)
coreservlets.SubmitInsuranceInfo.doGet(SubmitInsuranceInfo.java:24)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
java.lang.ClassNotFoundException: org.apache.commons.beanutils.BeanUtils
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
coreservlets.beans.BeanUtilities.populateBean(BeanUtilities.java:52)
coreservlets.beans.BeanUtilities.populateBean(BeanUtilities.java:40)
coreservlets.SubmitInsuranceInfo.doGet(SubmitInsuranceInfo.java:24)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.27
If anyone has solved this problem I would apreciate knowing what I am not doing right here. Thanks!