The api has changed in glassfish v3:
...
Type: Posts; User: drfence; Keyword(s):
The api has changed in glassfish v3:
...
The javadocs point to using the glassfish version. I'm not sure how I would get this one to be managed.
On JBoss and GlassFish, a similar facility is available through the JCA WorkManager. See...
The problem is that this call is missing now in the runtime jar:
WorkManagerFactory.getWorkManager(java.lang.String)
So perhaps they want a proper jndi lookup. The create-thread-pool command...
Spring 2.5.6. Where did you verify the glassfish api?
This previously worked in glassfish v2.1:
<bean id="threadPool" class="org.springframework.jca.work.glassfish.GlassFishWorkManagerTaskExecutor">
<property name="threadPoolName"...
I've attached a file with the full stack trace. Here is a subset with stuff cut out to get it in under the 10k char limit:
er#getTransaction:371) - Creating new transaction with name [null]:...
I recently fixed our indexing using the same settings. However now I see lazy initialization errors. Did you have any problems like this?
rg.hibernate.LazyInitializationException: failed to...
Here is the configuration I'm using with hibernate, spring and hibernate-search:
http://forum.hibernate.org/viewtopic.php?p=2406295#2406295
I've copied the relevant config here
...
dooh ... :o)
I'm trying to pass a few parameters to mysql via like this:
<bean id="appDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close">
<property...
I have the typical dao + service architecture and I'm scrolling through large result sets using ScrollableResults (> 250,000 rows). I have several classes:
BookService
HistoryService
BookLoader...
I was having the same problems using AbstractTransactionalDataSourceSpringContextTests and junit. This is my search code:
FullTextSession fullTextSession =
...
I'm trying to take my existing spring config that runs fine in tomcat and call it via a standalone java program.
I'm using hibernate 3 with hibernate search.
I get this:
...
I just started having this same problem with Tomcat 5.5 on CentOS. I'm not using custom tags but if I drop a new war into the webapps directory things blow up. I've even tried multiple version of...
That was it, thanks.
This is what happens when you stay up past midnight after your 16 month old has kept you up the past week with a stomach virus :confused:
I have started using velocity and I made a simple unit test that runs great. I then deploy it to my container and I get this:
org.springframework.mail.MailPreparationException: Could not...
I have acegi + spring + tomcat working great. I'm now trying to workout how this will fit with my Apache config.
I'd like to serve up all my html files (login included) via apache and use server...
Chapter 9 is a great read on transactions.
After I read this plus Chapter 12 on declarative transaction demarcation I was good to go.
I got it working very quickly and it's really some...
Well I thought this was the "easy" way to do things :-)
I'll look into the declarative transactions.
Right saw that too in the Hibernate docs. So I added this param
<prop key="hibernate.current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</prop>
and I get this:
...
I read the exact same line and thought "oh great the LocalSessionFactoryBean supports Hiberantes new getCurrentSession() scheme equivalent to the ThreadLocal trick"
It looks like this:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
...
So I read this and thought great:
http://www.springframework.org/docs/reference/orm.html#orm-hibernate-straight
However I just can't get this to work. I get this:
...
I just noticed this too .. it's completely empty. Can I get this from the source or a nightly snapshot? I didn't see it in the snapshot.
I was just going to post this too ... that link is VERY helpful.
Thanks,
Mark