SpringMvc+CXF+Weblogic,偶尔会报拦截器错误,找不到setAfter、setBefore

樱_花雪 2017-12-05 09:56:38
<2017-12-5 上午09时36分27秒 CST> <Error> <HTTP> <BEA-101216> <Servlet: "com.thp.powerIncident.webservice.impl.OutageEventJHWebServiceImpl" failed to preload on startup in Web application: "PowerIncident".
com.sun.xml.ws.spi.db.DatabindingException:
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setAfter] or [getAfter] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setAfter(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[after]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setBefore] or [getBefore] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setBefore(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[before]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Runtime Exceptions:
---------------------------------------------------------

at com.sun.xml.ws.db.toplink.JAXBContextFactory.newContext(JAXBContextFactory.java:190)
at com.sun.xml.ws.spi.db.BindingContextFactory.create(BindingContextFactory.java:182)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:218)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:191)
at java.security.AccessController.doPrivileged(Native Method)
Truncated. see log file for complete stacktrace
Caused By: javax.xml.bind.JAXBException:
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setAfter] or [getAfter] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setAfter(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[after]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setBefore] or [getBefore] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setBefore(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[before]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Runtime Exceptions:
---------------------------------------------------------

- with linked exception:
[Exception [EclipseLink-0] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setAfter] or [getAfter] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setAfter(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[after]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setBefore] or [getBefore] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setBefore(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[before]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Runtime Exceptions:
---------------------------------------------------------
]
at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:1092)
at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:189)
at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:165)
at com.sun.xml.ws.db.toplink.JAXBContextFactory.newContext(JAXBContextFactory.java:186)
at com.sun.xml.ws.spi.db.BindingContextFactory.create(BindingContextFactory.java:182)
Truncated. see log file for complete stacktrace
Caused By: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setAfter] or [getAfter] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setAfter(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[after]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setBefore] or [getBefore] is not defined in the object [org.apache.cxf.phase.AbstractPhaseInterceptor].
Internal Exception: java.lang.NoSuchMethodException: org.apache.cxf.phase.AbstractPhaseInterceptor.setBefore(java.util.Set)
Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping[before]
Descriptor: XMLDescriptor(org.apache.cxf.phase.AbstractPhaseInterceptor --> [])

Runtime Exceptions:
---------------------------------------------------------

at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:696)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:632)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:568)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:799)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:756)
Truncated. see log file for complete stacktrace
>
...全文
137 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
樱_花雪 2017-12-05
  • 打赏
  • 举报
回复
大家有没有遇到类似的问题,在tomcat下跑着正常。

50,523

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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