Straight from TOMCAT doc
a.. Shared - This class loader is the place to put classes and resources that 
you wish to share across ALL web applications

Doc available at
http://tomcat.apache.org/tomcat-5.5-doc/printer/class-loader-howto.html
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Tuesday, August 15, 2006 8:28 AM
Subject: Re: Classpath Problem


> 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]
> 
>

Reply via email to