[3.2.1] Could not initialize Ebean?

121 views
Skip to first unread message

lu dongping

unread,
May 11, 2013, 11:53:50 PM5/11/13
to eb...@googlegroups.com
I just upgrade ebean from 2.8.1 to 3.2.1,
but it does not work now:

==========================
[INFO] Started Jetty Server
Exception in thread "Thread-5" java.lang.NoClassDefFoundError: Could not initialize class com.avaje.ebean.Ebean
at name.my.caweb.db.DbCaStorage$detectTable$1.invoke(db.kt:327)
...

==========================


Thanks,
Outersky

lu dongping

unread,
May 12, 2013, 4:38:13 AM5/12/13
to eb...@googlegroups.com
maven dependency:

========================
$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building mycaweb 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ mycaweb ---
[INFO] name.my:mycaweb:war:1.0.0
[INFO] +- name.my:myca:jar:1.0.0:compile
[INFO] |  +- name.my:mycore:jar:1.0.0:compile
[INFO] |  +- name.my:myutil:jar:1.0.0:compile
[INFO] |  \- org.bouncycastle:bcprov-jdk15on:jar:1.47:compile
[INFO] +- name.my:mylib:jar:1.0.0:compile
[INFO] |  +- com.googlecode.xmemcached:xmemcached:jar:1.3.5:compile
[INFO] |  |  \- org.slf4j:slf4j-api:jar:1.5.6:compile
[INFO] |  \- c3p0:c3p0:jar:0.9.1.2:compile
[INFO] +- com.sun.jersey:jersey-core:jar:1.17.1:compile
[INFO] +- com.sun.jersey:jersey-server:jar:1.17.1:compile
[INFO] |  \- asm:asm:jar:3.1:compile
[INFO] +- com.sun.jersey:jersey-servlet:jar:1.17.1:compile
[INFO] +- javax:javaee-web-api:jar:6.0:provided
[INFO] +- com.google.code.gson:gson:jar:2.2.2:compile
[INFO] +- com.danga.ttserver:ttserverclient:jar:1.0.0:compile
[INFO] +- org.avaje.ebeanorm:avaje-ebeanorm:jar:3.2.1:compile
[INFO] |  \- javax.persistence:persistence-api:jar:1.0:compile
[INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] +- org.jetbrains.kotlin:kotlin-stdlib:jar:0.5.429:compile
[INFO] |  \- org.jetbrains.kotlin:kotlin-runtime:jar:0.5.429:compile
[INFO] +- mysql:mysql-connector-java:jar:5.0.4:compile
[INFO] +- log4j:log4j:jar:1.2.14:compile
[INFO] \- junit:junit:jar:4.10:test
[INFO]    \- org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

lu dongping

unread,
May 12, 2013, 4:58:31 AM5/12/13
to eb...@googlegroups.com
It works if Ebean loaded explicitly in ServletContextListener.
just one line added:

    Class.forName("com.avaje.ebean.Ebean") ;

But without this, another thread (also started by a ServletContextListener ) can not initialise Ebean successfully.
very strange!

Rob Bygrave

unread,
May 12, 2013, 5:21:06 PM5/12/13
to eb...@googlegroups.com
Maybe if you post your entire stacktrace it might be clearer.

Cheers, Rob.


--
 
---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages