-
Support Patch
-
Resolution: Done
-
Major
-
EAP_EWP 5.2.0
-
None
-
git clone git+ssh://git.app.eng.bos.redhat.com/srv/git/jbossas/jboss-vfs.git; cd jboss-vfs; git checkout 2.2.2.GA
-
-
NEW
If a jar that does not contain directory entries (perhaps it was created with zip -D or --no-dir-entries) is reinitialized by VFS and an attempt is made to access a directory, an exception is thrown:
java.lang.RuntimeException: Failed to initialize ZipWrapper: /apps/barc-middleware/applications/jboss-as/servers/myserver/deployers/jbossws.deployer/spring-core.jar/META-INF/
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getZipSource(ZipEntryContext.java:286)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:638)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:786)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChildren(ZipEntryContext.java:858)
at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:337)
at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:307)
at org.jboss.virtual.VFS.visit(VFS.java:468)
at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:448)
This is often seen instigated by classpath scanning facelets code in conjunction with installation of JBossWS-CXF in EAP 5.1.2. JBossWS-CXF contains spring-core.jar and asm.jar, neither of which contain directory entries. If using the EAP Admin Console, the login page may seem corrupted, and the server log may contain an exception similar to above.
The unit test for this issue is in ./test/java/org/jboss/test/virtual/test/ScanMetaInfTestCase.java
- is blocked by
-
JBVFS-184 Jars not containing directory entries are not properly reinitialized
- Resolved
- is related to
-
JBPAPP-10642 Jars not containing directory entries not properly reinitialized by VFS
- Resolved