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

springmvc 4.1.7 启动报错 #89

Closed
slvzy opened this issue May 13, 2019 · 5 comments
Closed

springmvc 4.1.7 启动报错 #89

slvzy opened this issue May 13, 2019 · 5 comments

Comments

@slvzy
Copy link

slvzy commented May 13, 2019

2019-05-13 13:30:37.320 ERROR [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.FrameworkServlet.initServletBean:498 - Context initialization failed
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: WebApplicationContext for namespace 'spring-servlet': startup date [Mon May 13 13:30:35 CST 2019]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357) ~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]

我在官方提供的nacos-spring-config-example dome 也替换4.1.7版本报一样的错误,是否版本不兼容???

@hhfdna
Copy link

hhfdna commented May 25, 2019

你解决了吗?我也遇到同样的问题了。还没解决呢?网上没人遇到过这个问题吗?有消息说一声啊。谢谢了

@chuntaojun
Copy link
Member

chuntaojun commented May 30, 2019

你解决了吗?我也遇到同样的问题了。还没解决呢?网上没人遇到过这个问题吗?有消息说一声啊。谢谢了

注入相关service或者object的时候,有没有set或者@autowrite?看看这个是不是能不能解决:LifecycleProcessor not initialized

@hhfdna
Copy link

hhfdna commented Jun 2, 2019

我解决了,修改了nacos-spring-context

@hhfdna
Copy link

hhfdna commented Jun 2, 2019

alibaba/nacos#1269

@chuntaojun
Copy link
Member

alibaba/nacos#1269

Ok, I have included your solution in pr

nkorange pushed a commit that referenced this issue Jun 24, 2019
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