wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
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.
 
 
subject: Is there any way to see the status whether web.xml is loaded successfully or not?