Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts-config parsing error. UnknownHostException

 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I am using Tomcat 5.5
And struts 1.2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic