DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14537>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14537

PATCH: Fix for NPE with JSPC and tag library references

           Summary: PATCH: Fix for NPE with JSPC and tag library references
           Product: Tomcat 4
           Version: 4.1.12
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


This patch fixes a NullPointerException error with JSPC compiling JSP files 
with tag library references.

Regards,
Petteri Stenius

--- 
C:\Projects\jasper\src\share\org\apache\jasper\compiler\TagLibraryInfoImpl.java
.bak    Mon Sep 23 10:23:16 2002
+++ 
C:\Projects\jasper\src\share\org\apache\jasper\compiler\TagLibraryInfoImpl.java
        Thu Nov 14 08:48:06 2002
@@ -189,10 +189,6 @@
            InputStream stream = null;
            try {
                 String path = location[0] ;
-                if(ctxt.getClassLoader() != null &&
-                   URLClassLoader.class.equals(ctxt.getClassLoader().getClass
())
-                       && path.startsWith("/"))
-                   path = path.substring(1,path.length()) ;
                 url = ctxt.getResource(path);
                 if (url == null) return;
                url = new URL("jar:" + url.toString() + "!/");
@@ -211,7 +207,7 @@
            } catch (Exception ex) {
                Constants.message(
                     "jsp.error.taglib.jarFileException",
-                   new Object[] {url.toString(), ex.getMessage()},
+                   new Object[] {path, ex.getMessage()},
                    Logger.ERROR);
                if (stream != null) {
                    try {

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>

Reply via email to