Dubbo-admin-2.5.3 running error: Bean property & #39; URIType & #39; is not writable or has an invalid, uritypewritable

Source: Internet
Author: User

Dubbo-admin-2.5.3 running error: Bean property 'uritype' is not writable or has an invalid, uritypewritable

Because jdk is of version 1.8, it has compatibility issues with dubbo-admin. Therefore, the following error occurs:

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

See https://github.com/alibaba/dubbo/issues/50

Solution: Modify the default jdk of tomcat to 1.7:

1) modify the catalina. bat file in the bin folder and set the following content:
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 %

To:
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) modify the setclasspath. bat file under the bin folder and put the following content:
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"

To:
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"

Then start successfully using 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-mdc: initialization completed INFO servlet. webxFrameworkFilter-Initializing filter: webx INFO servlet. webxFrameworkFilter-webx: initialization completed August 1, 2016 8:43:23 org. apache. catalina. startup. hostConfig deployDirectory information: Deployment of web application directory C: \ dubbo-admin-tomcat-7.0.68 \ webapps \ ROOT has finished in 32,704 ms February 21, 2016 8:43:23 PM org. apache. coyote. abstractProtocol start information: Starting ProtocolHandler ["http-bio-9090"] February 21, 2016 8:43:23 org. apache. coyote. abstractProtocol start information: Starting ProtocolHandler ["ajp-bio-8029"] February 21, 2016 8:43:23 org. apache. catalina. startup. catalina start information: Server startup in 32782 MS

Of course there are other solutions. See https://github.com/alibaba/dubbo/issues/50

Access the console:

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

Dubbo error: Failed to read schema document 'HTTP: // code.alibabatech.com/schema/dubbo/dubbo.xsd'problem solving method

Note that the above Location path cannot indicate the directory starting with '.' or '-'. Otherwise, an error is returned:

For details, refer:

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.