无法部署,因为文件夹不在名称以 .war 结尾的目录中。(JBoss)

无法部署,因为文件夹不在名称以 .war 结尾的目录中。(JBoss)

我使用 Maven2Eclipse 创建了一个默认的 JSF 项目。

当我尝试启动 home.xhtml 时,JBoss 返回以下错误消息:

    (DeploymentScanner-threads - 1) JBAS015010: The deployment scanner found a directory named META-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war.
This is likely the result of unzipping an archive directly inside the C:\Users\Foo\jboss-as-7.1.0.Final\standalone\deployments directory, which is a user error.
The META-INF directory will not be scanned for deployments, but it is possible that the scanner mayfind other files from the unzipped archive and attempt to deploy them, leading to errors.

09:43:57,387 ERROR [org.jboss.as.server.deployment.scanner] 
(DeploymentScanner-threads - 1) JBAS015010: The deployment scanner found a directory named WEB-INF that was not inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. 
This is likely the result of unzipping an archive directly inside the C:\Users\Foo\jboss-as-7.1.0.Final\standalone\deployments directory, which is a user error. 
The WEB-INF directory will not be scanned for deployments, but it is possible that the scanner mayfind other files from the unzipped archive and attempt to deploy them, leading to errors.

我尝试用这个替换我编辑的 standalone.xml

<deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir"
   path="deployments" auto-deploy-zipped="true" auto-deploy-exploded="false"/>

该消息仍然出现。

当我部署一个简单的 html 项目时,我没有遇到这个问题。

相关内容