File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in web.xml file