You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2010/07/18 21:18:50 UTC

[jira] Resolved: (ROL-547) Roller and Spring Framework Context Collisions?

     [ https://issues.apache.org/jira/browse/ROL-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson resolved ROL-547.
-------------------------------

    Resolution: Won't Fix

No longer relevant

> Roller and Spring Framework Context Collisions?
> -----------------------------------------------
>
>                 Key: ROL-547
>                 URL: https://issues.apache.org/jira/browse/ROL-547
>             Project: Roller
>          Issue Type: Bug
>          Components: Database Access & Data Model
>    Affects Versions: 1.1
>            Reporter: Art Vossberg
>            Assignee: Roller Unassigned
>            Priority: Minor
>
> I am trying to use the spring framework with roller.
> When I try to use the spring framework's default ContextLoaderListener/applicationContext.xml approach I keep getting "No hibernate session bound to thread and configuration does not allow the creation of one" errors. If I hard code the ApplicationContext, the same beans that threw that error work fine. So, in a way, the spring framework does work with roller it just does not work the way it is supposed to and requires several classes to work around this "bug". 
> I note that roller uses a context listener to load, among other things, config data. This context listener always loads before the ApplicationContext. I tried to work around this loading issue by including a ContextLoader.initWebApplicationContext at the top of the roller context loader stack. DEBUG indicates this loaded the ApplicationContext before the call to load the config data, but the error remained.
> I am posting this to the spring framework mailing list and any other list that might be able to offer some insights into this problem. I know this is somewhat off the beaten path for this list but the spring framework can work with roller and offers some advantages over the present ThreadLocal/CloseSessionFilter approach.
> Thanks in advance and regards,
> art

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