Re: Failure in loading RDF-schema during RDF validation by Sirpac

> Giuseppe Bux wrote:
> 
> Hi,
> I tried to run Sirpac from a workstation within a LAN with a proxy
> server. I had the following error:
> 
> FAILED to load RDF schema 'http://www.w3.org/2000/01/rdf-schema#'
> [java.net.SocketException: no further information (code=10051)]


Giuseppe,

If the problem is accessing the web via a proxy server, you may need to
set the java proxy properties.
The following code does this, or you can set them on the command line -
the code comments give the details for this:


private static Properties originalProperties = null;

/** Utility method for use when HTTP proxy has not been set on the
command line **/    
public static void setProxy(String proxy, String port)
{
    
// ******** Have to set up system properties for HTTP to    
// work************ e.g on command line, set:
// -Dhttp.proxyHost=hostname -Dhttp.proxyPort=80

if(originalProperties == null)	    
{		
  originalProperties = System.getProperties();
}
Properties MyProps = new Properties(originalProperties);	
MyProps.setProperty("http.proxyHost",proxy);	
MyProps.setProperty("http.proxyPort",port);	
System.setProperties(MyProps); 
}

Hope that helps,

David Allsopp
QinetiQ
UK

-- 
/d{def}def/u{dup}d[0 -185 u 0 300 u]concat/q 5e-3 d/m{mul}d/z{A u m B u
m}d/r{rlineto}d/X -2 q 1{d/Y -2 q 2{d/A 0 d/B 0 d 64 -1 1{/f exch d/B
A/A z sub X add d B 2 m m Y add d z add 4 gt{exit}if/f 64 d}for f 64 div
setgray X Y moveto 0 q neg u 0 0 q u 0 r r r r fill/Y}for/X}for showpage

Received on Friday, 7 September 2001 07:13:10 UTC