[ 
http://jira.codehaus.org/browse/MWAR-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89272
 ] 

lin sun commented on MWAR-30:
-----------------------------

Sorry, hit enter accidentally a min ago.

Actually, with Java EE5, web.xml is optional. For example, here is a link to 
Java EE5 intro:
b
http://java.sun.com/developer/technicalArticles/J2EE/intro_ee5/

and it says:

For example, a simple web application that provides a web service and an index 
page that describes the web service might contain only the following files:

    * index.jsp
    * image/logo.gif
    * WEB-INF/classes/MyWebService.class

No web.xml, webservices.xml, or Java API for XML-based RPC (JAX-RPC) files are 
required. 

It would be great to implement this feature for everyone who uses maven to 
build war file for this new optional web.xml feature in Java EE 5.  Thanks.  Lin

> I can't build a war-file without a web.xml.
> -------------------------------------------
>
>                 Key: MWAR-30
>                 URL: http://jira.codehaus.org/browse/MWAR-30
>             Project: Maven 2.x War Plugin
>          Issue Type: Improvement
>            Reporter: Christoffer Hammarström
>
> I have a small webapp with a small number of jsps, to overlay on a larger 
> webapp.
> The larger webapp already has a web.xml and the small one doesn't need one.
> I can't build a war of the small webapp, because the war-plugin requires a 
> web.xml.
> I realise that a war-file without a web.xml might not be considered a comple 
> war-file, and i only need it to unzip on top of the larger webapp.
> Maybe packaging the small webapp in a zip would be better?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to