Sathesh Sivashanmugam

Greenhorn
+ Follow
since May 28, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sathesh Sivashanmugam

Hi,

You are hard coding the content length to 2048 disregarding the original file length. So the browser will download only the first 2048 bytes of the zip file. Try removing that line and try again.
6 years ago
I figured myself how to add the classpath for tomcat. Instead of editing catalina.properties, just create a "setenv.sh" in the Tomcat Bin directory with the classpath,

Example,

CLASSPATH=D:\jaa\PatMS.jar

I just checked the catalina.sh in Tomcat/bin and these classpath variable will be set while setting the bootstrap as the classpath.
10 years ago
Actually the deployment will be done on linux server. The jar file is cron scheduled and it used by another team.

Am not allowed to place it another directory. Also the jar has a class which is synchronized which I will be calling from the web application.


If I took a copy of jar and place it in Tomcat/lib there are chances that the scheduled and the web application threads running parallel which will cause many issues.

10 years ago
Hi

In Tomcat I want to use a jar inside a web application. The jar file will exist outside of the Tomcat directory.

To include the jar file in tomcat classpath, I modified the TomcatHome/conf/catalina.properties to include the absolute path of my jar file like,

shared.loader=D:\jaa\PatMS.jar

as per the suggestion given in link,

http://www.mulesoft.com/tomcat-classpath

But it throws the error,

java.lang.NoClassDefFoundError

I have also tried ,

shared.loader=D:\jaa*.jar

shared.loader=file:\\D:\jaa\PatMS.jar

None of them seem to work

If I try placing the jar inside tomcat/lib it seem to work. But I am not allowed to do that.

Please help me out with this issue as I have implementation the next week..
10 years ago