users@glassfish.java.net

Re: GF v3 complains about "no valid components" during deployment

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 16 Mar 2010 15:16:39 -0700

glassfish_at_javadesktop.org wrote:
> 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?
>

The application.xml descriptor is appropriate for EAR, not WAR files.

Jan

> Thanks.
> [Message sent by forum member 'user2010' (jijun.wang_at_oracle.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=392242
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>