You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/11/14 08:10:17 UTC
DO NOT REPLY [Bug 14537] New: -
PATCH: Fix for NPE with JSPC and tag library references
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: tomcat-dev@jakarta.apache.org
ReportedBy: petteri.stenius@ubisecure.com
CC: petteri.stenius@ubisecure.com
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>