You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/10/05 02:45:22 UTC

BugRat Report #215 has been filed.

Bug report #215 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/215>

REPORT #215 Details.

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

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

Description:
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);