java.lang.IllegalStateException: WebApplicationObjectSupport instance [xxx.UserFormController@123961b] does not run in a WebApplicationContext but in: org.springframework.context.support.GenericApplicationContext@1fc2fb: display name [org.springframework.context.support.GenericApplicationContext@1fc2fb]; startup date [Mon Apr 28 15:35:37 BST 2008]; root of context hierarchy

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Yaozong Zhu, 1 year ago
WebApplicationObjectSupport instance [xxx.UserFormController@123961b] does not run in a WebApplicationContext but in: org.springframework.context.support.GenericApplicationContext@1fc2fb: display name [org.springframework.context.support.GenericApplicationContext@1fc2fb]; startup date [Mon Apr 28 15:35:37 BST 2008]; root of context hierarchy
via Spring JIRA by Yaozong Zhu, 1 year ago
WebApplicationObjectSupport instance [xxx.UserFormController@123961b] does not run in a WebApplicationContext but in: org.springframework.context.support.GenericApplicationContext@1fc2fb: display name [org.springframework.context.support.GenericApplicationContext@1fc2fb]; startup date [Mon Apr 28 15:35:37 BST 2008]; root of context hierarchy
via AppFuse JIRA by Angela Stempfel, 1 year ago
WebApplicationObjectSupport instance [net.sf.navigator.menu.MenuLoader@1e04a35] does not run in a WebApplicationContext but in: org.springframework.context.support.ClassPathXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=23167422]; startup date [Thu Jun 22 08:51:45 CEST 2006]; root of context hierarchy
via struts-menu by hippie1
, 1 year ago
WebApplicationObjectSupport instance \[net.sf.navigator.menu.MenuLoader@1e04a35\] does not run in a WebApplicationContext but in: org.springframework.context.support.ClassPathXmlApplicationContext: display name \[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=23167422\]; startup date \[Thu Jun 22 08:51:45 CEST 2006\]; root of context hierarchy
via Stack Overflow by elie
, 2 months ago
WebApplicationObjectSupport instance [ResourceHttpRequestHandler [locations=[class path resource [META-INF/resources/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@3605c4d3]]] does not run in a WebApplicationContext but
via GitHub by ghillert
, 2 years ago
WebApplicationObjectSupport instance [org.thymeleaf.spring4.view.ThymeleafView@23e655f6] does not run in a WebApplicationContext but in: org.springframework.context.annotation.AnnotationConfigApplicationContext@5ae81e1: startup date [Wed Sep 24 13:52:51 EDT 2014]; root of context hierarchy
java.lang.IllegalStateException: WebApplicationObjectSupport instance [xxx.UserFormController@123961b] does not run in a WebApplicationContext but in: org.springframework.context.support.GenericApplicationContext@1fc2fb: display name [org.springframework.context.support.GenericApplicationContext@1fc2fb]; startup date [Mon Apr 28 15:35:37 BST 2008]; root of context hierarchy
at org.springframework.web.context.support.WebApplicationObjectSupport.getWebApplicationContext(WebApplicationObjectSupport.java:101)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.