-->
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.  [ 1 post ] 
Author Message
 Post subject: EHCache config file cannot be found using Hibernate 3.1
PostPosted: Mon Dec 11, 2006 11:56 am 
Newbie

Joined: Mon Dec 11, 2006 11:43 am
Posts: 1
Hi,

I´ve got the problem to have to use Hibernate 3.1 with a difference eh-cache config file.
I´ve put a file named

ehcache-jobserver.xml

in the the root folder of the classpath (and really asserted that it is there).
With the following system properties this file cannot be found using Hibernate 3.1

Code:
System.setProperty("net.sf.ehcache.configurationResourceName", "ehcache-jobserver.xml" );


Also
Code:
System.setProperty("net.sf.ehcache.configurationResourceName", "/ehcache-jobserver.xml" );

does not work.

Both result in the error output
2006-12-11 16:51:40,463 WARN [DBReconnect-Thread] (Configurator.java:126) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/Libs/java_lib/hibernate-3.1/lib/ehcache-1.1.jar!/ehcache-failsafe.xml


When I´m using Hibernate 3.2 and the slightly different properties it works fine:
Code:
System.setProperty("net.sf.ehcache.configurationResourceName", "ehcache-jobserver.xml" );


Does someone have a similar problem or knows how to teach hibernate 3.1 to use a different ehcache-config file?

Th@nx,
Christian


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

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.