CXF调用接口时候报错 Unable to create JAXBContext for generated packages 求大神指点

qq_33656814 2016-10-09 09:31:27
本机部署到tomcat下调用是没有问题的,现场出现的问题
2016-09-22 17:40:00,354 [org.quartz.core.JobRunShell:211]-[ERROR] Job DEFAULT.getResultFromCkxtServiceCacheJob threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'getCkResults' on target class [class com.thunisoft.np.zjfw.service.GetResultFromCkxtService] failed; nested exception is java.lang.IllegalStateException: Unable to create JAXBContext for generated packages: "com.thunisoft.np.fy.spxt.webservice.service.impl" doesnt contain ObjectFactory.class or jaxb.index
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.lang.IllegalStateException: Unable to create JAXBContext for generated packages: "com.thunisoft.np.fy.spxt.webservice.service.impl" doesnt contain ObjectFactory.class or jaxb.index
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:343)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:196)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:189)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:144)
at com.thunisoft.np.zjfw.utils.WebServiceUtils.invoke(WebServiceUtils.java:167)
at com.thunisoft.np.zjfw.service.GetResultFromCkxtService.writeBackCcxx(GetResultFromCkxtService.java:177)
at com.thunisoft.np.zjfw.service.GetResultFromCkxtService.getCkResults(GetResultFromCkxtService.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
... 3 more
Caused by: javax.xml.bind.JAXBException: "com.thunisoft.np.

.spxt.webservice.service.impl" doesnt contain ObjectFactory.class or jaxb.index
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:340)
... 15 more
...全文
1709 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_33656814 2016-10-09
  • 打赏
  • 举报
回复
求大神啊!!!!!!
qq_33656814 2016-10-09
  • 打赏
  • 举报
回复
有人吗????

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧