开发者

Could not read entries java.util.zip.ZipException: error in opening zip file

I'm having problems migrating from jboss 4.2.1 to jboss 5.1.0

This is the exception i got when I try to deploy my .ear file

    WARN  [Scanner] could not read entries
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:131)
    at java.util.zip.ZipFile.<init>(ZipFile.java:148)
    at org.jboss.seam.deployment.Scanner.handleArchive(Scanner.java:151)
    at org.jboss.seam.deployment.Scanner.scan(Scanner.java:132)
    at org.jboss.seam.deployment.NamespaceScanner.getPackages(NamespaceScanner.java:39)
    at org.jboss.seam.init.Initialization.addNamespaces(Initialization.java:787)
    at org.jboss.seam.init.Initialization.create(Initialization.java:85)
    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)

and so the error is larger than that.

It says is a WARN but it doesn't unzip the .ear/.war files and of course it doesn't deploy anything.

I've checked the f开发者_JAVA技巧ile isn't corrupt. Any help would be apreciated. Thanks & cheers


This is caused by spring's context:component-scan feature incompatibility with JBoss5 Virtual File System (VFS). There's a lib (called snowdrop, provided by JBoss) you can drop into the project that contains a VFS-enabled application context implementation.

You can find it here - http://www.jboss.org/snowdrop


Problem solved. It was a couple of libraries out of date of the seam framework. Apparently they changed some things from seam version for jboss4 to jboss5.

Just update seam libraries and thats all.

Thanks everybody for your interest. Hope my solution helps others Cheers

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜