ASF Bugzilla – Attachment 22478 Details for
Bug 45403
Tomcat does not reload application
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
With this patch, "Tomcat" does not load the jar file of Symbolic Link, when "allowLinking" is "false".
WebappClassLoader.patch (text/plain), 1.36 KB, created by
kawasima
on 2008-08-24 23:53:51 UTC
(
hide
)
Description:
With this patch, "Tomcat" does not load the jar file of Symbolic Link, when "allowLinking" is "false".
Filename:
MIME Type:
Creator:
kawasima
Created:
2008-08-24 23:53:51 UTC
Size:
1.36 KB
patch
obsolete
>--- WebappClassLoader.java Tue Jul 22 09:01:28 2008 >+++ WebappClassLoader.java.new Mon Aug 25 15:00:55 2008 >@@ -636,21 +636,6 @@ > > int i; > >- if ((jarPath != null) && (jar.startsWith(jarPath))) { >- >- String jarName = jar.substring(jarPath.length()); >- while (jarName.startsWith("/")) >- jarName = jarName.substring(1); >- >- String[] result = new String[jarNames.length + 1]; >- for (i = 0; i < jarNames.length; i++) { >- result[i] = jarNames[i]; >- } >- result[jarNames.length] = jarName; >- jarNames = result; >- >- } >- > try { > > // Register the JAR for tracking >@@ -675,6 +660,22 @@ > > } catch (NamingException e) { > // Ignore >+ return; >+ } >+ >+ if ((jarPath != null) && (jar.startsWith(jarPath))) { >+ >+ String jarName = jar.substring(jarPath.length()); >+ while (jarName.startsWith("/")) >+ jarName = jarName.substring(1); >+ >+ String[] result = new String[jarNames.length + 1]; >+ for (i = 0; i < jarNames.length; i++) { >+ result[i] = jarNames[i]; >+ } >+ result[jarNames.length] = jarName; >+ jarNames = result; >+ > } > > // If the JAR currently contains invalid classes, don't actually use it
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45403
:
22478