dubbo-admin 在jdk8 tomcat8下启动错误解决

本文详细记录了解决Dubbo在JDK1.8环境下启动失败的问题过程,通过调整pom.xml文件中的依赖版本及配置,最终成功启动Dubbo-admin。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在jdk1.8下启动dubbo,没想到出错了,在网上查了一下说是dubbo中某些方法不规范导致在jdk1.8下报错,按照网上的办法依然不行,那只能下载源码,修改错误,重新编译错误如下:

ERROR context.ContextLoader - Context initialization failed  
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type [com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while setting bean property 'brokers' with key [0]; nested excepti  
on is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#25': Cannot create inner bean 'server' of type [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exception is org.springframework.beans.fact  
ory.BeanCreationException: Error creating bean with name 'server': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType'  
is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?  
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)  
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)  
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)




项目比较多,但是我们只看dubbo-admin。


这里我已经编译好了可以直接下载使用,点击下载。dubbo-admin-2.5.7.war

下载地址:http://download.youkuaiyun.com/download/u010781073/10121031


打开pom.xml文件修改下列地方

1、修改citrus-webx-all版本。



2、添加velocity




3、排除spring的包。




然后保存,编译,打包重新发布,启动,这时候可以正常启动了。




然后再浏览器输入http://127.0.0.1:8082/dubbo-admin-2.5.7/




评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ZQGBack

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值