Hello I use CXF 2.6.7 with SOAP Web services. CXF is really fun. But I have a problem with WSDL2Java. I have written an Eclipse plugin and I run in it WSDLToJava. When it runs, i have in the Eclipse console the command 'wsdl2java…' with all my arguments. If I copy this line and submit it from a shell or bat (use bin/wsdl2java) it runs runs fine and the classes are generated. When I run the run method and the wsdl2java class instance : run(new ToolContext()) (after setting of arguments) I have the following message
The generated command is wsdl2java -d /Users/michel/Developpement/Workspaces/runtime-EclipseApplication/TestPlugin/Sources -classdir /var/folders/rL/rL8ReMwHHuqnFtxKKTIuQE+++TI/-Tmp-/ -p http://www.ws.test.com/TESTSRVV1/=com.test.ws.www -p http://model.ws.test.com/TESTSRVV1/=com.test.ws.model -impl -validate -exsh false -dns true -verbose -dex true -defaultValues -fe jaxws21 -db jaxb -encoding UTF8 -wsdlLocation /ws/wsdl/TESTSRV1.wsdl -wv 1.1 file:/Users/michel/Developpement/Workspaces/TESTSRV1_Project/Properties/ws/wsdl/TESTSRV1.wsdl As I said below, this command runs fine in batch mode. I have run the eclipse plugin is debug mode I think that the problem is in WSDL11Validator in method getDefaultSchemas. When it runs fine, then all schemas included in cfx-2.6.7.jar (schemas.wsdl), via the classpath, are set in the list. With the plugin, these schemas are not found… I don't understand why because the plugin has a good manifest declaring the following classpath: Bundle-ClassPath (lib/* are valid) : ., lib/wsdl4j-1.6.2.jar, lib/commons-collections-3.2.1.jar, lib/commons-lang-2.6.jar, lib/commons-logging-1.1.1.jar, lib/cxf-2.6.7.jar, lib/cxf-manifest.jar, lib/cxf-services-sts-core-2.6.7.jar, lib/cxf-services-wsn-api-2.6.7.jar, lib/cxf-services-wsn-core-2.6.7.jar, lib/cxf-xjc-boolean-2.6.1.jar, lib/cxf-xjc-bug671-2.6.1.jar, lib/cxf-xjc-dv-2.6.1.jar, lib/cxf-xjc-runtime-2.6.1.jar, lib/cxf-xjc-ts-2.6.1.jar, lib/jaxb-api-2.2.5.jar, lib/jaxb-impl-2.2.5.1.jar, lib/jaxb-xjc-2.2.5.1.jar, lib/neethi-3.0.2.jar, lib/serializer-2.7.1.jar, lib/stax2-api-3.1.1.jar, lib/velocity-1.7.jar, lib/woodstox-core-asl-4.2.0.jar, lib/xmlschema-core-2.0.3.jar An idea ? Thanks. -- View this message in context: http://cxf.547215.n5.nabble.com/WSDL2Java-from-java-question-tp5728875.html Sent from the cxf-user mailing list archive at Nabble.com.
