I already tried that. My Eclipse Callisto (3.2 stable) parsed it and found no typing errors. I quickly checked the order of the elements and they are in the correct order, according to the BEA docs (I always reference them because they come up first on my searches for some reason) at http://e-docs.bea.com/wls/docs61/webapp/web_xml.html. The only thing that seemed different from my own web.xml was I have a space between the encoding="..." and the end '?>' characters in the first line '<?xml...' Everything else was in order, parsed correctly, DTD's correctly using the Eclipse web tools. I didn't bother trying it out because I don't have those (and there were a lot in there) servlets.
I recommend Lofti review all log files for the web server to obtain more details on the error. I believe Tomcat gives me more information on errors like that (the element causing the problem) so I expect Netbeans would as well if you know where to look. Perhaps, like Eclipse, it has a personal log file outside of console logging? I have to leave but maybe if there is no solution when I return I'll see if I can drop it in my Maven build and see if it logs any errors - I think it might have error out before on the build if something wasn't correct in my web.xml during the war packaging stage. It might be worth a try later. Regards, David -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:22 AM To: user@struts.apache.org Subject: RE: The content of element type "web-app" must match A. Lotfi asked: > Hi, I have a web.xml , I am using Netbeans, I got this error : > The content of element type "web-app" must match > > Here is my web.xml , I will appreciate if you can help me : > > <?xml version="1.0" encoding="UTF-8"?> [snip] Generally that means that something is out of order or misspelled. It's a painstaking process to check the order of all the elements, but if that's all the error message gives you, that's what you'll have to do. I remember dealing with that with WebLogic 5.1, but it gave the line number where the XML parser failed. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]