Hello Experts,
We all know that web.xml and application.xml have
code:
--------------------------------------------------------------------------------
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
--------------------------------------------------------------------------------
and
code:
--------------------------------------------------------------------------------
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD
J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
--------------------------------------------------------------------------------
.. respectively.
They reference the DTDs on java.sun.com. So, my application depends on the DTD's on an external site. How do I maintain fail over as I don't want my applications to fail incase the DTDs are temporarily down at java.sun.com.
I know that I can have the DTDs copied and put as inline DTDs in my deployment descriptors, but I was thinking about hosting these DTDs on my company's servers and making my deployment descriptors point to them. But, my deployment fails for some reason. Is there more configuration to do in this regard?
In my investigation I read about Catalog files etc. Is that the way to go? If yes, how is it done?
Any pointers appreciated!
Thanks in advance,
Kiran