users@glassfish.java.net

GF v3 complains about "no valid components" during deployment

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Mar 2010 14:59:38 PDT

Hello:

I have a web application that runs on Tomcat and WebLogicServer. I used the "deploy /path/file.war" in asadmin and saw the following complain:
com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while deploying the app : java.lang.IllegalArgumentException: Application [MyApplication] contains no valid components

Here is the application.xml:
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
             version="5" xmlns="http://java.sun.com/xml/ns/javaee">
  <display-name>MyApplication</display-name>
  <module>
    <web>
      <web-uri>app.war</web-uri>
      <context-root>app</context-root>
    </web>
  </module>
</application>

What might go wrong?

Thanks.
[Message sent by forum member 'user2010' (jijun.wang_at_oracle.com)]

http://forums.java.net/jive/thread.jspa?messageID=392242