[jboss-dev-forums] [Design the new POJO MicroContainer] - Inconsistent handling of vfs* urls by VFS
scott.stark@jboss.org
do-not-reply at jboss.com
Tue Dec 19 14:40:47 EST 2006
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)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995104#3995104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995104
More information about the jboss-dev-forums
mailing list