Error parsing query

2009-07-15 Thread Peter Henderson
using Context Listener http://javanotepad.blogspot.com/2007/05/jpa-entitymanagerfactory-in-web.html -- Peter Henderson Director Starjar Limited. Mobile: +44 (0) 778 233 8645 Email: peter.hender...@starjar.com Web: www.starjar.com

Re: Error parsing query

2009-07-15 Thread Peter Henderson
problem. While I don't think you'd want to synchronize the method that initializes the factory, you might try it to see if it fixes the problem. -- Peter Henderson Director Starjar Limited. Mobile: +44 (0) 778 233 8645 Email: peter.hender...@starjar.com Web: www.starjar.com

Re: Error parsing query

2009-07-15 Thread Peter Henderson
set this property: property name=openjpa.jdbc.QuerySQLCache value=false/ Kevin -- Peter Henderson Director Starjar Limited. Mobile: +44 (0) 778 233 8645 Email: peter.hender...@starjar.com Web: www.starjar.com

Re: Error parsing query

2009-07-15 Thread Peter Henderson
Kevin Sutter wrote: Peter, Actually, that's good news from my viewpoint since it removes the QuerySQLCache variable from the equation. How are you performing the enhancement processing [1] for your Entities? Are you doing it during build time, or dynamically via an agent or loader? Any

OpenJPA on Tomcat

2009-05-17 Thread Peter Henderson
org.apache.catalina.core.StandardContext loadOnStartup -- Peter Henderson Director Starjar Limited. Mobile: +44 (0) 778 233 8645 Email: peter.hender...@starjar.com Web: www.starjar.com

@GeneratedValue and schemas

2009-05-13 Thread Peter Henderson
) at org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:98) at org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:72) ... 49 more -- Peter Henderson Director Starjar Limited. Mobile: +44 (0) 778 233 8645 Email

AutoDetach

2009-05-12 Thread Peter Henderson
, DataCache=ERROR/ property name=openjpa.AutoDetach value=close, commit/ /properties /persistence-unit /persistence -- Peter Henderson Director Starjar Limited. Mobile: +44 (0) 778 233 8645 Email: peter.hender...@starjar.com Web: www.starjar.com

Re: AutoDetach

2009-05-12 Thread Peter Henderson
wrote: Peter - What kind of problems are you having? An exception or stack trace would be very helpful. -Rick Peter Henderson wrote: ... If I don't manually call em.detach() I get lots of problems when hessian tries to serialize the object for wire transfer. ... -- Peter Henderson

Re: AutoDetach

2009-05-12 Thread Peter Henderson
entities in the EM's persistence context upon invocation. o The openjpa.AutoDetach property probably pre-dates the JPA spec. Have you tried running without this property? Kevin On Tue, May 12, 2009 at 8:58 AM, Peter Henderson peter.hender...@starjar.com wrote: Thanks for replying. The stack