tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Kujtan" <>
Subject RE: Patching a jar in a wepabb
Date Wed, 23 Nov 2011 18:09:22 GMT
That's possible, but I'd like to avoid having to play with the jars, I
need to retain the ability to revert any changes made to the base
install, I.e. If patch3 breaks it I want to go back to patch2. Being
able to just remove the patch jar from the folder is much simpler than
having to rebuild an entire new jar with only patches 1 and 2 included.
Same thing if a new patch comes along.

-----Original Message-----
From: Yuan [] 
Sent: Wednesday, November 23, 2011 12:58 PM
To: Tomcat Users List
Cc: <>
Subject: Re: Patching a jar in a wepabb

Can u compile all patches into one jar file?

On 2011-11-23, at 12:41 PM, "Andrew Kujtan" <> wrote:

> Hello Tomcat-users,
> I'm running Tomcat 7.0.20. My webapp uses several 3rd party jars  
> located
> in WEB-INF/lib and I need to apply a series of patches to one of the
> jars.  The patches are jar files that only have the modified class  
> files
> in it, so to apply it I need to add them to the classpath before the
> third party jar. I.e.
> Load patch3.jar, then patch2.jar, then patch1.jar, then 3rdparty.jar
> Reading the class loading docs it doesn't look like there is any
> guarantee as to the order they are loaded or any way to specify the
> order, is this correct?
> If not, is there some other built in mechanism to do this? or am I
> barking down the wrong tree altogether?
> As it stands,  I think I'm just going to have to extract the class  
> files
> from each of the patch jars and insert the structure into my
> WEB-INF/classes folder, as my understanding is that they are ahead of
> the lib folder in the classpath. Is this a viable alternative should  
> all
> other avenues fail?
> Regards,
> Andrew Kujtan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message