• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in web.xml file

 
Justin Fluff
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have following code in my web.xml file:



but when I validate it i get the following error:

The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".


Any suggestion? How can I correct it.
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have two login-config elements. You can include 0 or 1 login-config element in web-app element. Double-check the DTD for it. login-config? means optional (0 or 1).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic