Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-930

XercesImpl.jar needs to be added to CXF_HOME/lib directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • 2.0.2
    • Tooling
    • None

    Description

      I was unable to run WSDL2JAVA using the classpath below, until I placed because XercesImpl.jar in the lib directory. I think it is important to add XercesImpl.jar there, so there can be a standardized way to activate the WSDL2Java class. See[1] for more info.

      <path id="ws-stack.classpath">
      <pathelement location="${build.classes.dir}"/>
      <fileset dir="${env.CXF_HOME}/lib">
      <include name="*.jar"/>
      </fileset>
      </path>

      <target name="generateClientCode">
      <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava">
      <arg value="-client"/>
      <arg value="-d"/>
      <arg value="src"/>
      <arg value="ShoppingService.wsdl"/>
      <classpath>
      <path refid="ws-stack.classpath"/>
      </classpath>
      </java>
      </target>

      [1] http://www.nabble.com/Problem-generating-CXF-client-for-eBay-Shopping-API-WSDL-tf4291138.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            mazzag Glen Mazza
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: