Read up about how CLASSPATH works for .jar files as well as for normal directory structures, which are reflected in a jar file. If you cannot reach something in a normal directory (outside the .jar file) you sure cannot inside a .jar file. For example, in a "normal" directory structure, you would have to put "com.blah.blah....." at WEB-INF/classes/, because your CLASSPATH has WEB-INF/classes included. See what I mean?

At 11:47 AM 12/9/2002 -0500, you wrote:

yeah getting the same error. Here's the full description.

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

/web1/labwerks/tomcat/work/Standalone/localhost/_/dev/credit_check_jsp.java:7: package com.equifax.rcas.tools does not exist
import com.equifax.rcas.tools.*;
^
1 error

-----------------------
Here is my JSP page fragment.


<%@ page import="com.equifax.rcas.tools.*"%>

-----Original Message-----
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 11:43 AM
To: Tomcat Users List
Subject: RE: How do I install a jar file and reference it with a jsp
page? (Next problem)


Have you tried changeing the import to com.equifax.rcas.tools.*?

-----Original Message-----
From: Brian O. Bozarth [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 11:21 AM
To: Tomcat Users List
Subject: RE: How do I install a jar file and reference it with a jsp
page? (Next problem)



okay I put the jar file in /tomcat/webapps/ROOT/WEB-INF/lib (I had to
actually create the lib folder)

I used this in my jsp page.

<%@ page import="com.equifax.rcas.*"%>

getting an error of:

/web1/labwerks/tomcat/work/Standalone/localhost/_/dev/credit_check_jsp.java:
7: package com.equifax.rcas does not exist
import com.equifax.rcas.*;
^

Let me know if I'm doing something wrong.

Does it matter what the folder directory is in the jar file? When I
unzipped the directory, the java files were in here.

\data\esecure\rcas2.3.0-0018\com\equifax\rcas\tools


-----Original Message-----
From: Brian O. Bozarth
Sent: Monday, December 09, 2002 10:50 AM
To: [EMAIL PROTECTED]
Subject: Q: How do I install a jar file and reference it with a jsp
page?



Having trouble using this jar file which has code for an Equifax interface
(credit check). I've been given a jar file with sample code. Where do I
put in the tomcat directory and how do I reference it in a jsp page? Do I
need to do anything on the server to configure?

The package is called package com.equifax.rcas.tools;

I am using Apache Tomcat/4.1.12

Brian Bozarth
Chief Technical Officer
Labwerks
3618 Penn Avenue
Pittsburgh, PA 15201
P. 412-621-9375
F. 412-621-6082
http://www.labwerks.com

A Marketing Communications Company






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

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


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Micael

-------------------------------------------------------

This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you


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

Reply via email to