Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新的trunk代码编译后将dubbo-admin.war部署到tomcat7下报错! #197

Closed
kevinjiang2022 opened this issue Jan 27, 2016 · 4 comments

Comments

@kevinjiang2022
Copy link

git clone https://github.com/alibaba/dubbo dubbo

mvn clean install -Dmaven.test.skip=true

upload the compiled dubbo-admin.war to tomcat7.x

startup.sh

-> throw Exception:

Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productionModeSensiblePostProcessor': Cannot create inner bean '(inner bean)' of type [com.alibaba.citrus.springext.util.SpringExtUtil$ConstructorArg] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#11': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)

@kevinjiang2022
Copy link
Author

已解决。

我的解决办法(实测通过):
将本地的Windows环境变量JAVA_HOME设置为1.7版本。
同时Idea打开的Dubbo的JDK也设置为1.7版本
执行 mvn clean install -Dmaven.test.skip=true

本地Tomcat7测试通过,Linux测试环境测试通过;没有修改官方的trunk源码。

@kevinjiang2022
Copy link
Author

需要tomcat7.x和jdk6/7支持;JDK8运行会报错,切记!

@teaey
Copy link
Contributor

teaey commented Jan 31, 2016

请问,jdk8 运行,有完成的错误堆栈么?

@ralf0131
Copy link
Contributor

This issue should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants