3 Replies Latest reply on Dec 19, 2006 3:01 PM by Bill Burke

    Inconsistent handling of vfs* urls by VFS

    Scott Stark Master

      You cannot take a VirtualFile and use its URL to obtain a VirtualFile currently. See the
      vfs project src/test/java/org/jboss/test/virtual/test/FileVFSUnitTestCase.testFindClassesInFilesOnlyWar test where such a usage fails with:

      java.io.IOException: No context factory for vfsfile:/home/svn/JBossMC/vfs/target/classes/vfs/test/filesonly.war/WEB-INF/classes
       at org.jboss.virtual.VFS.getVFS(VFS.java:129)
       at org.jboss.test.virtual.support.ClassPathIterator.<init>(ClassPathIterator.java:78)
       at org.jboss.test.virtual.test.FileVFSUnitTestCase.testFindClassesInFilesOnlyWar(FileVFSUnitTestCase.java:356)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)