aspose file tools
The moose likes Tomcat and the fly likes Is there any way to see the status whether web.xml is loaded successfully or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Is there any way to see the status whether web.xml is loaded successfully or not?" Watch "Is there any way to see the status whether web.xml is loaded successfully or not?" New topic
Author

Is there any way to see the status whether web.xml is loaded successfully or not?

arul micheal
Greenhorn

Joined: Jul 04, 2007
Posts: 9
Hi friends,

Is there any way to see the status whether web.xml is loaded successfully or not?

I have created a small application and configured the required information in web.xml. The problem was that web.xml was not loaded. Because i made some mistakes in xml file. later I found those issues by just seeing line by line in web.xml. For small applicatin, we could do this way..

Suppose if i have big application and bulk information in web.xml, how can i see whether i have done mistakes? .. it will be horrible to see line by line.

is there any special log file in tomcat or other server?


Does anyone say about it?


Thanks
Aruraj
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"web.xml" is your deployment descriptor; it doesn't get 'loaded'.
If there is one in your WEB-INF directory Tomcat will attempt to parse it.

If it fails, Tomcat will not deploy your application and will whine loudly to your logs (look in TOMCAT_INSTALL/logs).

If your app is running, they it was parsed successfully.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Also, web.xml, like any proper xml file, can be validated with any XML validator. I think several people in this forum have used XMLSpy to track down issues in theirs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any way to see the status whether web.xml is loaded successfully or not?
 
Similar Threads
configuring web application
IBM Exam 157 - Questions and Answers (Sample Exam)
157 Question Help and Resourses
Difference between application and message-resources
ibm websphere test 157 for websphere studio application developer 4.0.3 for windows