Just to let you know, this was a only a server problem not a problem with the code/application.
Our system administrators modified the hosts file on the server a long time ago and never removed the entry so the URL I was trying to access kept coming back to the server I was on instead of going to the real IP address. So, the "connection" was fine, but of course the file did not exist. Everything is working fine now. Thanks for the quick response though. Mike Quoting Werner Guttmann <[EMAIL PROTECTED]>: > 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 > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

