[jboss-user] [Installation, Configuration & DEPLOYMENT] - [Deployment] "no META-INF/application.xml found" - Exploded

ienvyou do-not-reply at jboss.com
Mon Nov 3 00:11:43 EST 2008


There is a problem when I am deploying a exploded EAR on outside of /server/default/deploy directory.

I also tried to find similar issue on this forum, but I think there is no correct answer about this.

My current environment is below:
Red Hat Enterprise Linux 
JDK 1.5.0_14
JBoss 4.2.3

Target ear structure is,
EarContent.ear
  - hello-web.war(exploded)
     - **.jsp
     - WEB-INF
          - classes
          - lib
          - web.xml
  - META-INF
     - application.xml

jboss-service.xml URLs value 
      <attribute name="URLs">
  |          deploy/,/home/jboss/applications/EarContent.ear
  |       </attribute>

application.xml 
<?xml version="1.0" encoding="UTF-8"?>
  | <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
  |         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
  | 
  |   <display-name>sample ear</display-name>
  | 
  |   <module>
  |     <web>
  |       <web-uri>hello-web.war</web-uri>
  |       <context-root>/hello</context-root>
  |     </web>
  |   </module>
  | </application>
  | 

anonymous wrote : 
  | 13:50:00,077 ERROR [MainDeployer] Could not initialise deployment: file:/home/jboss/applications/EarContent.ear
  | org.jboss.deployment.DeploymentException: No META-INF/application.xml found
  |         at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146)

I correctly placed META-INF/application.xml  under EarContent.ear directory

BTW, I don't know why it works under the /deploy folder.

Does it have a restriction unless directory is $server/default/deploy? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186282#4186282

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186282



More information about the jboss-user mailing list