Hi ,
I am upgrading application to hibernate 3 to hibernate 4.3.x (4.3.8.Final) with second level caching Now I am facing below Error: Error : java.lang.NoClassDefFoundError: org/hibernate/service/jndi/JndiNameException..
I have done some work on this then i found that org.hibernate.service.jndi.* package is removed from hibernate 4.3.x release's. (org.hibernate.service.jndi) package is still exist with older release(hibernate-core-4.0.1.Final.jar). Now when my application tries to build indexes , I get below full stacktrace error:
[java] 2015-05-06 17:25:23,621 INFO [main] { } C3P0Registry | Initializing c3p0-0.9.2.1 [built 20-M [java] 2015-05-06 17:25:23,840 INFO [main] { } AbstractPoolBackedDataSource | Initializing c3p0 poo , acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireF false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 31925 e -> 250, maxStatements -> 100, maxStatementsPerConnection -> 0, minPoolSize -> 50, nestedDataSource -> esql://localhost:5432/airs, properties -> {user=******, password=******, show_sql=true} ], preferredTes lReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, [java] 56319 [WARN] AnnotationBinder: HHH000457: Joined inheritance hierarchy [com.zzz.model.arts. rColumn. If you would prefer the legacy behavior, enable the `hibernate.discriminator.ignore_explicit_ [java] java.lang.NoClassDefFoundError: org/hibernate/service/jndi/JndiNameException [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:601) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
Please let me know if anyone have faced such types of challenge so far.
|