@ -114,9 +114,18 @@ public class ResourceEntityResolver extends DelegatingEntityResolver {
@@ -114,9 +114,18 @@ public class ResourceEntityResolver extends DelegatingEntityResolver {
if(url.startsWith("http:")){
url="https:"+url.substring(5);
}
source=newInputSource(url);
source.setPublicId(publicId);
returnsource;
try{
source=newInputSource(newURL(url).openStream());
source.setPublicId(publicId);
source.setSystemId(systemId);
}
catch(IOExceptionex){
if(logger.isDebugEnabled()){
logger.debug("Could not resolve XML entity ["+systemId+"] through URL ["+url+"]",ex);