[jboss-dev-forums] [Design of POJO Server] - Re: Facelets scanning for .taglib.xml is broken in trunk

alesj do-not-reply at jboss.com
Wed May 28 06:47:43 EDT 2008


"scott.stark at jboss.org" wrote : If JarFile supported a JarInputStream I would look at support a JarURLConnection from the handler, but you have to have a path to a file as far as I can see.
  | 
  | I would say hacking the facelets code to create patch Classpath to try to use a JarInputStream to find the taglib descriptiors is the best approach. There will be a patched facelets jars required, and we give back the patch.
  | 
I've hacked this sandbox env:
 - http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/deployer/facelets/test/FaceletsUnitTestCase.java

For the packed.jar case I don't see how are we gonna do that.
Since our BaseClassLoader.getResource("META-INF/") returns URL that points to VFS's SynthenticDirEntryHandler.
And this one currently doesn't know to do much:

  |    public InputStream openStream() throws IOException
  |    {
  |       throw new IOException("Directories cannot be opened");
  |    }
  | 

Any ideas on how to handle this still in no-VFS-aware way?

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

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



More information about the jboss-dev-forums mailing list