cat icon indicating copy to clipboard operation
cat copied to clipboard

Unable to get component: class com.dianping.cat.analysis.TcpSocketReceiver.

Open zyshengcoding opened this issue 5 years ago • 1 comments

java项目 branch : origin/v3.0.0 环境:jdk1.7 maven 3.2以上 linux一直报错: 本地idea启动:tomcat报如下错误 Unable to get component: class com.dianping.cat.analysis.TcpSocketReceiver.,麻烦看下

zyshengcoding avatar Jan 07 '21 06:01 zyshengcoding

访问:http://127.0.0.1:8080/cat/s/config?op=serverConfigUpdate

client.xml配置信息如下:

报错信息如下: 消息 Servlet initializing failed. org.unidal.lookup.LookupException: Component(org.unidal.web.lifecycle.RequestLifecycle) lookup failure. details: Unable to lookup component 'org.unidal.web.lifecycle.RequestLifecycle', it could not be started.

描述 服务器遇到一个意外的情况,阻止它完成请求。

例外情况

javax.servlet.ServletException: Servlet initializing failed. org.unidal.lookup.LookupException: Component(org.unidal.web.lifecycle.RequestLifecycle) lookup failure. details: Unable to lookup component 'org.unidal.web.lifecycle.RequestLifecycle', it could not be started. role: org.unidal.web.lifecycle.RequestLifecycle roleHint: mvc classRealm: plexus.core

realm = plexus.core strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy Number of foreign imports: 0


根本原因。

org.unidal.lookup.LookupException: Component(org.unidal.web.lifecycle.RequestLifecycle) lookup failure. details: Unable to lookup component 'org.unidal.web.lifecycle.RequestLifecycle', it could not be started. role: org.unidal.web.lifecycle.RequestLifecycle roleHint: mvc classRealm: plexus.core

realm = plexus.core strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy Number of foreign imports: 0


根本原因。

org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error constructing component role: 'org.unidal.web.lifecycle.RequestLifecycle', implementation: 'org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle', role hint: 'mvc'

根本原因。

org.apache.xbean.recipe.ConstructionException: Composition failed of field null in object of type org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle because the requirement ComponentRequirement{role='org.unidal.web.mvc.lifecycle.RequestContextBuilder', roleHint='', fieldName='null'} was missing) org.codehaus.plexus.component.builder.XBeanComponentBuilder$RequirementRecipe.internalCreate(XBeanComponentBuilder.java:416) org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)

根本原因。

org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.unidal.web.mvc.lifecycle.RequestContextBuilder', it could not be started. role: org.unidal.web.mvc.lifecycle.RequestContextBuilder roleHint: default classRealm: plexus.core

realm = plexus.core strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy Number of foreign imports: 0


麻烦看下

zyshengcoding avatar Jan 07 '21 06:01 zyshengcoding