• 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-config parsing error. UnknownHostException

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I think this must be one of the most common queries. "My struts application doesn't load when my computer's not connected to the internet." After pouring over a whole bunch of such mails, I am still stuck. None of the suggested solutions have worked so far.
My struts application STILL doesn't load if my computer isn't connected to the net! I can always point to an absolute location for the struts DTD file, but that isn't exactly a scaleable option.

So as a last resort, I hope someone here can help me out.

Here's the header in my struts-config:


I have the struts-config_1_2.dtd present in the struts.jar file (under the package structure --> org\apache\struts\resources)

AS long my system is connected to the net, there aren't any problems, but take the net out of the picture and zzzaaapp the server can't load the web app anymore. Keeps spitting out UnknownHostException : cannot connect to host struts.apache
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What server are you running? Most systems these days have a lookaside facility that will do a local catalog search before attempting the Internet. The other way isn't just a pain when you're off the net, it also puts a big delay in whenever the DTD has to be checked.
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Tomcat 5.5
And struts 1.2
 
reply
    Bookmark Topic Watch Topic
  • New Topic