Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1189

SpringWebApplicationFactory cannot load WA from parent bean factory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0-rc1
    • 1.3.0-final
    • wicket-spring
    • None

    Description

      SpringWebApplicationFactory loads WAC using ac.getBeansOfType() method.

      However, we have configuration: WA is declared in the application context that is parent to WebApplicationContext provided to SpringWebApplicationFactory. So ac.getBeansOfType() returns nothing and SpringWebApplicationFactory cannot get WebApplication instance.

      BeanFactoryUtils#beansOfTypeIncludingAncestors should be used instead.

      java.lang.IllegalStateException: bean of type [org.apache.wicket.protocol.http.WebApplication] not found
      at org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:105)
      at org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:85)
      at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:485)

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            yozh Stepan Koltsov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: