-
I am trying to implement a SOAP service through generated code. The code generation went well and code is generated in 3 different packages in generated-sources/wsdl2java. In the build step however, the following exception occurs:
I am wondering what I would have to do in order for Quarkus to find the BusinessException in the java.be_telenet_comm_soa package. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I might come up with a small project to reproduce the problem, but the problem is in the java:be.telenet.com.soa.exception namespace for an element. That is an "unorthodox" namespace, even though anything goes for a namespace... it does not have to be a URI. It usually is a URI though (resolvable or not) In any case, if it is not a normal URI it seems that something goes wrong in the generated packages during the WSDL2Java code generation. |
Beta Was this translation helpful? Give feedback.
I would say
wsdl2java
is generating the classes in the way it is instructed to, or better: in the way it usually transforms namespaces to class names.I think the problem is that some classes are generated under
java
Java package, which is reserved for JRE classes. IIRC no classloader is allowed to load classes fromjava.*
packages except for Bootstrap Class Loader. And that one in turn will not load any classes from user jars. Hence the class is not visible to any class loader.You may want to try to map your peculiar namespace uri to a different Java package using
quarkus.cxf.codegen.wsdl2java.package-names
: