• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts 2 public doctype when url is down error

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic