You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Evans <ds...@berndtgroup.net> on 2003/12/05 23:54:11 UTC
How to patch a class file
Hello,
I have a problem with tomcat and Ie 5.0 on a Mac. I have found the
answer to my problem here:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983
its says i should:
*******************************
The file to patch is
src/catalina/src/share/org/apache/catalina/util/CookieTools.java
Jay
jsissom@indiana.edu
--- CookieTools.java Thu Apr 4 20:35:47 2002
+++ CookieTools.fix Thu Apr 4 20:37:07 2002
@@ -166,7 +166,7 @@
// Secure
if (cookie.getSecure()) {
- buf.append (";Secure");
+ buf.append ("; Secure");
}
}
****************************
so i looked in my tomcat directory and i found:
/usr/java/jakarta-tomcat-4.0.4/server/lib/catalina.jar
when i "jar tf catalina.jar" i find:
org/apache/catalina/util/CookieTools.class
so how do make the change to the class file?
my assumption would be i download the source for my version of tomcat
(4.0.4) compile the CookieTools.java to Cookie Tools.class and then use
jar to update the CookieTools.class in the catalina.jar file.
Any help on this would be greatly appreciated.
dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to patch a class file
Posted by Tim Funk <fu...@joedog.org>.
The easy way is to
1) pull the source version:
(Branch tomcat_40_branch)
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/CookieTools.java?only_with_tag=tomcat_40_branch
2) Apply your patch
3) Compile. The lazy way is to have $CATALINA_HOME/server/lib and
$CATALINA_HOME/cmomon/lib in your compile classpath
4) Place the file in the $CATALINA_HOME/server/classes directory in the
appropriate dir structure. This dir has a higher classloader preference.
-Tim
David Evans wrote:
> Hello,
>
> I have a problem with tomcat and Ie 5.0 on a Mac. I have found the
> answer to my problem here:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983
>
> its says i should:
> *******************************
> The file to patch is
> src/catalina/src/share/org/apache/catalina/util/CookieTools.java
>
> Jay
> jsissom@indiana.edu
>
> --- CookieTools.java Thu Apr 4 20:35:47 2002
> +++ CookieTools.fix Thu Apr 4 20:37:07 2002
> @@ -166,7 +166,7 @@
>
> // Secure
> if (cookie.getSecure()) {
> - buf.append (";Secure");
> + buf.append ("; Secure");
> }
> }
>
> ****************************
>
> so i looked in my tomcat directory and i found:
> /usr/java/jakarta-tomcat-4.0.4/server/lib/catalina.jar
> when i "jar tf catalina.jar" i find:
> org/apache/catalina/util/CookieTools.class
>
> so how do make the change to the class file?
> my assumption would be i download the source for my version of tomcat
> (4.0.4) compile the CookieTools.java to Cookie Tools.class and then use
> jar to update the CookieTools.class in the catalina.jar file.
>
> Any help on this would be greatly appreciated.
>
> dave
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org