dev@glassfish.java.net

Re: what will the web sniffer recognize?

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Thu, 28 Aug 2008 11:36:50 -0500

Peter Williams wrote:
> What are the rules for the web sniffer to recognize a web app?
As written today the web sniffer reports that it handles the app if:

1. the archive or directory contains:
   WEB-INF/web.xml or
   WEB-INF/classes directory or
   WEB-INF/lib directory,

or if

2. the archive or directory contains a file that ends with ".jsp"

- Tim
>
> I find that the http api will deploy pretty much any folder (and
> classify it as a web app). For example, if you pass a command like this:
> http://localhost:4848/__asadmin/deploy?path=/tmp/junk/morejunk?name=lots_of_junk
>
>
> where /tmp/junk/morejunk is just some random folder full of folders
> and other stuff, but no JSP or xml files of any kind, nor folders
> named src, web, or WEB-INF.
>
> Bug or feature?
>
> I would have expected this deploy to fail (or at least, not be
> recognized as a web app).
>
> -Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>