2009/10/26 Rob Ogilvie <r...@axpr.net>:
> On Mon, Oct 26, 2009 at 09:02, Caldarale, Charles R
> <chuck.caldar...@unisys.com> wrote:
>> If any webapp requires a specific CLASSPATH setting, the webapp is 
>> ill-engineered at best.
>>
>> The CLASSPATH environment variable should *never* be used with Tomcat (or 
>> any other Java program, for that matter).
>
> I agree.  Unfortunately, IBM disagrees and our webapp relies on this API:
>
> http://publib.boulder.ibm.com/infocenter/forms/v3r0m0/index.jsp?topic=/com.ibm.help.forms.doc/API_Install_Guide/i_wfsa_g_unix_setting_the_environmental_variables.html
>
> For whatever reason, copying those JAR files to the WEB-INF/lib
> directory doesn't work.  I am not much of a Java developer, and do not
> understand the intricacies of how this all should work, but the API
> throws a "failed to initialize" error at us if we don't have the
> environment set up as described in the above document.
>

You should be able to put them into ${catalina.home}/common/lib/  or
into ${catalina.base}/shared/lib/

Changing CLASSPATH variable is not recommended.

See the following links:

http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

http://wiki.apache.org/tomcat/HowTo#I.27m_encountering_classloader_problems_when_using_JNI_under_Tomcat

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Oracle%208i%20with%20OCI%20client

Placing native libs into WEB-APP might not work because of the
"..library is already loaded in another classloader" issue mentioned
in the FAQ.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to