| Author |
Error in web.xml file
|
Justin Fluff
Greenhorn
Joined: Apr 03, 2005
Posts: 2
|
|
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
Joined: Feb 10, 2005
Posts: 85
|
|
|
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).
|
 |
 |
|
|
subject: Error in web.xml file
|
|
|