title: "No context factory" exception thrown when using JBoss' VFS
body: <p>I am trying to get a ressource contained in a JAR file . This Jar is used as a dependancy of a web projet MyWebApp.  I am using JBOSS 5.1.0</p>
  
  <p>The code in the jar file is :</p>
  
  <pre><code>// MyClass Class
  // part of myFunction
  
  ...
  Enumeration&lt;URL&gt; configEnum;
  configEnum = this.getClass().getClassLoader().getResources("MyFile");
  while (configEnum.hasMoreElements()) {
      URL configURL = configEnum.nextElement();
      VirtualFile file = VFS.getRoot(configURL);
      ...
  </code></pre>
  
  <p>but when I import this jar in a web application (myWebApp) and I use this function, I get an Exception :</p>
  
  <pre><code>java.io.IOException: No context factory for vfszip:/...PATH.../MyWebApp.war/WEB-INF/lib/MyJar.jar/my/resources/path/
      at org.jboss.virtual.VFS.getVFS(VFS.java:129)
  </code></pre>
  
  <p>If someone knows how to fix that it would be very usefull.</p>