I can't configure Tomcat with JSP [message #91472] |
Fri, 27 September 2002 03:34 |
Jdbc
Messages: 1 Registered: September 2002
|
Junior Member |
|
|
Hi,
I'm running with
Windows 2000,
Tomcat 3.3.1,
jdk 1.2.2
Oracle 8.1.7
I can see html files with Tomcat but no the jsp's files.
I've got the error:
----------------------------------------
org.apache.jasper.JasperException: Unable to compile C:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1workDEFAULTROOTmijsp_1.java:85: Undefined variable or class name: DriverManager
DriverManager.registerDriver
^
C:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1workDEFAULTROOTmijsp_1.java:87: Class Connection not found.
Connection conn = DriverManager.getConnection
^
C:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1workDEFAULTROOTmijsp_1.java:87: Undefined variable or class name: DriverManager
Connection conn = DriverManager.getConnection
^
C:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1workDEFAULTROOTmijsp_1.java:91: Class DatabaseMetaData not found.
DatabaseMetaData meta = conn.getMetaData();
^
C:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1workDEFAULTROOTmijsp_1.java:101: Undefined variable or class name: aut
out.print(aut.getMensajeError());
----------------------------
He can't find the classes.
The files are in webappsROOT
What is happening? Can anyone help me?
My ClassPath:
.;c:orantjdbclibclasses12.zip;c:orantjdbclibnls_charset12.zip;c:jdk1.2.2libclasses12.zip;c:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1libclasses12.zip;c:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1libclasses12.zip;
My Path:
C:orantbin;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;C:orantjdkbin;%JAVA_HOME%bin;c:orantjdbclib;
My JAVA_HOME:
c:jdk1.2.2
I've just unzipped classes12.zip into c:Apache Tomcat 3.3.1jakarta-tomcat-3.3.1lib too but doesn't function.
Thanks.
|
|
|
Re: I can't configure Tomcat with JSP [message #91512 is a reply to message #91472] |
Tue, 15 October 2002 21:56 |
Manoj
Messages: 101 Registered: August 2000
|
Senior Member |
|
|
Hi,
To configure your jsp file try storing your jsp files in c:jarkarta-tomcat-3.3.1webappsexamplesjsp folder and try to call them by typing the following URL in the browser.
http:\localhost:8080examplesjspfile_name.jsp
For class not found or undefined variable of
connection, MetaDeta etc, you should import
java.sql.*;
hope this will work out
Manoj
|
|
|