wood burning stoves 2.0*
The moose likes Servlets and the fly likes Error in web.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error in web.xml file" Watch "Error in web.xml file" New topic
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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error in web.xml file
 
Similar Threads
Problem with FORM authentication method
security web application
What Is Wrong With My web.xml File (Struts)
weblogic 9- authentication
run the structs program