tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: Classpath problem with TC 3.2.3
Date Wed, 31 Oct 2001 12:51:26 GMT
It looks like the JSP you are executing is in a "jsp"
subdirectory of the web application.  If you check the Java
source for the JSP under the "work" directory you will find
that the servlet class for this JSP is in the "jsp"
package.  This means that classes specified without
package names will be expected to be found in the "jsp"
package.

Since ODBCConnection isn't in the "jsp" package it isn't
found.  If this JSP page is moved to the root of the
web application you wouldn't see this error since
the servlet class for the jsp wouldn't be in a package.
However, this isn't the correct solution for this
problem.  The correct solution is to *always* put
classes, like ODBCConnection, in a package so the package
the JSP servlet gets put in won't matter.

Hopefully this is what is causing your problem.

Cheers,
Larry


> -----Original Message-----
> From: Voon, Wendy [mailto:wendy.voon@bdt.com.au]
> Sent: Tuesday, October 30, 2001 5:29 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: Classpath problem with TC 3.2.3
> 
> 
> 
> 
> Hi,
> 
> I have installed TC 3.2.3.
> 
> When I try to execute a .jsp I get the following message:
> org.apache.jasper.JasperException: Unable to compile class for
> JSPC:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_000
> 2fjsp_0002ftes
> t_0002ejsptest_jsp_0.java:65: Class jsp.ODBCConnection not found.
> ODBCConnection p = new ODBCConnection(); 
> C:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fj
> sp_0002ftest_0
> 002ejsptest_jsp_0.java:65: Class jsp.ODBCConnection not found.
> ODBCConnection p = new ODBCConnection(); 
> 
> I tried placing the .class file concerned in both :
> 
> jakarta-tomcat-3.2.3\classes directory  
> jakarta-tomcat-3.2.3\webapps\examples\web-info\classes
> 
> with no luck.
> 
> 
> Wendy Voon
> 
> 
> 
> Wendy Voon
> Consultant
> Black Diamond
> T e c h n o l o g i e s
> Level 1, 6 Riverside Quay,
> Southbank, Victoria, 3006.
> E-mail: wendy.voon@bdt.com.au
> Telephone: (03) 9698 - 7600
> Facsimile: (03) 9698 - 7666
> Web: http://www.bdt.com.au/ 
> 
> -------INTERNET E-MAIL CONFIDENTIALITY/DISCLAIMER--------
> 
> Privileged and confidential information may be contained in 
> this e-mail.  If
> you are not the intended recipient of this communication 
> please delete and
> destroy all copies and kindly notify the sender by return e-mail.
> Recipients of this e-mail must not use, disclose or forward 
> any information
> or attachments without express permission from Black Diamond 
> Technologies. 
> 
> Any views expressed in this communication are those of the 
> individual sender
> except where the sender specifically states them to be the 
> views of Black
> Diamond Technologies.  Except as required at law, we do not represent
> warrant and/or guarantee that the integrity of this 
> communication has been
> maintained or that it is free of errors, viruses, interception or
> interference.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message