阅读:6667回复:1
平台启动提示Two components with the same name and precedence14: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) |
|
|
沙发#
发布于: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任意一个即可
|
|