LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   common jars for all JSP applications in tomcat in linux (https://www.linuxquestions.org/questions/linux-newbie-8/common-jars-for-all-jsp-applications-in-tomcat-in-linux-676983/)

raghuveervellanki 10-16-2008 11:56 PM

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 “com.sap.mw.jco.rfc.MiddlewareRFC”

Native library /usr/local/sapjco/libsapjcorfc.so 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.

jay73 10-17-2008 01:28 AM

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.


All times are GMT -5. The time now is 11:02 PM.