Error message "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." in the agent.log file when deploying exploded WAR file using JBoss ON

Solution Unverified - Updated -

Issue

  • When I tried to deploy an exploded WAR file using JBoss ON, I'm getting the following error:
ERROR [org.jboss.as.server.deployment.scanner] (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 /my/path/jboss-eap-6.0.1/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.

What am I doing wrong?

Environment

  • JBoss Operations Network (JON) 3.1.2
  • JBoss Enterprise Application Platform (EAP) 6.x - standalone mode
  • WAR file is deployed as exploded file - so the recipe file contains:
<rhq:bundle name="sample" version="1.0" description="sample war bundle">
    <rhq:deployment-unit name="appserver" preinstallTarget="preinstall" postinstallTarget="postinstall" manageRootDir="false">
        <rhq:archive name="mySample.war" exploded="false"/>
    </rhq:deployment-unit>
</rhq:bundle>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content