-->
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: JBoss-Hibernate Example
PostPosted: Sat Aug 06, 2005 12:23 pm 
Newbie

Joined: Fri Aug 05, 2005 10:38 am
Posts: 11
Hi all,

i tried to deploy the jboss hibernate example which is often referenced in the forum from jboss cvs.

I tried to run with 4.0.3RC1, changed import in players.jsp to com.hibernate.xy, changed the find()-method to createQuery() together with list() and in hibernate-service.xml the packagepath for attributes Dialect and CacheProviderClass, deployed it and it works.

If i try to deploy in Jboss 4.0.2 i get exceptions:

NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

Seems to me like common-collections.jar not found...

and for using
<attribute name="CacheProviderClass">org.hibernate.cache.NoCacheProvider</attribute>
if get a NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap


I think some packages are missing. Any idea, where i need to place them?


And can perhaps someone descripe how to use the JBoss TreeCache?

Regards

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 2:59 pm 
Newbie

Joined: Tue Aug 02, 2005 12:14 pm
Posts: 11
There is a known bug in HAR deployer of in JBOss 4.0.2:It will not deploy an expaned (exploded) deployment. .har must be jared. Maybe this also happens in 4.0.3.?

_________________
Artemis


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 10:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Has nothing to do with that (that is not even a bug in the HARDeployer, btw).

The build for 4.0.2 is simply missing commons-collections.jar from ${server}/lib (this too is a known issue in jboss jira). Just copy that jar to ${server}/lib


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.