roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <>
Subject [jira] Resolved: (ROL-547) Roller and Spring Framework Context Collisions?
Date Sun, 18 Jul 2010 19:18:50 GMT


David Johnson resolved ROL-547.

    Resolution: Won't Fix

No longer relevant

> Roller and Spring Framework Context Collisions?
> -----------------------------------------------
>                 Key: ROL-547
>                 URL:
>             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.

View raw message