[jboss-dev] How to fix vfs?
Adrian Brock
abrock at redhat.com
Tue Feb 17 11:33:13 EST 2009
On Tue, 2009-02-17 at 17:25 +0100, Adrian Brock wrote:
> On Tue, 2009-02-17 at 17:31 +0200, Dimitris Andreadis wrote:
> > https://jira.jboss.org/jira/browse/JBCTS-900
> >
>
> This is broken because of ...
>
> On Tue, 2009-02-17 at 16:53 +0100, Ales Justin wrote:
> > e.g. with some TCK tests and (6) it was such a small detail as '/' at
> > the end of URI.
<snip/>
> This change
> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/vfs/trunk/src/main/java/org/jboss/virtual/VFSUtils.java?r1=83684&r2=83683&pathrev=83684
> and its current usage within the VFS make all that for nothing.
>
It was easy to figure out the problem was due to broken vfs paths
by looking at the error message and then working back through the
stacktrace:
java.io.IOException: Child not found /lib/common.jar/
<snip/>
at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.findHandler(DefaultVFSRegistry.java:107)
at
org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:81)
at
org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:119)
You can even see that adding the / wouldn't be valid if that path was
the URI/URL because from the previous log statement, it is not unpacked
and therefore not a directory.
"
Searching mapped entities in jar/par:
vfszip:snipped/ejb3_pkg_scope.jar/lib/common.jar
"
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Chief Scientist
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
More information about the jboss-development
mailing list