Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-17-2008, 12:56 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
common jars for all JSP applications in tomcat in linux

I have different applications using spajco.jar

I have this jars in web-inf/lib folder of all the applications used like struts,log4j,servlet,sapjco.jar…etc...

But I get this error sometimes.

SO to have one JCO instance for one JVM instance I need to moved them to $CATALINA_BASE/common/lib

Exception: Exception in thread "main" java.lang.ExceptionInInitializerError: Could not load middleware layer “”

Native library /usr/local/sapjco/ already loaded in another classloder.

My questions is where is the correct folder to have the common jar files which are shared across multiple applications

$CATALINA_BASE/shared/lib or $CATALINA_BASE/common/lib.

Alternatively is it not possible to place the common jars in one folder and have that folder path in CLASSPATH in .bashrc file.
Old 10-17-2008, 02:28 AM   #2
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
The easiest solution, if you use an IDE such as Netbeans or Eclipse, is to add it through the IDE. Select your project in the left-side pane and right-click to add the jar.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat jsp problem shan_nathan Linux - Software 1 12-28-2007 03:17 PM
trying JSP with tomcat Anand Kiran Programming 1 01-16-2007 06:35 AM
New to JSP and the Tomcat Container PATFRA Programming 1 06-28-2006 08:37 PM
Common Linux Commands/Applications in Suse 9.2 jedcred Linux - Newbie 1 03-12-2005 07:56 PM
Basic JSP/Tomcat question. CodeWarrior Programming 1 07-06-2003 10:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration