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.  [ 4 posts ] 
Author Message
 Post subject: echache not found
PostPosted: Fri Nov 12, 2004 10:50 am 
Regular
Regular

Joined: Fri Oct 08, 2004 4:11 am
Posts: 78
Location: Nottingham, England
Hi,
i'm running JBoss 4.0.0 and have placed the following files in the /server/default/lib directory:

1. ehcache.xml
2. ehcache-1.0.jar

When I load up Jboss I get the following error message:

Code:
14:33:19,625 WARN  [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/Library/jboss-4.0.0/server/default/lib/ehcache-1.0.jar!/ehcache-failsafe.xml

14:33:19,669 WARN  [Plugin] Could not find configuration for test.Stock. Configuring using the defaultCache settings.


My hibernate.har structure is as follows:
-test/*.hbm.xml, *.class
-META-INF/hibernate-service.xml
-hibernate.cfg.xml

In an hbm.xml file I do the following:

Code:
   <class name="ArtistImages" table="artistimagestbl">
      <cache usage="read-write"/>
      <id name="ID" column="artistimage_id">
          <generator class="assigned"/>
      </id>
      .................   
   </class>


Where do I place the ehcache files if not in the /server/default/lib directory?

regards

Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 12, 2004 11:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well obviously it is finding the ehCache classes, hence the warning message from them.

I've never heard of any environment accepting resources directly from a lib directory though ;) The server lib directories are not part of the classpath; they are scanned and any archives there are added to the classpath. Try jarring up your ehcache.xml and then place that into the lib directory.


Top
 Profile  
 
 Post subject: Echache problem... still
PostPosted: Sun Dec 12, 2004 10:10 am 
Regular
Regular

Joined: Fri Oct 08, 2004 4:11 am
Posts: 78
Location: Nottingham, England
Hi Steve,
did what you recommended and jarred the echache.xml file to echache.xml.jar and placed it in:

server/default/lib

If the lib directory is being scanned, it is not pulling echache.xml.jar into the classpath. Is there an order by which the jars need to be loaded, i.e. could the problem be that the echache.xml.jar is being loaded before the echache-1.1.jar?

Andrew


Top
 Profile  
 
 Post subject: Problem
PostPosted: Sun Dec 12, 2004 12:27 pm 
Regular
Regular

Joined: Fri Oct 08, 2004 4:11 am
Posts: 78
Location: Nottingham, England
solved....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.