You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fang Zhu <zh...@hotmail.com> on 2010/12/16 23:11:02 UTC

how/where to put the application patch on tomcat ?





Does anyone has a idea --
 
how/where to put appPatch.jar to the tomcat, so tomcat can load this appPatch.jar first,
before those jars under /WEB-INF/lib/*.jar ?
 
according to the document, we can specify the -Xbootclasspath/p appPatch.jar, but 
I have no idea how to make it work.
 
Any help will highly appreicated!
 
We start the tomcat this way:
 
$JAVA_HOME/bin/java -Xms16m -Xmx32m -Djava.endorsed.dirs=/opt/apache-tomcat-5.5.26/common/endorsed -Duser.dir=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -classpath /opt/apache-tomcat-5.5.26/bin/bootstrap.jar:/opt/apache-tomcat-5.5.26/bin/commons-logging-api.jar -Dcatalina.base=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -Dcatalina.home=/opt/apache-tomcat-5.5.26 -Djava.io.tmpdir=/opt/apache-tomcat-5.5.26/temp org.apache.catalina.startup.Bootstrap start
 		 	   		  

Re: how/where to put the application patch on tomcat ?

Posted by Mark Thomas <ma...@apache.org>.
On 16/12/2010 22:47, Saurabh Makol wrote:
> Put  it in the lib folder of tomcat directory.

Nope. Wrong.

Mark

> 
> On Thu, Dec 16, 2010 at 2:11 PM, Fang Zhu <zh...@hotmail.com> wrote:
> 
>>
>>
>>
>>
>>
>> Does anyone has a idea --
>>
>> how/where to put appPatch.jar to the tomcat, so tomcat can load this
>> appPatch.jar first,
>> before those jars under /WEB-INF/lib/*.jar ?
>>
>> according to the document, we can specify the -Xbootclasspath/p
>> appPatch.jar, but
>> I have no idea how to make it work.
>>
>> Any help will highly appreicated!
>>
>> We start the tomcat this way:
>>
>> $JAVA_HOME/bin/java -Xms16m -Xmx32m
>> -Djava.endorsed.dirs=/opt/apache-tomcat-5.5.26/common/endorsed
>> -Duser.dir=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -classpath
>> /opt/apache-tomcat-5.5.26/bin/bootstrap.jar:/opt/apache-tomcat-5.5.26/bin/commons-logging-api.jar
>> -Dcatalina.base=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1
>> -Dcatalina.home=/opt/apache-tomcat-5.5.26
>> -Djava.io.tmpdir=/opt/apache-tomcat-5.5.26/temp
>> org.apache.catalina.startup.Bootstrap start
>>
> 


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


Re: how/where to put the application patch on tomcat ?

Posted by Saurabh Makol <sa...@gmail.com>.
Put  it in the lib folder of tomcat directory.

On Thu, Dec 16, 2010 at 2:11 PM, Fang Zhu <zh...@hotmail.com> wrote:

>
>
>
>
>
> Does anyone has a idea --
>
> how/where to put appPatch.jar to the tomcat, so tomcat can load this
> appPatch.jar first,
> before those jars under /WEB-INF/lib/*.jar ?
>
> according to the document, we can specify the -Xbootclasspath/p
> appPatch.jar, but
> I have no idea how to make it work.
>
> Any help will highly appreicated!
>
> We start the tomcat this way:
>
> $JAVA_HOME/bin/java -Xms16m -Xmx32m
> -Djava.endorsed.dirs=/opt/apache-tomcat-5.5.26/common/endorsed
> -Duser.dir=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -classpath
> /opt/apache-tomcat-5.5.26/bin/bootstrap.jar:/opt/apache-tomcat-5.5.26/bin/commons-logging-api.jar
> -Dcatalina.base=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1
> -Dcatalina.home=/opt/apache-tomcat-5.5.26
> -Djava.io.tmpdir=/opt/apache-tomcat-5.5.26/temp
> org.apache.catalina.startup.Bootstrap start
>

Re: how/where to put the application patch on tomcat ?

Posted by André Warnier <aw...@ice-sa.com>.
Fang Zhu wrote:
> 
> 
> 
> 
> Does anyone has a idea --
>  
> how/where to put appPatch.jar to the tomcat, so tomcat can load this appPatch.jar first,
> before those jars under /WEB-INF/lib/*.jar ?
>  
> according to the document, we can specify the -Xbootclasspath/p appPatch.jar, but 
> I have no idea how to make it work.
>  
> Any help will highly appreicated!
>  
> We start the tomcat this way:
>  
> $JAVA_HOME/bin/java -Xms16m -Xmx32m -Djava.endorsed.dirs=/opt/apache-tomcat-5.5.26/common/endorsed -Duser.dir=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -classpath /opt/apache-tomcat-5.5.26/bin/bootstrap.jar:/opt/apache-tomcat-5.5.26/bin/commons-logging-api.jar -Dcatalina.base=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -Dcatalina.home=/opt/apache-tomcat-5.5.26 -Djava.io.tmpdir=/opt/apache-tomcat-5.5.26/temp org.apache.catalina.startup.Bootstrap start
>  		 	   		  

It may be good to mention /why/ you want to have it loaded first.

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


RE: how/where to put the application patch on tomcat ?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Fang Zhu [mailto:zhufang68@hotmail.com] 
> Subject: how/where to put the application patch on tomcat ?

> how/where to put appPatch.jar to the tomcat, so tomcat 
> can load this appPatch.jar first, before those jars under
> /WEB-INF/lib/*.jar ?

If this is a patch to the application classes, why not just replace the classes in the original jar with the new ones?  Why do you want to do things the hard way?

> according to the document, we can specify the 
> -Xbootclasspath/p appPatch.jar

Unless you're modifying the JRE itself, don't ever, ever do that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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