openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Kaminski <fabiokamin...@gmail.com>
Subject Re: Openjpa + MysqlCluster + Guice and Warpersist
Date Fri, 26 Mar 2010 22:59:17 GMT
with beta 3 version works fine.. dont know why.. anyway its working now.

thanks!

On Fri, Mar 26, 2010 at 7:13 PM, Fabio Kaminski <fabiokaminski@gmail.com>wrote:

> Im trying to run openjpa with mysql cluster.. and even get the source of
> mysql clusters and build it passing openjpa 2 beta 2 as library..
> everything went fine..
>
> i got nbd., clusterj and all cluster jars build it perfectly..
>
> but when  i try to run i got the following exception
>
> java.lang.NoSuchMethodError: org.apache.openjpa.lib.conf.IntValue.get()I at
> com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.getConnectDelay(NdbOpenJPAConfigurationImpl.java:150)
>
> im using the following config in *persistence.xml*:
>
> <persistence-unit name="ndbjpa" transaction-type="RESOURCE_LOCAL">
>
> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
>
>     <properties>
>         <property name="openjpa.ConnectionDriverName"
> value="com.mysql.jdbc.Driver"/>
>         <property name="openjpa.ConnectionURL"
> value="jdbc:mysql://localhost:3306/db"/>
>         <property name="openjpa.ConnectionUserName" value="root"/>
>         <property name="openjpa.ConnectionPassword" value=""/>
>         <property name="openjpa.BrokerFactory" value="ndb"/>
>         <property name="openjpa.ndb.connectString" value="localhost:1186"/>
>         <property name="openjpa.ndb.database" value="db"/>
>     </properties>
>
> </persistence-unit>
>
> Im using google guice for dependency injection and  warppersist libs, which
> automatically builds EntityManager in guice modules , that are constructed
> when jetty starts as a filter..
> *
> *is this method not there anymore? should it be there? or whats the
> possible reason for  this?
>
> Thanks.
>
> *below is the whole(hide the jetty methods) exception trace: *
>
> java.lang.NoSuchMethodError: org.apache.openjpa.lib.conf.IntValue.get()I at
> com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.getConnectDelay(NdbOpenJPAConfigurationImpl.java:150)
> at
> com.mysql.clusterj.openjpa.NdbOpenJPABrokerFactory.(NdbOpenJPABrokerFactory.java:83)
> at
> com.mysql.clusterj.openjpa.NdbOpenJPABrokerFactory.newInstance(NdbOpenJPABrokerFactory.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:124) at
> org.apache.openjpa.kernel.Bootstrap.newBrokerFactory(Bootstrap.java:62) at
> org.apache.openjpa.persistence.PersistenceProviderImpl.getBrokerFactory(PersistenceProviderImpl.java:147)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:93)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:153)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:64)
> at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:150)
> at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:70)
> at
> com.wideplay.warp.jpa.EntityManagerFactoryProvider$1.get(EntityManagerFactoryProvider.java:56)
> at
> com.wideplay.warp.jpa.EntityManagerFactoryProvider$1.get(EntityManagerFactoryProvider.java:49)
> at com.wideplay.warp.util.LazyReference.get(LazyReference.java:53) at
> com.wideplay.warp.jpa.EntityManagerFactoryProvider.get(EntityManagerFactoryProvider.java:71)
> at
> com.wideplay.warp.jpa.EntityManagerFactoryProvider.get(EntityManagerFactoryProvider.java:36)
> at
> com.wideplay.warp.jpa.JpaInternalWorkManager.beginWork(JpaInternalWorkManager.java:36)
> at
> com.wideplay.warp.jpa.JpaInternalWorkManager.beginWork(JpaInternalWorkManager.java:28)
> at com.wideplay.warp.jpa.JpaWorkManager.beginWork(JpaWorkManager.java:39) at
> com.wideplay.warp.persist.SessionFilter$1$1.start(SessionFilter.java:52) at
> com.wideplay.warp.util.Lifecycles.failEarly(Lifecycles.java:39) at
> com.wideplay.warp.util.Lifecycles.failEarlyAndLeaveNoOneBehind(Lifecycles.java:27)
> at com.wideplay.warp.persist.SessionFilter.doFilter(SessionFilter.java:77)
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:67)
> at
> com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
> at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message