Project: talendesb
Issue TESB-9305: Data Service - SR: Not able to use SR with DemoService
Using the DemoService (ESBDEMO project) I'm not able to deploy the service when I enable the SR (even so I have the WSDL in teh SR & also a SAML Policy bind to the service - so all is configured correctly) {code:none} [ 318] [Active ] [Created ] [ ] [ 80] DemoServicePortType_DemoServiceOperation (0.1.0.SNAPSHOT) [ 319] [Active ] [ ] [Failed ] [ 80] DemoService-control-bundle (0.1.0.SNAPSHOT) karaf@trun> {code} The log says/shows the following: {code:non} 14:43:14,294 | INFO | xtenderThread-76 | al.aop.ServiceDynamicInterceptor 476 | 115 - org.springframework.osgi.core - 1.2.1 | Found mandatory OSGi service for bean [providerFactory] 14:43:14,374 | INFO | tp1174875516-700 | eptor.AbstractLoggingInterceptor 234 | 122 - org.apache.cxf.cxf-api - 2.7.3 | Inbound Message ---------------------------- ID: 47 Address: http://localhost:8040/services/registry/lookup/wsdl/%257Bhttp%253A%252F%252Fwww.talend.org%252Fservice%252F%257DDemoService Http-Method: GET Content-Type: */* Headers: {Accept=[type=text/html,application/xhtml+xml,application/wsdl+xml], Cache-Control=[no-cache], connection=[keep-alive], content-type=[*/*], Host=[localhost:8040], Pragma=[no-cache], User-Agent=[Apache CXF 2.7.3]} -------------------------------------- 14:43:14,375 | INFO | tp1174875516-700 | e.lookup.RegistryRestServiceImpl 67 | 265 - registry-rest-service - 5.3.0 | trying to lookup WSDL for service - %7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DDemoService 14:43:14,393 | INFO | tp1174875516-700 | e.jackrabbit.core.RepositoryImpl 256 | 263 - org.talend.esb.registry.server - 5.3.0 | Starting repository... 14:43:14,394 | INFO | tp1174875516-700 | it.core.fs.local.LocalFileSystem 164 | 263 - org.talend.esb.registry.server - 5.3.0 | LocalFileSystem initialized at path F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\repository 14:43:14,414 | INFO | tp1174875516-700 | it.core.fs.local.LocalFileSystem 164 | 263 - org.talend.esb.registry.server - 5.3.0 | LocalFileSystem initialized at path F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\version 14:43:14,564 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2001 | 263 - org.talend.esb.registry.server - 5.3.0 | initializing workspace 'default'... 14:43:14,565 | INFO | tp1174875516-700 | it.core.fs.local.LocalFileSystem 164 | 263 - org.talend.esb.registry.server - 5.3.0 | LocalFileSystem initialized at path F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\default 14:43:14,708 | INFO | tp1174875516-700 | it.core.query.lucene.SearchIndex 601 | 263 - org.talend.esb.registry.server - 5.3.0 | Index initialized: F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container/esbrepo/serviceregistry/repository/index Version: 3 14:43:14,782 | INFO | tp1174875516-700 | it.core.query.lucene.SearchIndex 601 | 263 - org.talend.esb.registry.server - 5.3.0 | Index initialized: F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\default/index Version: 3 14:43:14,783 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2005 | 263 - org.talend.esb.registry.server - 5.3.0 | workspace 'default' initialized 14:43:14,784 | INFO | tp1174875516-700 | e.jackrabbit.core.RepositoryImpl 452 | 263 - org.talend.esb.registry.server - 5.3.0 | SecurityManager = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager 14:43:14,784 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2001 | 263 - org.talend.esb.registry.server - 5.3.0 | initializing workspace 'security'... 14:43:14,785 | INFO | tp1174875516-700 | it.core.fs.local.LocalFileSystem 164 | 263 - org.talend.esb.registry.server - 5.3.0 | LocalFileSystem initialized at path F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\security 14:43:14,897 | INFO | tp1174875516-700 | it.core.query.lucene.SearchIndex 601 | 263 - org.talend.esb.registry.server - 5.3.0 | Index initialized: F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\security/index Version: 3 14:43:14,898 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2005 | 263 - org.talend.esb.registry.server - 5.3.0 | workspace 'security' initialized 14:43:14,899 | INFO | tp1174875516-700 | ity.simple.SimpleSecurityManager 137 | 263 - org.talend.esb.registry.server - 5.3.0 | init: using Repository LoginModule configuration for Jackrabbit 14:43:14,900 | INFO | tp1174875516-700 | e.jackrabbit.core.RepositoryImpl 364 | 263 - org.talend.esb.registry.server - 5.3.0 | Repository started (507ms) 14:43:14,901 | INFO | tp1174875516-700 | krabbit.core.TransientRepository 281 | 263 - org.talend.esb.registry.server - 5.3.0 | Transient repository initialized 14:43:14,904 | INFO | tp1174875516-700 | krabbit.core.TransientRepository 385 | 263 - org.talend.esb.registry.server - 5.3.0 | Session opened 14:43:14,913 | INFO | tp1174875516-700 | ency.impl.PersistencyManagerImpl 621 | 263 - org.talend.esb.registry.server - 5.3.0 | Resource has been found - ResourceIdentity 14:43:14,916 | INFO | tp1174875516-700 | ency.impl.PersistencyManagerImpl 861 | 263 - org.talend.esb.registry.server - 5.3.0 | resource node found by identity ResourceIdentity 14:43:14,917 | INFO | tp1174875516-700 | ency.impl.PersistencyManagerImpl 456 | 263 - org.talend.esb.registry.server - 5.3.0 | Resource has been found - ResourceIdentity 14:43:14,918 | INFO | tp1174875516-700 | krabbit.core.TransientRepository 424 | 263 - org.talend.esb.registry.server - 5.3.0 | Session closed 14:43:14,919 | INFO | tp1174875516-700 | e.jackrabbit.core.RepositoryImpl 1060 | 263 - org.talend.esb.registry.server - 5.3.0 | Shutting down repository... 14:43:14,920 | INFO | tp1174875516-700 | it.core.query.lucene.SearchIndex 808 | 263 - org.talend.esb.registry.server - 5.3.0 | Index closed: F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container/esbrepo/serviceregistry/repository/index 14:43:14,920 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2159 | 263 - org.talend.esb.registry.server - 5.3.0 | shutting down workspace 'default'... 14:43:14,921 | INFO | tp1174875516-700 | bservation.ObservationDispatcher 121 | 263 - org.talend.esb.registry.server - 5.3.0 | Notification of EventListeners stopped. 14:43:14,922 | INFO | tp1174875516-700 | it.core.query.lucene.SearchIndex 808 | 263 - org.talend.esb.registry.server - 5.3.0 | Index closed: F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\default/index 14:43:14,956 | INFO | tp1174875516-700 | re.util.db.DerbyConnectionHelper 94 | 263 - org.talend.esb.registry.server - 5.3.0 | Database 'F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\default/db' shutdown. 14:43:14,957 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2166 | 263 - org.talend.esb.registry.server - 5.3.0 | workspace 'default' has been shutdown 14:43:14,958 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2159 | 263 - org.talend.esb.registry.server - 5.3.0 | shutting down workspace 'security'... 14:43:14,958 | INFO | tp1174875516-700 | bservation.ObservationDispatcher 121 | 263 - org.talend.esb.registry.server - 5.3.0 | Notification of EventListeners stopped. 14:43:14,959 | INFO | tp1174875516-700 | it.core.query.lucene.SearchIndex 808 | 263 - org.talend.esb.registry.server - 5.3.0 | Index closed: F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\security/index 14:43:15,005 | INFO | tp1174875516-700 | re.util.db.DerbyConnectionHelper 94 | 263 - org.talend.esb.registry.server - 5.3.0 | Database 'F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container\esbrepo\serviceregistry\workspaces\security/db' shutdown. 14:43:15,006 | INFO | tp1174875516-700 | ore.RepositoryImpl$WorkspaceInfo 2166 | 263 - org.talend.esb.registry.server - 5.3.0 | workspace 'security' has been shutdown 14:43:15,067 | INFO | tp1174875516-700 | re.util.db.DerbyConnectionHelper 94 | 263 - org.talend.esb.registry.server - 5.3.0 | Database 'F:\Talend\ESB\5.3.0-101614-GA-A\Talend-ESB-V5.3.0\container/esbrepo/serviceregistry/version/db' shutdown. 14:43:15,075 | INFO | tp1174875516-700 | e.jackrabbit.core.RepositoryImpl 1165 | 263 - org.talend.esb.registry.server - 5.3.0 | Repository has been shutdown 14:43:15,076 | INFO | tp1174875516-700 | krabbit.core.TransientRepository 291 | 263 - org.talend.esb.registry.server - 5.3.0 | Transient repository shut down 14:43:15,077 | INFO | tp1174875516-700 | e.lookup.RegistryRestServiceImpl 73 | 265 - registry-rest-service - 5.3.0 | successfully looked up WSDL for service - %7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DDemoService 14:43:15,079 | INFO | tp1174875516-700 | eptor.AbstractLoggingInterceptor 234 | 122 - org.apache.cxf.cxf-api - 2.7.3 | Outbound Message --------------------------- ID: 47 Response-Code: 200 Content-Type: application/wsdl+xml Headers: {Date=[Sun, 21 Apr 2013 12:43:15 GMT]} Payload: -------------------------------------- 14:43:15,084 | INFO | xtenderThread-76 | ort.DefaultSingletonBeanRegistry 434 | 109 - org.springframework.beans - 3.1.4.RELEASE | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1dcbc19a: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,sam-agent-props,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,samQueue,eventFeature,eventCollector,org.springframework.context.annotation.internalAsyncAnnotationProcessor,org.springframework.context.annotation.internalScheduledAnnotationProcessor,defaultScheduler,defaultExecutor,monitoringServiceV1Client.proxyFactory,monitoringServiceV1Client,monitoringServceV1Wrapper,clientListener,serviceListener,locator-server-props,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#1,serviceLocatorBackend,serviceLocator,locatorRegistrar,defaultSelectionStrategyFactory,evenDistributionSelectionStrategyFactory,randomSelectionStrategyFactory,locatorClientEnabler,locatorManager,service,org.apache.cxf.management.counters.CounterRepository#0,jaasUTValidator,service-props,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#2,callback,providerFactory,genericServiceProvider,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0]; root of factory hierarchy 14:43:15,089 | INFO | xtenderThread-76 | ent.ExecutorConfigurationSupport 150 | 111 - org.springframework.context - 3.1.4.RELEASE | Shutting down ExecutorService 'defaultScheduler' 14:43:15,089 | INFO | xtenderThread-76 | ent.ExecutorConfigurationSupport 150 | 111 - org.springframework.context - 3.1.4.RELEASE | Shutting down ExecutorService 14:43:15,089 | ERROR | xtenderThread-76 | BundleApplicationContextListener 50 | 116 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=DemoService-control-bundle, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: javax.ws.rs.client.ClientException: java.lang.ClassCastException: org.apache.cxf.jaxrs.impl.ResponseImpl cannot be cast to org.apache.cxf.jaxrs.impl.ResponseImpl org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)[111:org.springframework.context:3.1.4.RELEASE] org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[115:org.springframework.osgi.core:1.2.1] org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[115:org.springframework.osgi.core:1.2.1] org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[115:org.springframework.osgi.core:1.2.1] org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[115:org.springframework.osgi.core:1.2.1] org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[116:org.springframework.osgi.extender:1.2.1] java.lang.Thread.run(Thread.java:662)[:1.6.0_25] Caused by: javax.xml.ws.WebServiceException: javax.ws.rs.client.ClientException: java.lang.ClassCastException: org.apache.cxf.jaxrs.impl.ResponseImpl cannot be cast to org.apache.cxf.jaxrs.impl.ResponseImpl org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:369) org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251) org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:537) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_25] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_25] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_25] java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_25] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)[109:org.springframework.beans:3.1.4.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)[109:org.springframework.beans:3.1.4.RELEASE]	... 14 more Caused by: javax.ws.rs.client.ClientException: java.lang.ClassCastException: org.apache.cxf.jaxrs.impl.ResponseImpl cannot be cast to org.apache.cxf.jaxrs.impl.ResponseImpl org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:992) org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:955) org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:905) org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:772) org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:759) org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:355) org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:511) org.talend.esb.registry.client.wsdl.RegistryFactoryBeanListener.readWSDL(RegistryFactoryBeanListener.java:163) org.talend.esb.registry.client.wsdl.RegistryFactoryBeanListener.handleEvent(RegistryFactoryBeanListener.java:88) org.apache.cxf.service.factory.AbstractServiceFactoryBean.sendEvent(AbstractServiceFactoryBean.java:72) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:249) org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) org.apache.cxf...
Story points: 1