Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2090

Acegi Security fail after first request with Exception "BeanFactory not initialized or already closed..."

    XMLWordPrintableJSON

Details

    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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            vsbronnikov Vladimir S Bronnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: