dubbo-admin-2.5.3 Run Error: Bean property ' Uritype ' was not writable or have an invalid

Source: Internet
Author: User

Because the JDK is version 1.8, there is a compatibility issue with Dubbo-admin. So the error:

Bean property ' Uritype ' are not writable or have an invalid

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

Workaround, modify the Tomcat default JDK to 1.7:

1) Modify the Catalina.bat file below the Bin folder to include the following
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%

Modified 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 below the Bin folder to read:
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"

Modified 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 use Startup.bat to start successfully:

 INFO context. Inheritablelistablebeanfactory-pre-instantiating singletons in Com.alibaba.citrus.springext.support.context.inheritablelistablebeanfacto[email protected]: 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. [email protected]18F7b25 INFO Pull. pullservice-initialized pull Service [key=pullservice.pullservice.5] with 1 pre-pulled tools, 2 pre-queued tools and 0 R Untime 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 the cache disabled INFO pull. pullservice-initialized pull Service [key=pullservice.pullservice#0.6] with 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 February 21, 2016 8:43:23 pm Org.apache.catalina.star Tup. Hostconfig deploydirectory Info: 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 Info: Starting Protocolhandler ["Http-bi o-9090 "] 21, 2016 8:43:23 pm Org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler [" ajp-bio-8029 "] 21, 2016 8:43:23 pm Org.apache.catalina.startup.Catalina start info: Server Startup in 32782 MS

There are, of course, other workarounds. See HTTPS://GITHUB.COM/ALIBABA/DUBBO/ISSUES/50

To access the console:

dubbo-admin-2.5.3 Run Error: Bean property ' Uritype ' was not writable or have an invalid

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.