1 Reply Latest reply on Oct 8, 2003 10:59 PM by chuckharris

    jsp compilation error

    chuckharris

      I am getting the following error when compiling a jsp while running tomcat4.1.27
      that compiles fine with tomcat 3.2.3. I added rt.jar to the jboss_classpath but the error
      was not resolved. What do I need to do to correct this error?


      HTTP Status 500 -
      --------------------------------------------------------------------------------
      type Exception report
      message description The server encountered an internal error () that prevented
      it from fulfilling this request.
      exception org.apache.jasper.JasperException: Unable to compile class for JSP
      An error occurred at line: -1 in the jsp file: null
      Generated servlet error:
      [javac] Compiling 1 source file
      [javac] C:\packages\jboss-3.2.2RC3\server\default\work\MainEngine\localhost\_\afsp\afsp_tpEdit_post_jsp.java:164: cannot resolve symbol
      [javac] symbol : class Vector
      [javac] location: class org.apache.jsp.afsp_tpEdit_post_jsp
      [javac] Vector verrs = new Vector();

        • 1. Re: jsp compilation error
          chuckharris

          I have been looking more at this error and have found something odd. These are the imports statements from the MainEngine dir:
          import javax.servlet.*;
          import javax.servlet.http.*;
          import javax.servlet.jsp.*;
          import org.apache.jasper.runtime.*;
          import gov.ca.boe.afsp.mt.UserDBProxy;
          import gov.ca.boe.afsp.mt.TaxPayerProxy;
          import gov.ca.boe.afsp.busobj.User;
          import gov.ca.boe.afsp.busobj.TaxPayer;
          import gov.ca.boe.util.Logger;
          import gov.ca.boe.util.StringHelper;
          import org.apache.struts.util.ErrorMessages;
          import gov.ca.boe.util.Msg;
          import java.util.Hashtable;
          import java.util.Hashtable;
          import org.apache.struts.util.ErrorMessages;
          and this is from the jsp that contains the Vector import:
          <%@ page import="gov.ca.boe.afsp.mt.UserDBProxy" %>
          <%@ page import="gov.ca.boe.afsp.mt.TaxPayerProxy" %>
          <%@ page import="gov.ca.boe.afsp.busobj.User" %>
          <%@ page import="gov.ca.boe.afsp.busobj.TaxPayer" %>
          <%@ page import="gov.ca.boe.util.Logger" %>
          <%@ page import="gov.ca.boe.util.StringHelper" %>
          <%@ page import="org.apache.struts.util.ErrorMessages" %>
          <%@ page import="gov.ca.boe.util.Msg" %>
          <%@ page import="java.util.Hashtable" %>
          <%@ page import="java.util.Vector" %>

          The Vector appears to be changed to a Hashtable? What can I do to stop this?


          Generated servlet error:
          [javac] Compiling 1 source file
          [javac] C:\packages\jboss-3.2.2RC3\server\default\work\MainEngine\localhost\_\afsp\afsp_tpEdit_post_jsp.java:164: cannot resolve symbol
          [javac] symbol : class Vector
          [javac] location: class org.apache.jsp.afsp_tpEdit_post_jsp
          [javac] Vector verrs = new Vector();
          [javac] ^