Project: talendesb
Issue TESB-6311: Exported KAR file which contains CXF with classpath:XXX.WSDL cannot start in Runtime
Create a Route with cCXF and use a classpath: WSDL, it works in Studio but failed in Runtime. Error log: {noformat} 2012-06-28 14:35:28,975 | WARN | pool-11-thread-9 | URIResolver | 110 - org.apache.cxf.cxf-api - 2 .6.1 | Resource classpath:route_resources/ReadWrite.wsdl was not found in the classloaders. 2012-06-28 14:35:28,986 | WARN | pool-11-thread-9 | URIResolver | 110 - org.apache.cxf.cxf-api - 2 .6.1 | Resource classpath:route_resources/ReadWrite.wsdl was not found in the classloaders. 2012-06-28 14:35:28,998 | INFO | pool-11-thread-9 | OsgiDefaultCamelContext | 161 - org.apache.camel.camel-cor e - 2.9.3.SNAPSHOT | Apache Camel 2.9.3-SNAPSHOT (CamelContext: ContentBasedRouting-ctx) is shutting down 2012-06-28 14:35:28,998 | INFO | pool-11-thread-9 | DefaultShutdownStrategy | 161 - org.apache.camel.camel-cor e - 2.9.3.SNAPSHOT | Starting to graceful shutdown 0 routes (timeout 300 seconds) 2012-06-28 14:35:29,002 | INFO | pool-11-thread-9 | DefaultShutdownStrategy | 161 - org.apache.camel.camel-cor e - 2.9.3.SNAPSHOT | Graceful shutdown of 0 routes completed in 0 seconds 2012-06-28 14:35:29,005 | INFO | pool-11-thread-9 | DefaultInflightRepository | 161 - org.apache.camel.camel-cor e - 2.9.3.SNAPSHOT | Shutting down with no inflight exchanges. 2012-06-28 14:35:29,006 | INFO | pool-11-thread-9 | OsgiDefaultCamelContext | 161 - org.apache.camel.camel-cor e - 2.9.javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'classpath:route_resources/Read Write.wsdl'.: ja3.SNAPSHOT | Uptime: 0.133 seconds va.net.MalformedURLException: unknown protocol: classpath org.apache.camel.RuntimeCamelException: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'classpath:route_resources/ReadWrite.wsdl'.: java.net.MalformedURLException: unknown protocol: classpath 2012-06-28 14:35:29,007 | INFO | pool-11-thread-9 | OsgiDefaultCamelContext | 161 - org.apache.camel.camel-cor e - 2.9. at org.apache.camel.component.cxf.WSDLServiceConfiguration.getDefinition(WSDLServiceConfiguration.java:4 9) 3.SNAPSHOT | Apache Camel 2.9.3-SNAPSHOT (CamelContext: ContentBasedRouting-ctx) is shutdown in 0.008 seconds at org.apache.camel.component.cxf.WSDLServiceConfiguration.getServiceQName(WSDLServiceConfiguration.java:57) at org.apache.camel.component.cxf.WSDLServiceConfiguration.getServiceNamespace(WSDLServiceConfiguration.java:98) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getServiceNamespace(ReflectionServiceFactoryBean. java:1887) 2012-06-28 14:35:29,007 | INFO | pool-11-thread-9 | MainSupport | 161 - org.apache.camel.camel-cor e - 2.9. at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getServiceQName(ReflectionServiceFactoryB ean.java:1839) 3.SNAPSHOT | Apache Camel stopping at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getServiceQName(ReflectionServiceFactoryBean.java :1835) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean .java:395) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBe an.java:534) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java :101) at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) at org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:226) at org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:195) at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65) at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80) at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133) at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1929) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1857) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1650) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1537) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1414) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1382) at demo.contentbasedrouting_0_1.ContentBasedRouting$1CamelImpl.doStart(ContentBasedRouting.java:202) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) at org.apache.camel.main.MainSupport.run(MainSupport.java:140) at demo.contentbasedrouting_0_1.ContentBasedRouting.Route(ContentBasedRouting.java:351) at demo.contentbasedrouting_0_1.ContentBasedRouting.runJobInTOS(ContentBasedRouting.java:459) at org.talend.esb.job.controller.internal.RouteAdapter.run(RouteAdapter.java:78) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'classpath:route_resources/R eadWrite.wsdl'.: java.net.MalformedURLException: unknown protocol: classpath at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:244) at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:191) at org.apache.camel.component.cxf.WSDLServiceConfiguration.getDefinition(WSDLServiceConfiguration.java:47) ... 31 more Caused by: java.net.MalformedURLException: unknown protocol: classpath at java.net.URL.(URL.java:574) at java.net.URL.(URL.java:464) at java.net.URL.(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) ... 37 more {noformat}
Story points: 1