quality@glassfish.java.net

Re: Error while deploying WAR using admin console

From: Jose Noheda <jose.noheda_at_gmail.com>
Date: Sat, 13 Sep 2008 18:37:28 +0200

On Sat, Sep 13, 2008 at 5:56 PM, Tim Quinn <Timothy.Quinn_at_sun.com> wrote:

> Hi, Jose.
>
> I don't know much at all about Dojo, but from their download web page<http://dojotoolkit.org/downloads>I found this:
>
> 1. Extract files from archive locally or on web server
> 2. Browse to dojo/tests/runTests.html or dijit/themes/themeTester.html
> to see Dojo in action
> 3. Include <script type="text/javascript" src="dojo/dojo.js"> in your
> own page and you're on your way
>
> Item 3 suggests to me that Dojo itself is not a web app but is a set of
> functionality ready to be included in and used from a web app.
>

No, dojo is a javascript library. Just static content.


>
> Have you seen information somewhere else that says something else?
>
> By the way, the GlassFish web container currently recognizes an app as a
> web app if:
>
> 1. it contains a WEB-INF/web.xml file, a WEB-INF/classes directory, or a
> WEB-INF/lib directory; OR
> 2. it contains a .jsp file anywhere
>

That could be it because it does not contain any of those. Just js, css,
images and html files. Not sure why Glassfish asks for those though. A war
file could be considered a web app I guess. Tomorrow I'll test adding those
empty dirs


>
> Other than that the web container does not recognize the app as a web app.
>
>
> Thanks.
>
> - Tim
>
>
> Jose Noheda wrote:
>
> Hi,
>
> I tried this ant task:
>
> <target name="dojo" description="--> Downloads and packages dojo">
> <get src="
> http://download.dojotoolkit.org/release-1.2.0b1/dojo-release-1.2.0b1-src.tar.gz"
> dest="dojo-1.2.tar.gz" verbose="true" usetimestamp="true" />
> <untar src="dojo-1.2.tar.gz" dest="dojo" compression="gzip" />
> <war destfile="dojo/dojo-1.2.war" needxmlfile="false"
> basedir="dojo/dojo-release-1.2.0b1-src/" level="9" />
> </target>
>
> which should build a valid WAR file without a web.xml. I tried to deploy
> the generated WAR using the admin console and it fails with:
>
> GRAVE: Module type not recognized
>
> Can someone confirm this is a bug? Or the WAR is not well formed?
>
> Regards
>
>
>