[jboss-dev] How to fix vfs?
Shelly McGowan
smcgowan at redhat.com
Tue Feb 17 13:01:44 EST 2009
Ales,
The packaging of this .ear is testing the following assertion defined in the Persistence Specification:
One or more jar files may be specified using the jar-file elements instead of, or in addition to the mapping files specified in the mapping-files elements. If specified, these JAR files will be searched for managed persistence classes and any mapping metadata annotations found on them will be processed or they will be mapped using the mapping annotation defaults defined by this specification. **Such JAR files are specified relative to the root of the persistence unit.**
persistence.xml:
<jar-file>lib/common.jar</jar-file>
The persistence unit is at the root of the .ear.
Shelly
----- Original Message -----
From: "Ales Justin" <ales.justin at gmail.com>
To: "JBoss.org development list" <jboss-development at lists.jboss.org>
Sent: Tuesday, February 17, 2009 11:56:36 AM GMT -05:00 US/Canada Eastern
Subject: Re: [jboss-dev] How to fix vfs?
>> 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
> "
I don't think this is the problem.
"vfszip:snipped/ejb3_pkg_scope.jar/lib/common.jar" is broken in the
first place.
lib/common.jar is in .ear not .jar.
_______________________________________________
jboss-development mailing list
jboss-development at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list