File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2 public doctype when url is down error

 
Marc Heruela
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic