Glassfish 3.1 部署错误
我正在 Glasfish 应用程序服务器上开发 JavaEE 应用程序。 我正在开发,所以我不断部署/取消部署应用程序。
一切都工作得很好,直到几个小时前,当我在部署时遇到此错误时:
error in opening zip file -- file zip non valid:
服务器日志
com.sun.enterprise.deployment.deploy.shared.InputJarArchive
cannot be cast to
com.sun.enterprise.deploy.shared.FileArchive
没有报告任何其他内容,id 确实在网上进行了搜索,但似乎没有人遇到同样的问题。
我的 war 文件不包含任何 zip 文件!
有人知道如何解决这个问题吗?
谢谢你在安德瓦斯
I'm developing a JavaEE application on Glasfish Application Server.
I'm developing so I'm continously deployig/undeploying the application.
Everything has worked great until few hours ago when I got this error while deploying:
error in opening zip file -- file zip non valid:
and
com.sun.enterprise.deployment.deploy.shared.InputJarArchive
cannot be cast to
com.sun.enterprise.deploy.shared.FileArchive
the server log doesn't report anything else, id did search on the net but seems noone has encoured on the same problem.
My war file doesn't contains any zip file!
Has anyone an idea on how to solve this?
Thank you in andvace
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是解决方案:
重命名战争文件
看起来很神奇,但之后一切又恢复了!
可能某些早期部署失败,留下了一些对损坏的应用程序的引用。无论如何,这只是一个猜测
Here is the solution:
RENAME WAR FILE
seems amazing but after that everything worked again!
Probably some earlier deploy failed leaving some references to the broken application. This is just a guess anyway
当您在部署文件夹中创建了同名文件时,就会发生这种情况。您清理该文件并重新部署它就会起作用。您可能应该在重新部署之前重新启动。
This happens when you have a file with the same name created int the deploy folder. You cleanup that file and redeploy it will work. You should probably do a restart before redeploying.