[jboss-user] [Microcontainer] - Classloading vs. VFS

jesper.pedersen do-not-reply at jboss.com
Wed May 27 15:48:42 EDT 2009


I get the following trace:


  | Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
  |         at java.net.URL.<init>(URL.java:574)
  |         at java.net.URL.<init>(URL.java:464)
  |         at java.net.URL.<init>(URL.java:413)
  |         at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:77)
  |         at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:93)
  |         at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:322)
  |         at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:260)
  |         at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:207)
  |         at org.jboss.virtual.VFS.getRoot(VFS.java:292)
  |         at org.jboss.virtual.VFS.createNewRoot(VFS.java:186)
  |         at org.jboss.virtual.VFS.getRoot(VFS.java:201)
  |         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getVirtualFile(VFSClassLoaderPolicyModule.java:196)
  |         at org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:170)
  |         ... 41 more
  | 

when I try to install a bean that calls VFS.init().

This is the first bean installed into the server bootstrap - my Main only setup bootstrap-0.1.2 with a URLCL which contains all the dependencies (VFS 2.2.0.M4).

If I don't declare a  I get a NoClassDefFoundError which points in the direction of bootstrap.

*But* shouldn't VFS make sure that the protocol handler is installed before doing anything with it ?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233734#4233734

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233734



More information about the jboss-user mailing list