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

Exception in upgrading cxf-tools-wsdlto-frontend-jaxws jar version from 3.1.* to 3.2.*

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Upgrading cxf from  3.1.16 to 3.2.7 is causing the below expection.

      but Upgarding to minor version 3.1.17 is successfull

      Tried adding common-lang3 depenedency but still the exception persists

      INFO: JDK 8 Platform: Linux

      StackTrace:

       ** soap_server_generate:

           [echo] Using Apache CXF to generate the WSDL client.

           [java] Nov 16, 2018 12:48:19 PM org.apache.cxf.staxutils.StaxUtils createXMLInputFactory

           [java] WARNING: Could not create a secure Stax XMLInputFactory.  Found class com.sun.xml.internal.stream.XMLInputFactoryImpl.  Suggest Woodstox 4.2.0 or newer.

           [java] Nov 16, 2018 12:48:19 PM org.apache.cxf.staxutils.StaxUtils createXMLInputFactory

           [java] WARNING: Could not create a secure Stax XMLInputFactory.  Found class com.sun.xml.internal.stream.XMLInputFactoryImpl.  Suggest Woodstox 4.2.0 or newer.

           [java] Loading FrontEnd jaxws ...

           [java] Loading DataBinding jaxb ...

           [java] wsdl2java -xjc-Xfluent-api-ext -xjc-Xfluent-api -d */components/snapshotcollector/target/generated-sources/src/main/java -p com.alcatel.ni.snapshotcollector.commands -wsdlLocation classpath:${wsdl.location} -verbose */components/snapshotcollector/target/generated-sources/src/main/wsee/META-INF/wsdl/snapshotcollector.wsdl

           [java] wsdl2java - Apache CXF 3.2.7

           [java]

           [java] Nov 16, 2018 12:48:20 PM org.apache.cxf.catalog.OASISCatalogManager loadCatalogs

           [java] WARNING: Catalog found at jar:file:*/maven/local/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/3.2.7/cxf-tools-wsdlto-frontend-jaxws-3.2.7.jar!/META-INF/jax-ws-catalog.xml but no org.apache.xml.resolver.CatalogManager was found.  Check the classpatch for an xmlresolver jar.

           [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils

           [java]              at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.processService(ServiceProcessor.java:253)

           [java]              at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.process(ServiceProcessor.java:101)

           [java]              at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.wsdlDefinitionToJavaModel(WSDLToJavaProcessor.java:86)

           [java]              at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.process(WSDLToJavaProcessor.java:60)

           [java]              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:282)

           [java]              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)

           [java]              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)

           [java]              at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:105)

           [java]              at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)

           [java]              at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)

           [java]              at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:185)

           [java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils

           [java]              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

           [java]              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

           [java]              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)

           [java]              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

           [java]              ... 11 more

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Ragul96 Ragul
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: