I may sound stupid with my question but please bear with me, recently we have this issue with our various projects when we're starting them. Probability allowed it that when we started our projects the URL defined in our DOCTYPE definition could not be accessed. Specifically: (I know the chance of this issue occurring is pretty slim but it happened to us)
The above snippet can be found in our struts2-jquery-plugin-3.0.2.jar/struts-plugin.xml. The error is when the url specified above is unreachable. Although we can ping the struts.apache.org, we can not access the struts-2.1.7.dtd resource, it generates a Socket Exception and trying to request it using our browser yields the same result (NONE). Further, I am pretty sure we have internet connection because I can visit other sites just fine, and I'm also pretty sure that the project is working because we just restarted the server hence it's already up and running. The problem is gone after waiting for 10 minutes. But my boss wants me to workaround this issue to prevent the same situation from happening again. Just want to ask if there's a way aside from modifying the DOCTYPE into SYSTEM and downloading the said DTD place it in our local. I dont want risking modifying the jars.
A sincere response is much appreciated. Modifying the jar is my last choice. Thanks -marcdkun
Yes, it happens when the server is down you need to download the tld file and configure it in web.xml file. that's it.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.