Jars for Seam API:部署期间的FileNotFoundException

时间:2011-07-31 10:28:03

标签: jsf seam jboss6.x

我在部署WAR捆绑接缝,seam-ui和seam-debug时遇到了问题。当我从eclipse 3.8或Win7 x64下的run.bat启动JBossAS 6 Final时,我得到以下异常:

12:17:06,383 WARN  [URLScanner] could not read entries: java.io.FileNotFoundException: C:\jboss-6.0.0.Final\server\default\deploy\aboutme-0.0.1-SNAPSHOT.war\WEB-INF\lib\jboss-seam-2.2.2.Final.jar ([The system could not find the path])
    at java.util.zip.ZipFile.open(Native Method) [:1.6.0_26]
    at java.util.zip.ZipFile.<init>(Unknown Source) [:1.6.0_26]
    at java.util.zip.ZipFile.<init>(Unknown Source) [:1.6.0_26]
    at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123) [:2.2.2.Final]
    at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107) [:2.2.2.Final]
    at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90) [:2.2.2.Final]
    at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [:2.2.2.Final]
    at org.jboss.seam.init.Initialization.create(Initialization.java:130) [:2.2.2.Final]
    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [:2.2.2.Final]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.0.0.Final]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.0.0.Final]
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]
    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]
    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]
    at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
    at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_26]
[...]

所有三个接缝罐。什么可能是JBossAS无法读取上述目录的原因?

在eclipse中,我检查了“部署为压缩存档”。 (没有该复选标记时出现相同的错误。)

任何建议表示赞赏。 最好的问候!

2 个答案:

答案 0 :(得分:2)

嗯,有点是的。关键是,它必须只与部署的存档一起使用。所以没有爆炸文件夹,遵循这种结构。但是,我按照存档的路径继续探索WEB-INF \ lib,然后,是的,我找到了罐子。

答案 1 :(得分:0)

您是否检查过路径C:\jboss-6.0.0.Final\server\default\deploy\aboutme-0.0.1-SNAPSHOT.war\WEB-INF\lib\jboss-seam-2.2.2.Final.jar是否确实包含此文件?