dubbo-admin-2.5.3 運行報錯: Bean property 'URIType' is not writable or has an invalid,uritypewritable

來源:互聯網
上載者:User

dubbo-admin-2.5.3 運行報錯: Bean property 'URIType' is not writable or has an invalid,uritypewritable

因為 jdk 是1.8的版本,和 dubbo-admin 存在相容性問題。所以報錯:

Bean property 'URIType' is not writable or has an invalid

參見:https://github.com/alibaba/dubbo/issues/50

解決方案,修改 tomcat 預設的 jdk到 1.7 :

1) 修改bin檔案夾下面的catalina.bat檔案,把如下內容
rem ----- Execute The Requested Command ----------------------------------
echo Using CATALINA_BASE: %CATALINA_BASE% 
echo Using CATALINA_HOME: %CATALINA_HOME% 
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% 
echo Using JAVA_HOME: %JAVA_HOME% 

修改為:
echo Using CATALINA_BASE: %CATALINA_BASE% 
echo Using CATALINA_HOME: %CATALINA_HOME% 
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% 
echo Using JAVA_HOME: D:\Java\jdk1.7.0_79

2) 修改bin檔案夾下面的setclasspath.bat檔案,把如下內容: 
rem Set standard command for invoking Java. 

rem Note that NT requires a window name argument when using start. 
rem Also note the quoting as JAVA_HOME may contain spaces. 
set _RUNJAVA="%JAVA_HOME%\bin\java" 
set _RUNJAVAW="%JAVA_HOME%\bin\javaw" 
set _RUNJDB="%JAVA_HOME%\bin\jdb" 
set _RUNJAVAC="%JAVA_HOME%\bin\javac" 

修改為: 
rem Set standard command for invoking Java. 

rem Note that NT requires a window name argument when using start. 
rem Also note the quoting as JAVA_HOME may contain spaces. 
set _RUNJAVA="D:\Java\jdk1.7.0_79\bin\java.exe"

set _RUNJDB="D:\Java\jdk1.7.0_79\bin\jdb.exe"

然後在使用 startup.bat 啟動成功:

 INFO context.InheritableListableBeanFactory - Pre-instantiating singletons in com.alibaba.citrus.springext.support.context.InheritableListableBeanFactory@7c19d2: defining beans [org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,com.alibaba.citrus.service.configuration.support.PropertyPlaceholderConfigurer#0,pullService,templateService,mappingRuleService,dataResolverService,productionModeSensiblePostProcessor,webxConfiguration,pullService#0,pipeline,module.screen.Accesses,module.screen.Addresses,module.screen.Applications,module.screen.Consumers,module.screen.Loadbalances,module.screen.NoServicePrivilege,module.screen.Overrides,module.screen.Owners,module.screen.Providers,module.screen.Routes,module.screen.Services,module.screen.Weights,moduleLoaderService]; parent: com.alibaba.citrus.springext.support.context.InheritableListableBeanFactory@18f7b25 INFO pull.PullService - Initialized pull service [key=PullService.pullService.5] with 1 pre-pulled tools, 2 pre-queued tools and 0 runtime tools INFO velocity.VelocityEngine - SpringResourceLoaderAdapter : initialization starting. INFO velocity.VelocityEngine - SpringResourceLoaderAdapter : set path '/templates/governance/' INFO velocity.VelocityEngine - SpringResourceLoaderAdapter : initialization complete. INFO rule.ExtensionMappingRule - Initialized extension.input:ExtensionMappingRule with cache disabled INFO rule.ExtensionMappingRule - Initialized extension.output:ExtensionMappingRule with cache disabled INFO rule.DirectModuleMappingRule - Initialized action:DirectModuleMappingRule with cache disabled INFO rule.DirectModuleMappingRule - Initialized screen.notemplate:DirectModuleMappingRule with cache disabled INFO rule.FallbackModuleMappingRule - Initialized screen:FallbackModuleMappingRule with cache enabled INFO rule.DirectTemplateMappingRule - Initialized screen.template:DirectTemplateMappingRule with cache disabled INFO rule.FallbackTemplateMappingRule - Initialized layout.template:FallbackTemplateMappingRule with cache enabled INFO rule.DirectModuleMappingRule - Initialized control.notemplate:DirectModuleMappingRule with cache disabled INFO rule.FallbackModuleMappingRule - Initialized control:FallbackModuleMappingRule with cache enabled INFO rule.DirectTemplateMappingRule - Initialized control.template:DirectTemplateMappingRule with cache disabled INFO pull.PullService - Initialized pull service [key=PullService.pullService#0.6] with 16 pre-pulled tools, 9 pre-queued tools and 0 runtime tools INFO context.WebxComponentsLoader - WebxComponents: initialization completed INFO context.ContextLoader - Root WebApplicationContext: initialization completed in 27302 ms INFO servlet.SetLoggingContextFilter - Initializing filter: mdc INFO servlet.SetLoggingContextFilter - SetLoggingContextFilter - mdc: initialization completed INFO servlet.WebxFrameworkFilter - Initializing filter: webx INFO servlet.WebxFrameworkFilter - WebxFrameworkFilter - webx: initialization completed二月 21, 2016 8:43:23 下午 org.apache.catalina.startup.HostConfig deployDirectory資訊: Deployment of web application directory C:\dubbo-admin-tomcat-7.0.68\webapps\ROOT has finished in 32,704 ms二月 21, 2016 8:43:23 下午 org.apache.coyote.AbstractProtocol start資訊: Starting ProtocolHandler ["http-bio-9090"]二月 21, 2016 8:43:23 下午 org.apache.coyote.AbstractProtocol start資訊: Starting ProtocolHandler ["ajp-bio-8029"]二月 21, 2016 8:43:23 下午 org.apache.catalina.startup.Catalina start資訊: Server startup in 32782 ms

當然還有其他解決方案。參見 https://github.com/alibaba/dubbo/issues/50

存取控制台:

----------------------------------------

dubbo 報錯:Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'問題解決方案

注意上面的 Location 的路徑中不能含義 '.' 字元和 '-' 字元開頭的目錄,不然報錯:

具體原理可以參考:

http://blog.csdn.net/gaoshanliushui2009/article/details/50469595

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.