tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #215 has been filed.
Date Thu, 05 Oct 2000 00:45:22 GMT
Bug report #215 has just been filed.

You can view the report at the following URL:


REPORT #215 Details.

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: serious
Confidence: public
   Release: 3.1
   JVM Release: 1.1.8
   Operating System: WinNT
   OS Release: 4.0
   Platform: any

When using a tag library jar, directory not created in work area (Windows only)

Suppose you have a tag library directive like this: 
@taglib uri="/WEB-INF/lib/MyTags.jar" prefix="me" <P>

When TagLibraryInfoImpl attempts to copy the jar file to
its work directory, it fails.  Because the uri is specified
with '/', new File(uri) does not work as expected on Windows.

What ends up happening is that it tries to copy() the
jar to a file called something like: C:\webserver\temp\/WEB-INF/lib/MyTags.jar <P>

I suggest adding some code somewhere shortly after <BR>
if (!uriIn.startsWith("/")) <BR>
which does something like uriIn.replace('/',File.separatorChar);

View raw message