Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.2
-
None
-
None
Description
I install sample "cocoon-acegisecurity-sample" from block "cocoon-auth" and run it with command jetty:run.
Then I request on http://localhost:8888/cocoon-acegisecurity-sample/ - this is the first request. All next requests fail with Exception (stacktrace):
2007-07-17 17:14:35.101::WARN: /cocoon-acegisecurity-sample/welcome
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:121)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
at org.acegisecurity.util.FilterChainProxy.obtainAllDefinedFilters(FilterChainProxy.java:221)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:136)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(ReloadingServletFilter.java:50)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
Why this Exception throw? What's wrong?
Then I request on http://localhost:8888/cocoon-acegisecurity-sample/ - this is the first request. All next requests fail with Exception (stacktrace):
2007-07-17 17:14:35.101::WARN: /cocoon-acegisecurity-sample/welcome
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:121)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)
at org.acegisecurity.util.FilterChainProxy.obtainAllDefinedFilters(FilterChainProxy.java:221)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:136)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(ReloadingServletFilter.java:50)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
Why this Exception throw? What's wrong?