[ 
https://issues.apache.org/jira/browse/CXF-7914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16703034#comment-16703034
 ] 

Colm O hEigeartaigh commented on CXF-7914:
------------------------------------------

Can you put together a sample project to reproduce the error?

> Exception in upgrading cxf-tools-wsdlto-frontend-jaxws jar version from 3.1.* 
> to 3.2.*
> --------------------------------------------------------------------------------------
>
>                 Key: CXF-7914
>                 URL: https://issues.apache.org/jira/browse/CXF-7914
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 3.2.0
>            Reporter: Ragul
>            Priority: Major
>
> 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|file://udir/ragul/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
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to