On Thu, 21 Jun 2001, Chad Johnston wrote:
> Craig,
>
> I took my project home to work on it last night. I have a small LAN at home
> that connects to the 'Net through a dialup on a file server. I was unable to
> get my Struts 1.0 application working without being dialed in to my ISP.
> Whenever I started up Tomcat without being connected to the 'Net, I would
> get the message that
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd" could not be
> located, and struts-config.xml would never be parsed. When I was connected,
> everything worked fine. The strange thing was, when I was connected to the
> 'Net, the messages would say that Struts was using the local copy of the
> DTD, but the check was still made.
>
Boy, that is strange. I was running Struts on my laptop (totally
disconnected from the net) during my JavaOne session that demo'd
Struts, and it worked fine.
> I don't know if I'm making much sense here. Basically, I had to be connected
> to the 'Net in order for Struts to start up properly. This seems to be at
> odds with what you said below. Am I missing a config parameter somewhere, or
> is there something else that I should check?
>
What does the top of your struts-config.xml file look like? In
particular, the <!DOCTYPE> declaration must exactly match the one that's
in all of the Struts examples:
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
In particular, it is the public identifier (the first string) that Struts
tries to match on.
A second question -- what XML parser and version are you using?
> Thanks,
> Chad Johnston
> Sunset Group Limited
> (719) 535-6284
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
Craig McClanahan