wsdl2java using apache cxf getting BadUsageException

115 views
Skip to first unread message

VIJAYABHASKARA REDDY

unread,
Apr 17, 2024, 1:52:27 PM4/17/24
to WildFly
Hi All,

I am getting below error when i am trying to convert my existing web service to jakarta compliant. i am trying to use wsdl2java command in ant task for importing \ generating java classes from my service wsdl.

what could be the reason here? I am setting proper apache cxf class path and giving -b option for my service binding xml path.

     [exec] Usage : wsdl2java -fe|-frontend <front-end-name> -db|-databinding <data-binding-name> -wv <wsdl-version> -p <[wsdl-namespace =]package-name>* -sn <service-name> -b <binding-file-name>* -reserveClass <class-name>* -catalog <catalog-file-name> -d <output-directory> -compile -classdir <compile-classes-directory> -impl -server -client -clientjar <jar-file-name> -all -autoNameResolution -allowElementReferences|-aer<=true> -defaultValues<=class-name-for-DefaultValueProvider> -ant -nexclude <schema-namespace [= java-package-name]>* -exsh <(true, false)> -noTypes -dns <Default value is true> -dex <(true, false)> -validate<[=all|basic|none]> -keep -wsdlLocation <wsdlLocation> -xjc<xjc-arguments>* -asyncMethods<[=method1,method2,...]>* -bareMethods<[=method1,method2,...]>* -mimeMethods<[=method1,method2,...]>* -noAddressBinding -faultSerialVersionUID <fault-serialVersionUID> -encoding <encoding> -exceptionSuper <exceptionSuper> -seiSuper <seiSuper>* -mark-generated -suppress-generated-date -maxExtensionStackDepth <maxExtensionStackDepth> -h|-?|-help -version|-v -verbose|-V -quiet|-q|-Q -wsdlList <wsdlurl>
     
[exec] WSDLToJava Error: org.apache.cxf.tools.common.toolspec.parser.BadUsageException: Unexpected option: -b

Thanks
--Vijay
Reply all
Reply to author
Forward
0 new messages