CLASSPATH is ignored by default in tomcat (and for the better might I
add). Is there a reason you can't do recommended best practice and
place these in either shared/lib or WEB-INF/lib of each webapp requiring
them?
--David
Madhuraka Godahewa wrote:
Hi,
I am using jakarta-tomcat-5.0.30 and currently having a problem with the
CLASSPATH variable. I am in the process of configuring my website to access a
payment gateway. They gave me the following jar files and I put them in my
JAVA_HOME/jre/lib/ext/ directory.
ibmjceprovider.jar
jce1_2_1.jar
ibmpkcs.jar
US_export_policy.jar
sunjce_provider.jar
local_policy.jar
iclient.jar
Then I changed the classpath as follows.
CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-5.0.30/webapps/myapp/WEB-
INF/lib/iclient.jar
CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/jce1_2_1.jar
CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/ibmjceprovider.jar
CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/ibmpkcs.jar
CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/US_export_policy.jar
CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/sunjce_provider.jar
CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/local_policy.jar
Then I wrote a JSP file. It has an import statement as follows.
<@page import="iclient.*">
When this portion of code executes, tomcat generates an error saying that, it
cannot find the package 'iclient'.
Anybody knows the reason for this?
Thanks in advance
-------------------------------------------------------------------------------
-
Madhuraka Godahewa
Telecommunications Engineer
Research and Development Unit
Electroteks Global Networks (Pvt.) Ltd.
Mobile: + 94-777-647055
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]