  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | org.apache.jasper.JasperException: Unable to compile class for JSP | org.apache.jasper.JasperException: Unable to compile class for JSP 2003-10-15 - By Manu.Garg@(protected)
Back
Hi guys!
I am getting following error while trying to run a jsp page in Tomcat 4.1 and JDK 1.4.
An error occurred at line: -1 in the jsp file: null
Generated servlet error: [javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.27/work/Standalone/localhost/test/intra_esolve /jsp/userMenu_jsp.java:7:
'.' expected import DbConnection; ^ /usr/local/jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.27/work/Standalone/localhost/test/intra_esolve /jsp/userMenu_jsp.java:8:
'.' expected import Global; ^ Note: /usr/local/jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.27/work/Standalone/localhost/test/intra_esolve /jsp/userMenu_jsp.java
uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 2 errors
at org.apache.jasper.compiler.DefaultErrorHandler (DefaultErrorHandler .java:130) at org.apache.jasper.compiler.ErrorDispatcher (ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler (Compiler.java:353) at org.apache.jasper.compiler.Compiler (Compiler.java:370) at org.apache.jasper.JspCompilationContext (JspCompilationContext.java:473) .....and lots more...
This page runs fine with Tomcat 3.2.4 and jdk 1.4. I have to port this page to Tomcat 4.1 with jdk 1.4.
Here is a snapshot of jsp page listing: .... <%@ page language="java" %> <%@ page import = "DbConnection" %> <%@ page import = "Global" %> <%@ page import = "java.lang.*" %> <%@ page import = "java.util.*" %> <%@ page import = "java.sql.*" %> <%@ page import = "javax.servlet.http.HttpSession " %> ...
Location of DbConnection.class and Global.class is /test/WEB-INF/classes.
Please help me if anybody knows the reason.
Thanks, Manu
__ ______....__ ____ ___
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |