[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6962) java.util.zip.ZipException: error in opening zip file
Piotr Findeisen (JIRA)
noreply at atlassian.com
Thu May 10 10:57:09 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-6962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46598#comment-46598 ]
Piotr Findeisen commented on HHH-6962:
--------------------------------------
For me a workaround was to:
# set 'hibernate.archive.autodetection = false' in the persistence unit properties
** Note that this disables classpath scanning for entity classes. I can afford it as i do it "manually", i.e. delegate it to Spring application context. I have VFS support provided by Snowdrop's appCtx implementation.
# create {{orn.xml}} stub file and enlisting it in the PU mapping files
> java.util.zip.ZipException: error in opening zip file
> -----------------------------------------------------
>
> Key: HHH-6962
> URL: https://hibernate.onjira.com/browse/HHH-6962
> Project: Hibernate ORM
> Issue Type: Bug
> Components: entity-manager
> Affects Versions: 3.6.9
> Environment: hibernate 3.6.9, spring 3.0.7.RELEASE, jboss 5.1, java 1.6.0_30 (sun), debian 64 bit
> Reporter: Jakub Białek
> Priority: Minor
>
> After moving from hibernate 3.6.8 to 3.6.9 below stacktrace has appeared in logs when application is deployed:
> {code}
> WARN [org.hibernate.ejb.packaging.FileZippedJarVisitor] (HDScanner) Unable to find file (ignored): vfszip:/srv/jboss-5.1.0.GA/server/debugprfile/deploy/mywar.war/WEB-INF/lib/domain.jar/
> java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> at java.util.jar.JarFile.<init>(JarFile.java:135)
> at java.util.jar.JarFile.<init>(JarFile.java:72)
> at org.hibernate.ejb.packaging.FileZippedJarVisitor.doProcessElements(FileZippedJarVisitor.java:65)
> at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:146)
> at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192)
> at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:497)
> at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:851)
> at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:594)
> at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
> at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
> ......
> {code}
> Application deploys correctly but this error didn't appear in 3.6.8.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list