1 Reply Latest reply on Feb 24, 2002 12:34 PM by timbatch

    ClassNotFoundException

    timbatch

      [11:33:30,052,Jetty] WARNING: Servlet Exception for /struts/lesson1/logon.jsp
      javax.servlet.jsp.JspException: Exception creating bean of class com.carnotgroup
      .common.form.logonform: java.lang.ClassNotFoundException: com.carnotgroup.common
      .form.logonform

      The logonform.class is in WEB-INF/classes/com/carnotgroup/common/form

      I'm using JBoss 3.0.0. Below is my struts-config.xml

      Thanks for any help, suggestions.

      Tim


      <?xml version="1.0" encoding="ISO-8859-1" ?>

      <!DOCTYPE struts-config PUBLIC
      "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
      "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

      <struts-config>


      <!-- ========== Form Bean Definitions =================================== -->
      <form-beans>
      <form-bean name="lesson1"
      type="com.carnotgroup.common.form.logonform"/>

      </form-beans>


      <!-- ========== Global Forward Definitions ============================== -->
      <global-forwards>



      </global-forwards>


      <!-- ========== Action Mapping Definitions ============================== -->
      <action-mappings>

      <!-- lesson1 action -->






      </action-mappings>

      </struts-config>


        • 1. Re: ClassNotFoundException
          timbatch

          I installed this simple WAR file into Tomcat4.0.2 and it is working. In JBoss, how do I get WEB-INF/classes/** into my classpath at run-time?

          I'm running JBoss 3.0.0

          Thanks,

          Tim