SS丶Cc
侠客
侠客
  • UID104
  • 粉丝1
  • 关注1
  • 发帖数16
阅读:6669回复:1

平台启动提示Two components with the same name and precedence

楼主#
更多 发布于:2016-03-31 14:10
14:10:24,007 ERROR [[/ChengDuGBD]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Two components with the same name and precedence - component name: ProcessTriggerFetchStartupListener, component classes: com.sunsheen.gbd.listener.ProcessTriggerFetchStartupListener, com.sunsheen.gbd.datafetch.datacontrol.ProcessTriggerFetchStartupListener
    at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:611)
    at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:950)
    at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:897)
    at org.jboss.seam.init.Initialization.init(Initialization.java:716)
    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:80)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
拼搏吧 激情的岁月
409232112
骑士
骑士
  • UID103
  • 粉丝2
  • 关注0
  • 发帖数30
  • 社区居民
沙发#
发布于:2016-04-01 09:10
omponent classes: com.sunsheen.gbd.listener.ProcessTriggerFetchStartupListener, com.sunsheen.gbd.datafetch.datacontrol.ProcessTriggerFetchStartupListener 问题中这两句话是关键,在虚拟机加载类的时候,有两个相同的class就会报错误,解决方法:打开项目war,删除com.sunsheen.gbd.listener.ProcessTriggerFetchStartupListener和com.sunsheen.gbd.datafetch.datacontrol.ProcessTriggerFetchStartupListener任意一个即可
游客

返回顶部