Mark Thomas wrote:
What I really want to do is debug my way through it. Fortunately Novell offer a 60-day demo of NetWare so I am just waiting for the install to finish - three cheers for Novell and VMWare :)

Found it. Test case was slightly wrong. Try the test case below. You should see a difference between Windows and NetWare.

This does indeed look like a JVM bug that has been exposed by stricter checking in the newer versions of Ant.

Options for a work-around are:
- Try a later JVM. If the test case below works - you should be OK.
- Use an older version of Ant. Ant was upgraded to keep up to date rather than for a specific big fix so again, you should be OK.
- Patch Tomcat. You'll need to add a few getCanonicalPath() calls.

We could patch Tomcat but generally I am against patching to work around someone else's bug unless we absolutely have to.

As an aside, the Tomcat 4 install with NetWare 6.5 SP7 is a complete mess. There are multiple versions of the same libraries present and if you try enabling the http connector it fails with a NoSuchMethod exception. A little digging showed that the connector jars are from multiple versions of Tomcat 4 and are not compatible with each other.

If you do want to use Tomcat on NetWare then you will probably need to install a fresh version from Apache rather than trying to use the NetWare one.

Cheers,

Mark

package org.apache.markt;

import java.io.File;
import java.io.IOException;
import java.net.URL;

public class NetWareTest {

    public static void main(String[] args) throws IOException {
        File testDir1 = new File(".");
        URL url = testDir1.toURL();
        File testDir2 = new File(url.getFile());

        System.out.println(testDir1.toString());
        System.out.println(url.toString());
        System.out.println(url.getFile().toString());
        System.out.println(testDir2.toString());
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to