halouprogramer opened a new issue, #4850: URL: https://github.com/apache/camel-k/issues/4850
### What happened? Hello Everyone Locally, the Quarkus application does not report an error, but when deploying the Route file using Camel I guess it has something to do with QuarkusClassLoader, but I don't know how to modify it. JDK VERSION: 11 camel-k version: 1.10.1 camel version: 3.18 ### Steps to reproduce 1. Use cxf-codegen-plugin 3.6.2 create Java Soap Entity 2. Route File `// camel-k: language=java // camel-k: env=TZ=Asia/Shanghai // camel-k: dependency=mvn:com.sun.xml.ws:jaxws-rt:2.3.3 // camel-k: dependency=mvn:com.sun.xml.ws:rt:2.3.3 // camel-k: dependency=camel-soap // camel-k: trait=container.name=demo // camel-k: resource=file:../../../target/demo.jar // camel-k: trait=jvm.classpath=/etc/camel/resources/demo.jar import org.apache.camel.dataformat.soap.SoapDataFormat; import org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy; import org.apache.camel.quarkus.core.CamelQuarkusClassResolver; public class DemoRoute extends RouteBuilder { @Override public void configure() throws Exception { // Soap Convert SoapDataFormat soapDataFormat = new SoapDataFormat(); soapDataFormat.setContextPath("wsdl"); soapDataFormat.setElementNameStrategy(new ServiceInterfaceStrategy( getContext().getApplicationContextClassLoader().loadClass(DemoPortType.class.getName()) , true)); // Source: Knative Event from("knative:event/demo") // ... .marshal(soapDataFormat) .to("direct:outbound_http"); } }` 3. Deploy kamel run --name demo --profile Knative --property file:../../../biz.properties DemoRoute.java ### Relevant log output ```shell Failed to start application: java.lang.IllegalArgumentException: The number of @WebParam annotations for Method syncUBREXCHANGE does not match the number of parameters. This is not supported. at org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.getInInfo(ServiceInterfaceStrategy.java:122) at org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.analyzeMethod(ServiceInterfaceStrategy.java:145) at org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.analyzeServiceInterface(ServiceInterfaceStrategy.java:157) at org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.<init>(ServiceInterfaceStrategy.java:58) at DemoRoute.configure(DemoRoute.java:133) at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:672) at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:618) at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:554) at org.apache.camel.impl.engine.AbstractCamelContext.addRoutes(AbstractCamelContext.java:1178) at org.apache.camel.main.RoutesConfigurer.addDiscoveredRoutes(RoutesConfigurer.java:237) at org.apache.camel.main.RoutesConfigurer.configureRoutes(RoutesConfigurer.java:212) at org.apache.camel.quarkus.main.CamelMain.configureRoutes(CamelMain.java:70) at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:637) at org.apache.camel.quarkus.main.CamelMain.initCamelContext(CamelMain.java:116) at org.apache.camel.quarkus.main.CamelMain.doInit(CamelMain.java:86) at org.apache.camel.support.service.BaseService.init(BaseService.java:83) at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:137) at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49) at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45) at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy_0(Unknown Source) at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy(Unknown Source) at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source) at io.quarkus.runtime.Application.start(Application.java:101) at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:110) at io.quarkus.runtime.Quarkus.run(Quarkus.java:70) at io.quarkus.runtime.Quarkus.run(Quarkus.java:43) at io.quarkus.runtime.Quarkus.run(Quarkus.java:123) at io.quarkus.runner.GeneratedMain.main(Unknown Source) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61) at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32) ``` ### Camel K version Camel K Client Red Hat 1.10.1 Camel K Operator 1.10.1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org