-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernate4.3.8.Final hibernate/service/jndi/JndiException
PostPosted: Wed May 06, 2015 8:15 am 
Newbie

Joined: Wed Apr 22, 2015 4:58 am
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: Hibernate4.3.8.Final hibernate/service/jndi/JndiException
PostPosted: Thu May 07, 2015 4:46 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
Hi,

JndiNameException is now under the package
Code:
org.hibernate.engine.jndi


I guess you didn't update something in your project.

Cheers,
Davide


Top
 Profile  
 
 Post subject: Hibernate and Spring Upgradation Caching not working
PostPosted: Thu May 07, 2015 7:40 am 
Newbie

Joined: Wed Apr 22, 2015 4:58 am
Posts: 4
Hi ,
I am upgrading application hibernate and spring version with below current version but Ehcahce is not working after upgradation.

spring.version==4.1.6.RELEASE
Hibernate version= 4.3.9.Final
<dependency org="net.sf.ehcache" name="ehcache" rev="2.4.3">
<dependency org="org.hibernate" name="hibernate-ehcache" rev="4.3.9.Final"> i am exclude the net.sf.ehcache from this dependency
<exclude org="net.sf.ehcache" module="ehcache-core">

but Caching is not working.

Please suggest what version we should use for spring(4.x) and hibernate and ehcache for caching .

Thanks for your response.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.