wood burning stoves 2.0*
The moose likes Struts and the fly likes struts 2 public doctype when url is down error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 public doctype when url is down error" Watch "struts 2 public doctype when url is down error" New topic
Author

struts 2 public doctype when url is down error

Marc Heruela
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
Hi guys,

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


-marckun
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 public doctype when url is down error