1 Reply Latest reply: Aug 7, 2009 1:40 PM by 774775 RSS

    javabeans exception

    774775
      can u plz identify this exception.
      i'm beginner to javabeans.

      HTTP Status 500 -

      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/logging/LogFactory
           org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:157)
           org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:117)
           org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68)
           org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:153)
           org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:80)
           org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
           servlet.BeanUtilities.populateBean(BeanUtilities.java:24)
           servlet.BeanUtilities.populateBean(BeanUtilities.java:12)
           servlet.Insurance.doGet(Insurance.java:15)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      root cause

      java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
           java.net.URLClassLoader$1.run(URLClassLoader.java:200)
           java.security.AccessController.doPrivileged(Native Method)
           java.net.URLClassLoader.findClass(URLClassLoader.java:188)
           java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
           org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:157)
           org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:117)
           org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68)
           org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:153)
           org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:80)
           org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
           servlet.BeanUtilities.populateBean(BeanUtilities.java:24)
           servlet.BeanUtilities.populateBean(BeanUtilities.java:12)
           servlet.Insurance.doGet(Insurance.java:15)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.

      thanks
        • 1. Re: javabeans exception
          774775
          download (binary , logging 1.1.1 from apache website)
          set classpath (commons-logging-1.1.1.jar) ,
          add import org.apache.commons.logging.*; to your beanpopulation file, u will never see the face of that exception.
          thanks for not reply, i could solve it myself :p