You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dinesh (JIRA)" <ji...@apache.org> on 2016/06/18 00:10:05 UTC
[jira] [Created] (CXF-6946) Part ServiceException defined as
element {http://exception.service.disney.com/}ServiceException which is not
in the schema.
Dinesh created CXF-6946:
---------------------------
Summary: Part ServiceException defined as element {http://exception.service.disney.com/}ServiceException which is not in the schema.
Key: CXF-6946
URL: https://issues.apache.org/jira/browse/CXF-6946
Project: CXF
Issue Type: Bug
Environment: CXF 2.1.3
Reporter: Dinesh
Intermittently getting error at runtime while calling webservice. Here is the ful exception trace
-------------------------------------------------------------------------------------------
Caused by: javax.faces.FacesException: Cant instantiate class: com.wdw.pms.web.controller.housekeeping.H2UIController.. Error creating bean with name 'HousekeepingAdminService' defined in class path resource [required-service-ioc-web.xml]: Cannot resolve reference to bean 'HousekeepingAdminTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HousekeepingAdminTarget' defined in class path resource [required-service-ioc-web.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object com.wdw.pms.web.facade.PMSServiceAdapter.getService()] threw exception; nested exception is org.apache.cxf.wsdl11.WSDLRuntimeException: Part ServiceException defined as element {http://exception.service.disney.com/}ServiceException which is not in the schema.
at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:282)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:527)
... 108 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HousekeepingAdminService' defined in class path resource [required-service-ioc-web.xml]: Cannot resolve reference to bean 'HousekeepingAdminTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HousekeepingAdminTarget' defined in class path resource [required-service-ioc-web.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object com.wdw.pms.web.facade.PMSServiceAdapter.getService()] threw exception; nested exception is org.apache.cxf.wsdl11.WSDLRuntimeException: Part ServiceException defined as element {http://exception.service.disney.com/}ServiceException which is not in the schema.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
at com.disney.service.ioc.ServiceFactory.getService(ServiceFactory.java:77)
at com.wdw.pms.web.facade.housekeeping.AdminServiceFacade.getService(AdminServiceFacade.java:58)
at com.wdw.pms.web.facade.housekeeping.AdminServiceFacade.retrieveCurrentDate(AdminServiceFacade.java:572)
at com.wdw.pms.web.controller.housekeeping.H2UIController.intialize(H2UIController.java:275)
at com.wdw.pms.web.controller.housekeeping.H2UIController.<init>(H2UIController.java:198)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:277)
... 109 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HousekeepingAdminTarget' defined in class path resource [required-service-ioc-web.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object com.wdw.pms.web.facade.PMSServiceAdapter.getService()] threw exception; nested exception is org.apache.cxf.wsdl11.WSDLRuntimeException: Part ServiceException defined as element {http://exception.service.disney.com/}ServiceException which is not in the schema.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
... 127 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object com.wdw.pms.web.facade.PMSServiceAdapter.getService()] threw exception; nested exception is org.apache.cxf.wsdl11.WSDLRuntimeException: Part ServiceException defined as element {http://exception.service.disney.com/}ServiceException which is not in the schema.
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:130)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:332)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:782)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:709)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
... 130 more
Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Part ServiceException defined as element {http://exception.service.disney.com/}ServiceException which is not in the schema.
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildMessage(WSDLServiceBuilder.java:717)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:513)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:480)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:255)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:161)
at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:312)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:408)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:189)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:408)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:292)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:287)
at javax.xml.ws.Service.getPort(Service.java:188)
at com.disney.service.adapters.ws.WebServiceLocator.locateService(WebServiceLocator.java:129)
at com.disney.service.adapters.AbstractServiceAdapter._getService(AbstractServiceAdapter.java:44)
at com.wdw.pms.web.facade.PMSServiceAdapter.getService(PMSServiceAdapter.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:118)
... 134 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)