Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
arul micheal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic