Can I compile FHoSS without connectivity to Internet ? => deprecated since rev. 371

pweik's picture

The usual problem that occurs when the additional resources are generated, through ant gen, without a current Intenet connection is:
Error reading import file 'http://www.w3.org/2001/xml.xsd': java.net.NoRouteToHostException: No route to host.
This occurs because the source generator tries to import the specified file from the remote address. The solution is:

  • Download the xml.xsd from here and copy it on your machine, for example in xsd/ folder of FHoSS
  • Edit the file xsd/ZhDataType.xsd and change the path "http://www.w3.org/2001/xml.xsd" to your local path; for example "file:///opt/OpenIMSCore/FHoSS/xsd/xml.xsd"
    E.g. Original file:
    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    Modified file:
    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="file:///opt/OpenIMSCore/FHoSS/xsd/xml.xsd"/>
  • Run again
    ant gen
    and now it will work.