因为linux中使用的是jdk1.8,所以网上直接下载的dubbo-admin.war基本是2.5.4及以下的,如果放入tomcat中启动会报以下错误信息

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid prope

rty 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURI

Broker]: 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.BeanWrapperImpl.setPropertyValue(BeanWrappe

rImpl.java:801)

       at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrappe

rImpl.java:651)

       at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(

AbstractPropertyAccessor.java:78)

       at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(

AbstractPropertyAccessor.java:59)

       at org.springframework.beans.factory.support.AbstractAutowireCapableBean

Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)

       ... 50 more

大家自己从github上下载dubbo的源码然后重新打包dubbo-admin之后再部署就不会报错了。我也打包好了一个dubbo-admin文件,这个是支持jdk1.8的,大家去我的资料里即可找到下载。

点击链接:http://down.51cto.com/data/2251844