Self-Solve Knowledge Search

Minimize Maximize
Generation of ovscws.jar library failed due to inability to download external li...
This document has not been formally reviewed for accuracy and is provided as is
Title :
Generation of ovscws.jar library failed due to inability to download external link
Document ID :
KM01749252
Product - Version:
temip liaisons 6.1 ;
OS :
Updated :
Wed Jul 22 10:14:28 GMT 2015
Summary :
Generation of ovscws.jar library can be failed due to inability to download external link http://www.w3.org/2005/05/xmlmime. If computer has access to Internet and proxy, then setting of ANT_OPTS environment variable can help. If If there is no Internet access on the computer, then special WSDLToJava tool capable to generate library using local resources can help.
Problem

The following error may occur during generation of ovscws.jar lib with WSDlToJava tool provided with SM Adapter of OSS/J TT Liason:

generate_source.axis:
    [mkdir] Created dir: /usr/hp/ism/adapters/jsr91ovscadapter/tools/WSDLToJava/src
[axis-wsdl2java] Retrieving document at 'http://16.17.100.49:13080/SM/7/IncidentManagement.wsdl'.
[axis-wsdl2java] Retrieving schema at 'http://OSSV049.emea.hpqcorp.net:13080/SM/7/Common.xsd', relative to 'http://16.17.100.49:13080/SM/7/IncidentManagement.wsdl'.
[axis-wsdl2java] Retrieving schema at 'http://www.w3.org/2005/05/xmlmime', relative to 'http://OSSV049.emea.hpqcorp.net:13080/SM/7/Common.xsd'.

BUILD FAILED
/usr/hp/ism/adapters/jsr91ovscadapter/tools/WSDLToJava/build.xml:140: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL

Cause
It can be caused by inability to download external link:
http://www.w3.org/2005/05/xmlmime
Fix
  • If computer has access to Internet and proxy, then setting of ANT_OPTS environment variable can help:

On Windows:
set ANT_OPTS=-Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=8080

On Linux:
export ANT_OPTS="-Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=8080"

Proxy address can be retrieved with "ping web-proxy" command.

  • If there is no Internet access on this computer, then create support case to receive WSDLToJava tool capable to generate ovscws.jar library using local resources without Internet access.