Doh, thanks! :) I fixed it last night after I got home from work (had to
look up valid URI's on W3C's page). For those of you who are having this
problem still and do not want to upgrade to a nightly build (like me) then
this is what you must do. (At least in a WebSphere solution that is not
net-aware).
Change the DOCTYPE identifier to SYSTEM. Remove the address used by the
PUBLIC DTD (starts with "-//etc...". Then change the URI to point to the DTD
you expanded when trying to deploy the application (see WebSphere 3.5.3
directions if you don't know what I mean).
So, struts-config.xml becomes (on an NT box for example):
<!DOCTYPE struts-config SYSTEM
"file:/e:/WebSphere/AppServer/hosts/default_hosts/struts-example/servlets/or
g/apache/struts/resources/struts-config_1_0.dtd">
Unix example:
<!DOCTYPE struts-config SYSTEM
"file:/prod/sys/WebSphere/AppServer/hosts/default_hosts/struts-example/servl
ets/org/apache/struts/resources/struts-config_1_0.dtd">
That's a bit long so you can put it somewhere else to shorten it up if you
want. The same applies with web.xml and the web-app_2_2.dtd. :)
Chris
-----Original Message-----
From: Rob Leland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 7:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Finding DTD when disconnected from Internet
Update to the latest nightly build, this problem was fixed about
5 weeks ago.
-Rob
"Assenza, Chris" wrote:
>
> Well, here I am again - new problem. :| (BTW, thanks to all for helping,
> this is by far one of the best list I've been on).
>
> Problem:
>
> Okay, I've been working with WebSphere and JBoss to get a Struts app
> working. So far my efforts have been very successful. However, today I hit
a
> new bug. Assume your PC is not connected to the Internet -- ie. its just a
> local app. In WebSphere in particular, but also in JBoss, Struts will
fail
> because it goes out to find the DTD for web_app_2_2 from Sun and
> struts-config from the Jakarta site.
>
> After countless efforts to make Digester search for the DTD locally, I
have
> had no success. I am required to use the SYSTEM identifier and not
PUBLIC.
> The only thing I've had success with is making the two xml files
standalone
> (ie. standalone="yes"). SAX returns beaucoup errors, but the app
> "half-works" -- pages will at least come up.
>
> Does anyone know how to fix this easily...without connecting the machine
to
> the Net (it's an Intranet app). My knowledge of XML is okay, DTD's fairly
> week (incl. !DOCTYPE).
>
> Thanks,
>
> Chris Assenza