关于maven项目使用jetty:run指令启动时出错的问题

错误log:
[INFO] Initializing Spring root WebApplicationContext
[WARNING] failed ContextHandler@d117580{/DMC-IDX-WEB,file:/D:/JavaProject/HB_ODSA_IDEA/DMC-IDX-WEB/src/main/webapp/}
[WARNING] failed ContextHandlerCollection@571e723b
[WARNING] failed HandlerCollection@fddac2c
[INFO] Started SelectChannelConnector @ 0.0.0.0:9999
[WARNING] failed Server@4350acdc
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.456 s
[INFO] Finished at: 2016-08-15T16:01:00+08:00
[INFO] Final Memory: 22M/348M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mortbay.jetty:maven-jetty-plugin:6.0.0:run (default-cli) on project DMC-IDX-WEB: Failure: Error creating bean with name 'loginAction' defined in class path resource [spring/spring-action.xml]: Cannot resolve reference to bean 'controlService' while setting bean property 'controlService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controlService' defined in class path resource [spring/spring-services.xml]: Cannot resolve reference to bean 'dmcControlService' while setting bean property 'dmcControlService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dmcControlService': FactoryBean threw exception on object creation; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://localhost:9902/com.ai.frame.IControlService?application=consumer-of-dmcIndexCore&codec=dubbo&dubbo=2.5.4-SNAPSHOT&group=dmcIndexCoreGroup&heartbeat=60000&interface=com.ai.frame.IControlService&methods=execute&pid=11860&revision=2.5&side=consumer&timeout=20000&timestamp=1471248056840): client(url: dubbo://localhost:9902/com.ai.frame.IControlService?application=consumer-of-dmcIndexCore&codec=dubbo&dubbo=2.5.4-SNAPSHOT&group=dmcIndexCoreGroup&heartbeat=60000&interface=com.ai.frame.IControlService&methods=execute&pid=11860&revision=2.5&side=consumer&timeout=20000&timestamp=1471248056840) failed to connect to server localhost/127.0.0.1:9902 client-side timeout 3000ms (elapsed: 3025ms) from netty client 192.168.23.1 using dubbo version 2.5.4-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] Shutdown hook executing
[INFO] Shutdown hook complete

Process finished with exit code 1

qq_43504660
书院二层楼十四先生 我也是同样的问题,你解决了吗?
12 个月之前 回复

1个回答

从你的报错信息来看,和maven没啥关系,而是你代码的问题,已经有提示信息了,对应着一下
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐