Spring 3.1.0.M2, Struts 1.2.8
I have the standard String context configured in web.xml with org.springframework.web.context.ContextLoaderListener and the Struts plugin configured in...
Type: Posts; User: Chris; Keyword(s):
Spring 3.1.0.M2, Struts 1.2.8
I have the standard String context configured in web.xml with org.springframework.web.context.ContextLoaderListener and the Struts plugin configured in...
I do not think a definitive list of all the things that can go wrong with Spring deployments on WLS exists! You should post the exact version of WLS 10 you are using and the complete deployment...
It should be fairly easy to test if 'lost updates' occur by editing the same entity in two sessions in your app.
Chris
The quote from the GAE guy is interesting, does this mean that a transaction rejected because another user has modified the entity will cause a retry and therefore risk a "lost update" because the...
Quick work, the logging proves you have this working correctly with the retry outside the transaction.
I think you should consider removing the transactions around the dao's (they will confuse...
Have a look at this:
http://static.springsource.org/spring/docs/2.5.x/reference/transaction.html#transaction-declarative-applying-more-than-just-tx-advice
I have a transaction retry interceptor...
A default mbean server like this works for me (Spring 2.5.4, WLS 10.0, Tomcat 5.5.26):
<bean id="defaultMbeanServer" factory-method="locateMBeanServer"
...
The JPA Spec (JSR220: Exterprise JavaBeans, Version 3.0 Java Persistence API):
http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html
says (Section 9.1.9) says:
so presumably...
So if you are not using annotations, you must have declared a <generator> for each primary key column as described in the Hibernate manual:
...
You must have a transaction manager and configure transactions on 'service' methods, have a look at the following from the Spring reference manual:
...
Have you declared a transaction manager, something like this:
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property...
I have the following code in my high level exception handler, which gets the SQL, but not the parameters. Note that instead of using reflection you could just use instanceof...
I do not think this has anything to do with JNDI or your data source. Could you be missing @Entity for the class com.blank.model.User?
Chris
As per this Hibernate enhancement request the use of Oracle SQL hints is not directly supported:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2736
I am using a work arround by...
To enable the connection cache (pool) to shrink when connections are idle the connectionCacheProperties for the jdbc resource in the Tomcat server.xml should be:
...
This is my working configuration (Tomcat 5.5.26, Spring 2.5.4, Java 1.5.0_15-b04) for an 11.1.0.6 database:
Tomcat Server.xml
<Resource...
What about these annotations?
http://www.hibernate.org/hib_docs/annotations/reference/en/html/entity.html#entity-hibspec-query
Chris
See Oracle Metalink Note 269517.1 - java.sql.setTime Behaviour Change From 9i To 10g JDBC Driver
Chris
You may also want to configure the connection pool size and the number of cached statements with:
connectionCacheProperties="(InitialLimit=2,MinLimit=2,MaxLimit=10,MaxStatementsLimit=50)"
You...
I appear to have the same problem, did you find a solution?
thankyou,
Chris
For Oracle DB start here:
http://www.oracle.com/technology/tech/webservices/database.html
You could use one of these if an XSLT tranform can remove comments:
...
I have also encounter this, is is cause by a bug in Axiom, see:
https://issues.apache.org/jira/browse/WSCOMMONS-340
As the Javadoc for org.springframework.transaction.jta.OC4JJtaTransactionManager says it can only be used with OC4J 10.1.3 and higher.
org.springframework.transaction.jta.JtaTransactionManager...
According to the OC4J 10.1.2 doco here:
...