Search:

Type: Posts; User: kbutler; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    402

    Sounds like custom code either way, just wanted...

    Sounds like custom code either way, just wanted to rule out a simple deployment. Not a big deal though - thanks!
  2. Replies
    2
    Views
    402

    Preauthenticate with specified user

    Yes I would actually like to specify, hard-code, the user to be 'authenticated'. This is to accomplish both to #1 have a security layer and #2 not to use it. Yes I see the irony, please don't ask. ...
  3. Replies
    9
    Views
    1,307

    Well I found the reason. From the previous stack...

    Well I found the reason. From the previous stack trace


    at org.hibernate.context.JTASessionContext.buildOrObtainSession(JTASessionContext.java:152)
    at...
  4. Replies
    9
    Views
    1,307

    I have discovered that the autoSessionClose is...

    I have discovered that the autoSessionClose is getting enabled upon session creation. This is an interesting stack:



    *** AutoCloseSession enabled on Session construction ***...
  5. Replies
    9
    Views
    1,307

    My apologies -- I posted in haste. The "first...

    My apologies -- I posted in haste. The "first real line of work" as I mentioned above,



    search.setUser(getLocalSecurityContext().getCurrentUser());


    does NOT close the session. The output...
  6. Replies
    9
    Views
    1,307

    I wanted to see what was causing the HBM session...

    I wanted to see what was causing the HBM session to close 'automatically', so I installed debug in Hibernate to dump stack. Here are the results.

    First line of real work does this:


    ...
  7. Replies
    9
    Views
    1,307

    I spent some time going through my configuration,...

    I spent some time going through my configuration, and made these changes:

    * deploying into an embedded Tomcat instead of Jetty

    * updating JOTM configuration using the carol.properties and...
  8. Replies
    9
    Views
    1,307

    I have been tracking down the autoCloseSession...

    I have been tracking down the autoCloseSession property and found that the SettingsFactory emits debug when the SessionFactory is being built. Here is the result in my app:



    INFO [main]...
  9. Replies
    9
    Views
    1,307

    Sure thing, and thanks for the look - this is the...

    Sure thing, and thanks for the look - this is the whole action method



    @Transactional(propagation=Propagation.REQUIRED)
    public String list() {
    log.debug("*** Loading all...
  10. Good question - you probably know about the docs...

    Good question - you probably know about the docs already

    https://www.hibernate.org/42.html

    http://static.springsource.org/spring/docs/2.5.x/reference/transaction.html#transaction-declarative
    ...
  11. Replies
    9
    Views
    1,307

    LazyInitializationException in page rendering with JTA/OpenSessionInViewFilter

    Hello -
    I am working with a Spring 2.5.6/Struts 2.1/HBM 3.2.5 application.

    The data model for this app consists of fairly deep associations. In the problem I am facing now, a CaseFile contains...
  12. BeanFactoryLocator causes "No bean named 'springSecurityFilterChain'"

    Hi -
    I tried converting my webapp to use the BeanFactoryLocator for access to the ApplicationContext instead of using ApplicationContextAware. But after doing so I receive the error

    ...
  13. Replies
    0
    Views
    1,840

    Jstl localization in Struts2

    Hi guys -
    I'm having an issue using JSTL's <fmt:message ..> tag within Struts2.

    I have set up multiple MessageResources using



    <bean id="messageSource"...
  14. Replies
    3
    Views
    2,693

    I found the problem, and it was as simple as I...

    I found the problem, and it was as simple as I had suspected. A new instance of the DAO was being created in the constructor of the Manager - that instance was not properly configured with the right...
  15. Replies
    3
    Views
    2,693

    And this is the output of DAO Style 2...

    And this is the output of DAO Style 2 (HibernateTemplate) failing



    ..
    DEBUG [btpool0-1] CommunityAction.list(59) | *** Loading all Communities ***
    DEBUG [btpool0-1] atomikos.println(84) |...
  16. Replies
    3
    Views
    2,693

    Log output

    This is log output of DAO Style 1 (getCurrentSession()) succeeding in a read operation:



    ...
    DEBUG [btpool0-1] JtaTransactionManager.getTransaction(371) | Creating new transaction with name...
  17. Replies
    3
    Views
    2,693

    HibernateTemplate and JTA

    I have been wrangling with this issue for a couple days now, and apparently have not found the right combination.

    My Spring app has DAO's accessing Hibernate in 2 different ways. This is the...
  18. Replies
    1
    Views
    663

    Wow, I though this was an easy one - but I see...

    Wow, I though this was an easy one - but I see so special mention in the docs, API, or the source.

    Is nobody using JTA+JOTM, multiple sessionFactories, and HibernateTemplate? Has anyone gotten...
  19. Replies
    1
    Views
    663

    Entity not mapped - easy question?

    Hi - I am new to Spring XA transactions. My app requires access to 2 different databases so I changed my transactionManager to use JTA via JOTM.



    <bean id="transactionManager"...
  20. Replies
    2
    Views
    2,947

    Well although it does not tell you how to do it,...

    Well although it does not tell you how to do it, the manual is explicit about the strategy to use in this situation:
    ...
  21. Replies
    2
    Views
    2,947

    LDAP custom UserDetails

    Hi - sorry to have to post this, but I've become rather confused.

    I am using namespace config to successfully log in via LDAP. This is my current config:



    <http auto-config="true"...
  22. Well I punted for now and just created my own...

    Well I punted for now and just created my own Singleton so I could initialize it in the InitServlet.
  23. Yup, I'm using the ContextLoaderServlet. ...

    Yup, I'm using the ContextLoaderServlet.

    Sorry if I wasn't clear - I need to access the AppContext created by the ContextLoaderServlet in another servlet that runs during startup (loaded via...
  24. Initializing a Spring-managed bean with a ServletContext

    I've got a Spring-managed Singleton that needs to be initialized with a ServletContext. The BeanFactory can instantiate the Singleton, but how do I get to it after that?

    The only logical place to...
  25. I'm having the same problem. His configuration...

    I'm having the same problem.

    His configuration looks like my original config, probably he got it from the same place I did in the SpringRef:
    ...
Results 1 to 25 of 26
Page 1 of 2 1 2