Sounds like custom code either way, just wanted to rule out a simple deployment. Not a big deal though - thanks!
Type: Posts; User: kbutler; Keyword(s):
Sounds like custom code either way, just wanted to rule out a simple deployment. Not a big deal though - thanks!
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. ...
Well I found the reason. From the previous stack trace
at org.hibernate.context.JTASessionContext.buildOrObtainSession(JTASessionContext.java:152)
at...
I have discovered that the autoSessionClose is getting enabled upon session creation. This is an interesting stack:
*** AutoCloseSession enabled on Session construction ***...
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...
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:
...
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...
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]...
Sure thing, and thanks for the look - this is the whole action method
@Transactional(propagation=Propagation.REQUIRED)
public String list() {
log.debug("*** Loading all...
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
...
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...
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
...
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"...
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...
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) |...
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...
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...
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...
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"...
Well although it does not tell you how to do it, the manual is explicit about the strategy to use in this situation:
...
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"...
Well I punted for now and just created my own Singleton so I could initialize it in the InitServlet.
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...
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...
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:
...