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.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java:7:

'.' expected
import DbConnection;
                   ^
/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java:8:

'.' expected
import Global;
             ^
Note:
/usr/local/jakarta-tomcat-4.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.javacError(DefaultErrorHandler.java:130)
     at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
     at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
     at
org.apache.jasper.JspCompilationContext.compile(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


  _________....___________

*****************************************************************************************************************************

DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity
 indicated in this message and for the exclusive use of the said addressed individual 
or entity indicated in this message 
(or responsible for delivery of the message to such person) and may contain legally 
privileged and confidential information 
belonging to Tata Consultancy Services. It must not be printed, read, copied, 
disclosed, forwarded, distributed or used 
(in whatsoever manner) by any person other than the addressee. Unauthorized use, 
disclosure or copying is strictly prohibited
 and may constitute unlawful act and can possibly attract legal action, civil and/or 
criminal. The contents of this message 
need not necessarily reflect or endorse the views of TATA Consultancy Services on any 
subject matter. Any action taken 
or omitted to be taken based on this message is entirely at your risk and neither the 
originator of this message nor 
Tata Consultancy Services takes any responsibility or liability towards the same. 
Opinions, conclusions and any other 
information contained in this message that do not relate to the official business of 
Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. 
If you have received this message in error, you should destroy this message and may 
please notify the sender by e-mail. Thank you.

*****************************************************************************************************************************
.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to