You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Juan Medín Piñeiro <ju...@gmail.com> on 2005/12/05 09:57:06 UTC
Re: Can't parse configuration file
Unfortunately putting the file in the WEB-INF dir doesn't work for me
(other people have the same problem:
http://forum.java.sun.com/thread.jspa?threadID=676326).
Isn't writing your own EntityResolver a bit too much for this problem?
Regards,
- Juan
On 11/29/05, Mike Kienenberger <mk...@gmail.com> wrote:
> What works for me is to add the dtd files to the WEB-INF directory,
> and the xml parser searches there before trying the URL.
> I think the solution to this problem depends on your xml parser, though.
> I've also seen others suggest writing your own EntityResolver.
Re: Can't parse configuration file
Posted by Mike Kienenberger <mk...@gmail.com>.
For me, putting it in the WEB-INF directory has always worked for web apps.
The one time I had to write an EntityResolver was when I was parsing
dtd files in a batch job instead of a web app.
On 12/5/05, Juan Medín Piñeiro <ju...@gmail.com> wrote:
> Unfortunately putting the file in the WEB-INF dir doesn't work for me
> (other people have the same problem:
> http://forum.java.sun.com/thread.jspa?threadID=676326).
>
> Isn't writing your own EntityResolver a bit too much for this problem?
>
> Regards,
>
> - Juan
>
> On 11/29/05, Mike Kienenberger <mk...@gmail.com> wrote:
> > What works for me is to add the dtd files to the WEB-INF directory,
> > and the xml parser searches there before trying the URL.
> > I think the solution to this problem depends on your xml parser, though.
> > I've also seen others suggest writing your own EntityResolver.
>