dubbo-admin-2.4.9 运行报错: Bean property 'URIType' is not writable or has an invalid 解决方法
2017-04-21 00:00
513 查看
启动dubbo-admin的前提是zookeeper已经运行起来了(命令行中运行zkServer.cmd),否则会一直等待着连接。
出现这个问题的原因是2.4.9版本的与jdk8不兼容,解决方法就是修改tomcat所指定的jdk路径即可。
所以我另外再装了jdk7,目录为C:\Program Files\Java\jdk1.7.0_79,tomcat我也是复制了一份,修改了server.xml的一系列端口,使得可以多个tomcat运行,然后进入tomcat下的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%"
if ""%1"" == ""debug"" goto use_jdk
echo Using JRE_HOME: "%JRE_HOME%"
goto java_dir_displayed
:use_jdk
echo Using JAVA_HOME: "C:\Program Files\Java\jdk1.7.0_79"//原来是%JAVA_HOME%,改成jdk7所在目录
:java_dir_displayed
echo Using CLASSPATH: "%CLASSPATH%"
再修改setclasspath.bat
rem Don't override _RUNJAVA if the user has set it previously
if not "%_RUNJAVA%" == "" goto gotRunJava
rem Set standard command for invoking Java.
rem Also note the quoting as JRE_HOME may contain spaces.
set _RUNJAVA="C:\Program Files\Java\jdk1.7.0_79\bin\java.exe"//原来是%JRE_HOME%
:gotRunJava
rem Don't override _RUNJDB if the user has set it previously
rem Also note the quoting as JAVA_HOME may contain spaces.
if not "%_RUNJDB%" == "" goto gotRunJdb
set _RUNJDB="C:\Program Files\Java\jdk1.7.0_79\bin\jdb.exe"//原来是%JAVA_HOME%
:gotRunJdb
goto end
运行startup.bat,
![](https://static.oschina.net/uploads/space/2017/0421/094340_sEim_1866080.png)
成功。
出现这个问题的原因是2.4.9版本的与jdk8不兼容,解决方法就是修改tomcat所指定的jdk路径即可。
所以我另外再装了jdk7,目录为C:\Program Files\Java\jdk1.7.0_79,tomcat我也是复制了一份,修改了server.xml的一系列端口,使得可以多个tomcat运行,然后进入tomcat下的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%"
if ""%1"" == ""debug"" goto use_jdk
echo Using JRE_HOME: "%JRE_HOME%"
goto java_dir_displayed
:use_jdk
echo Using JAVA_HOME: "C:\Program Files\Java\jdk1.7.0_79"//原来是%JAVA_HOME%,改成jdk7所在目录
:java_dir_displayed
echo Using CLASSPATH: "%CLASSPATH%"
再修改setclasspath.bat
rem Don't override _RUNJAVA if the user has set it previously
if not "%_RUNJAVA%" == "" goto gotRunJava
rem Set standard command for invoking Java.
rem Also note the quoting as JRE_HOME may contain spaces.
set _RUNJAVA="C:\Program Files\Java\jdk1.7.0_79\bin\java.exe"//原来是%JRE_HOME%
:gotRunJava
rem Don't override _RUNJDB if the user has set it previously
rem Also note the quoting as JAVA_HOME may contain spaces.
if not "%_RUNJDB%" == "" goto gotRunJdb
set _RUNJDB="C:\Program Files\Java\jdk1.7.0_79\bin\jdb.exe"//原来是%JAVA_HOME%
:gotRunJdb
goto end
运行startup.bat,
![](https://static.oschina.net/uploads/space/2017/0421/094340_sEim_1866080.png)
成功。
相关文章推荐
- dubbo-admin-2.5.3 运行报错: Bean property 'URIType' is not writable or has an invalid,uritypewritable
- dubbo-admin-2.5.3 运行报错: Bean property 'URIType' is not writable or has an invalid 解决方法
- SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
- SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
- 解决Bean property ** is not writable or has an invalid setter method
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决[00原创]
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- Bean property 'adminService' is not writable or has an invalid setter method
- spring中XML中Bean property 'dataSource' is not writable or has an invalid setter method.
- Bean property 'annotatedClasses' is not writable or has an invalid setter method
- 错误信息:Bean property 'sessionFactory' is not writable or has an invalid setter method.
- Bean property 'esyerDao' is not writable or has an invalid setter method. Does the parameter type of
- 异常处理:Bean property 'XXX' is not writable or has an invalid setter method.
- Spring 配置文件报错:Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'service' is not writable or has an invalid setter method. Did you mean 'serivce'?
- Bean property XX' is not writable or has an invalid setter method
- mediaTypes错误(Bean property 'mediaTypes' is not writable or has an invalid setter method.)
- Bean property 'manualPaperService' is not writable or has an invalid setter method. Did you mean 'ma
- Bean property 'sqlSessionTemplate' is not writable or has an invalid setter method. Does the paramet
- Bean property 'sessionFactory' is not writable or has an invalid setter method