Looking at the stack trace, I cannot see anything that is not meant to be 
happening. Starting from an URL instance, a stream is opened to retrieve the 
file behind the location, etc. Let's see whether anybody else spots anything 
relevant I am missing.

Werner

> -----Ursprüngliche Nachricht-----
> Von: Mike Ferraro [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 14. März 2007 09:37
> An: [email protected]
> Betreff: [castor-user] [XML] loadMapping() FileNotFoundException for URL
> 
> We have multiple applications using the same mapping file, so we've posted
> it on
> a web server.  When I run my application on my desktop (in Eclipse), it
> runs
> without any issues.  When I push the application out to a UNIX server and
> run
> it, I get the following exception:
> 
> Caused by: java.io.FileNotFoundException: http://x.y.z/mapping.xml
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnecti
> on.java:792)
>         at java.net.URL.openStream(URL.java:913)
>         at
> org.exolab.castor.util.DTDResolver.resolveEntity(DTDResolver.java:306)
>         at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:279)
>         at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:262)
>         ... 11 more
> 
> I am passing in a URL object to the loadMapping method.  Nothing has
> changed
> about the mapping file and I have made sure that the URL is reachable from
> the
> UNIX server.  When I download the mapping file to the local UNIX
> filesystem and
> refer to it there, the application runs without any problems.  I know that
> there
> are a lot of variables, but I was wondering if anyone had any ideas about
> where
> to start?
> 
> (I'm using Castor 1.1-xml.)
> 
> Thanks,
> Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to