严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'StatisticalInfo': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
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.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:357)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:246)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:525)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
... 26 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:324)
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:474)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:442)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:329)
... 35 more
Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 7 counts of IllegalAnnotationExceptions
Class has two properties of the same name "CQty"
this problem is related to the following location:
at public float com.potevio.transmit.model.XmlDataDocument.getCQty()
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public float com.potevio.transmit.model.XmlDataDocument.CQty
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
Class has two properties of the same name "EFTotal"
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.getEFTotal()
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.EFTotal
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
Class has two properties of the same name "EInRackNo"
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.getEInRackNo()
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.EInRackNo
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
Class has two properties of the same name "EMTotal"
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.getEMTotal()
at com.potevio.transmit.model.XmlDataDo
cument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.EMTotal
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
Class has two properties of the same name "EWorkNo"
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.getEWorkNo()
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.EWorkNo
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
Class has two properties of the same name "VOnlineNo"
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.getVOnlineNo()
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.VOnlineNo
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
Class has two properties of the same name "VTotal"
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.getVTotal()
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
this problem is related to the following location:
at public int com.potevio.transmit.model.XmlDataDocument.VTotal
at com.potevio.transmit.model.XmlDataDocument
at private com.potevio.transmit.model.XmlDataDocument com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse._return
at com.potevio.transmit.service.jaxws_asm.GetStatisticalInfoResponse
at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:270)
at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:202)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:376)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:279)
at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172)
at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:454)
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:322)
... 46 more
没搞明白怎么回事,把实体类model的各个字段变量设置private修饰就好了。。。