Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Problem in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem in web.xml" Watch "Problem in web.xml" New topic
Author

Problem in web.xml

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Here is my web.xml

and when i startup tomcat its showing some exception
The content of element type "web-app" must match "(icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)".
even the order on which the tags are written maps to the dtd spec???
acn any one help me out in this regard fast??
Thank you
(EDIT: I added code tags to make that xml indent properly)
[ November 25, 2003: Message edited by: Lasse Koskela ]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

What is the exception?


Groovy
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
The file named http://java.sun.com/j2ee/dtds/web-app_2_3.dtd
has been renamed to http://java.sun.com/dtd/web-app_2_3.dtd
in the most current version of the specification.
Please update your application to use the new name.
Shridhar Dhoopad
Greenhorn

Joined: Apr 16, 2000
Posts: 5
try changing the URL in the DOCTYPE to
http://java.sun.com/dtd/web-app_2_3.dtd
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
NO its not working even if i change that dtd loaction
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Shri,
According to our naming policy, your display name is missing something related to your family... You can repair it here.
Thanks.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in web.xml
 
Similar Threads
Error: dont execute actions
web.xml hard work
Sample web.xml.. may be useful for SCWCD Ranchers
Web.xml
ELEMENT init-param(param-name, param-value, description?