You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stepan Koltsov (JIRA)" <ji...@apache.org> on 2007/11/27 20:36:43 UTC

[jira] Created: (WICKET-1189) SpringWebApplicationFactory cannot load WA from parent bean factory

SpringWebApplicationFactory cannot load WA from parent bean factory
-------------------------------------------------------------------

                 Key: WICKET-1189
                 URL: https://issues.apache.org/jira/browse/WICKET-1189
             Project: Wicket
          Issue Type: Bug
          Components: wicket-spring
    Affects Versions: 1.3.0-rc1
            Reporter: Stepan Koltsov
            Priority: Minor


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)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-1189) SpringWebApplicationFactory cannot load WA from parent bean factory

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1189.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-rc3
         Assignee: Igor Vaynberg

> SpringWebApplicationFactory cannot load WA from parent bean factory
> -------------------------------------------------------------------
>
>                 Key: WICKET-1189
>                 URL: https://issues.apache.org/jira/browse/WICKET-1189
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-spring
>    Affects Versions: 1.3.0-rc1
>            Reporter: Stepan Koltsov
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.3.0-rc3
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1189) SpringWebApplicationFactory cannot load WA from parent bean factory

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Bille Jensen updated WICKET-1189:
---------------------------------------

    Fix Version/s:     (was: 1.3.0-rc3)
                   1.3.0-final

> SpringWebApplicationFactory cannot load WA from parent bean factory
> -------------------------------------------------------------------
>
>                 Key: WICKET-1189
>                 URL: https://issues.apache.org/jira/browse/WICKET-1189
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-spring
>    Affects Versions: 1.3.0-rc1
>            Reporter: Stepan Koltsov
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.3.0-final
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1189) SpringWebApplicationFactory cannot load WA from parent bean factory

Posted by "Stepan Koltsov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545987 ] 

Stepan Koltsov commented on WICKET-1189:
----------------------------------------

Workaround exists: one can specify "applicationBean" filter param. This works because ac.getBean() looks for beans in parent contexts too.

> SpringWebApplicationFactory cannot load WA from parent bean factory
> -------------------------------------------------------------------
>
>                 Key: WICKET-1189
>                 URL: https://issues.apache.org/jira/browse/WICKET-1189
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-spring
>    Affects Versions: 1.3.0-rc1
>            Reporter: Stepan Koltsov
>            Priority: Minor
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.