0 Replies Latest reply on Apr 1, 2002 4:40 PM by Allen Leung

    Utility class not found by WEB application

    Allen Leung Newbie

      I have created a simple web application into a java_app.war file which in turn package up into a java_app.ear file. I deploy the java_app.ear file into the C:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy directory. The deployment is successful but when I access the entry page of my application "entApp.jsp" by a browser, it complains that class "LogonBean.class" not found(it is used inside enterApp.jsp). But I have package this class into my war file(under a "utility" directory because it is inside a package "utility").

      The java_app.ear file includes the following:
      META-INF/MANIFEST.MF
      META-INF/application.xml
      java_app.war

      Where the java_app.war includes the following:

      WEB-INF\web.xml
      enterApp.jsp
      utility\LogonBean.class

      So theoretically the LogonBean.class file should be located.

      The following error is produced by jboss back to the browser. What am I missing?

      Thanks.

      Allen.

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: 10 in the jsp file: /EnterApp.jsp

      Generated servlet error:
      C:\JBoss-2.4.4_Tomcat-4.0.1\catalina\work\localhost\java_app\EnterApp$jsp.java:89: Class utility.LogonBean not found.
      utility.LogonBean logonBean = null;
      ^


      An error occurred at line: 10 in the jsp file: /EnterApp.jsp

      Generated servlet error:
      C:\JBoss-2.4.4_Tomcat-4.0.1\catalina\work\localhost\java_app\EnterApp$jsp.java:92: Class utility.LogonBean not found.
      logonBean= (utility.LogonBean)
      ^


      An error occurred at line: 10 in the jsp file: /EnterApp.jsp