Before I mention ant, were there any further error messages indicating the
line, section, or attribute causing your web.xml parsing problem?  Are you
sure you are using the appropriate container?  I.E. Your web.xml file states
a 2.3 servlet config so are you sure the container you are using supports
it?

=-=-=-=-=-=-=-=-=-=-=-=-

Now, briefly about maven: it is a build tool often compared to "ant" but
with considerably better methods for managing versions and the various
dependencies (i.e. jars use by) for each version you build.  Many Apache
projects are now built using maven instead of ant.  Say you build Struts 1.1
and it uses the commons validator v1.0 but the same maven build file can
explain in a few small lines that building Struts 1.2.9 might require the
validator v1.1.3 and handle those dependencies and downloads automatically
during the compile, test, and war packing stages.

I have read that there are maven plugins to:

a) automatically download and setup a directory structure containing
everything you need to develop a Struts project.  This is often called an
archetype
b) automatically go through a struts-config.xml file when building a .war
file to ensure everything matches up:
        (At least for a Struts v1.0 project but there are probably updates for
later versions)

        Specific validations performed are:

        1. Must pass validation as a 'standard' war file
        2. File has a struts configuration file
        3. <form-bean>s must have a valid type and className that exist in the 
war
        4. <action>s must have a valid type, className that exist in the war
        5. <action> names must refer to a <form-bean> in the struts 
configuration
        6. <action> scope must be either request or session
        7. <action> unknown and validate must be true or false
        8. <global-forwards> type must be a class in the war
        9. <forward> redirect must be true or false
        10. <forward> path must refer to either a file in the war (e.g. a jsp), 
or
an action defined in the struts configuration

Amazing, isn't it?

For more information see: http://Maven.apache.org or email me directly so we
don't change the topic on this thread - I don't want to be a 'thread thief.'

Regards,
David

-----Original Message-----
From: A. Lotfi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 10:49 AM
To: Struts Users Mailing List
Subject: RE: The content of element type "web-app" must match

Hi, thank you David for your time and helps, but what is maven war package ?
Thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to