I am not using the Struts jar because I am working with the source.  So that
is probablt why it is happening, but I fixed it with Zhao's excellent tip!
=)
However, I think it should be designed somehow to look locally for the dtd
in this case.  I have seen alot of talk about this dtd issue in the last few
weeks which is an indicator that a clearer explanation and minor code tweak
are probably warranted.  It is not clear what the deafualt is, what happens
with a struts.jar and without one, and where the dtd must reside. etc,etc.

----- Original Message -----
From: "Sukachevin, Stoehr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 6:30 AM
Subject: RE: javax.servlet.UnavailableException: Input/output error reading
configuration from resource path /WEB-INF/struts-config.xml


> But the XML parser that the Digester uses should be able to get the dtd
from
> struts.jar.
>
> Is struts.jar in your weblogic classpath or in your web app?  I have no
> problems when struts.jar is in the weblogic classpath for v5.1 SP9.  Not
> sure about when it is in a web app's lib directory, though.
>
> -- Stoehr
>
>
> -----Original Message-----
> From: zhaoj [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 11:55 PM
> To: [EMAIL PROTECTED]; Jonathan Asbell
> Subject: Re: javax.servlet.UnavailableException: Input/output error
reading
> configuration from resource path /WEB-INF/struts-config.xml
>
>
> This is a common problem when configuring struts on weblogic. Reason is
that
> the parser could not fetch the
> file(http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd) from the
> web.
> The easiest way is to alter the request to your local file.
> For example:
>     FROM:
>     <!DOCTYPE struts-config PUBLIC
>           "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN"
>           "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd>
>
>     TO:
>     <!DOCTYPE struts-config PUBLIC
>           "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN"
>
>
"file:///c:/bea/wlserver6.0/config/Wcom/applications/mydomain/WEB-INF/struts
> -config_1_0.dtd>
>
> -Zhao
>
> ----- Original Message -----
> From: Jonathan Asbell
> To: [EMAIL PROTECTED]
> Sent: Friday, June 22, 2001 10:40 AM
> Subject: javax.servlet.UnavailableException: Input/output error reading
> configuration from resource path /WEB-INF/struts-config.xml
>
>
> Any one know why I am getting this Exception in Weblogic 6?
>
> I have gotten this Exception before, erased the tmp war files, and all was
> ok.  Now erasing the tmp war doesnt help.  It happens inside the Digester
in
> the below method, on the line "getParser().parse(input, this);"
> --------------------------------------------------------------------------
--
> ----------------------------------
> public Object parse(InputStream input) throws IOException, SAXException {
>     getParser().parse(input, this);
>     return (root);
> }
> --------------------------------------------------------------------------
--
> ----------------------------------
>
> I have verified that the input stream is not null and is in fact valid,
> pointing to the correct file "/WEB-INF/struts-config.xml".  I have also
> verified that the Digester is not null and is valid.
>
> THIS IS THE
>
EXCEPTION-------------------------------------------------------------------
> ----------
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
> 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>  Not registered, use system identifier
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
> 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>  Not registered, use system identifier
> javax.servlet.UnavailableException: Input/output error reading
configuration
> from resource path /WEB-INF/struts-config.xml
>         at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:416)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>

Reply via email to