• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment descriptor "web.xml" is malformed.

 
saidi Bandi
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

iam getting this exception, when i am writing a login application.

please help me regarding this.

the error is

<Aug 7, 2008 3:36:16 PM GMT+05:30> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Aug 7, 2008 3:36:16 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "mydomain">
<Aug 7, 2008 3:36:22 PM GMT+05:30> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\user_projects\domains\mydomain\applications', Module: 'strutsdemo']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. [B]Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. [/B](line 2, column 221).>
<Aug 7, 2008 3:36:24 PM GMT+05:30> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\user_projects\domains\mydomain\applications', Module: 'xyz']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 2, column 221).>
Aug 7, 2008 3:36:25 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Aug 7, 2008 3:36:25 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Aug 7, 2008 3:36:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='com.yourcompany.struts.ApplicationResources', returnNull=true
Aug 7, 2008 3:36:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Aug 7, 2008 3:36:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Aug 7, 2008 3:36:27 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='com.yourcompany.struts.ApplicationResources', returnNull=true
<Aug 7, 2008 3:36:27 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Development Mode>
<Aug 7, 2008 3:36:27 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Aug 7, 2008 3:36:27 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>


thanks in advance.
 
Purnachander Rao Thatikonda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check all starting tags and ending tags
 
Purnachander Rao Thatikonda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Purnachander Rao Thatikonda wrote:check all starting tags and ending tags
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please put the web.xml here so that we can have a look at it.

If you are using any UNIX/linux box use "xmlwf web.xml" command to check the syntax correctness. In windows you can check it by opening it in IE, it should resolve without any issues or error.
If everything is fine check the tags in between web-app start and end for the app is correctly mentioned and closed.

Sample:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic