-->
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: NoClassDefFound Error in EntityManager
PostPosted: Fri Mar 14, 2008 2:03 pm 
Newbie

Joined: Thu Mar 13, 2008 5:45 am
Posts: 5
Location: India
I have used hibernate's EntityManager for implementing entity persistence in the java desktop environment.
I am getting below error at runtime :-

Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/file/ArchiveBrowser$Filter
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at st.itac.ccc.EntityClient.main(EntityClient.java:9)


can any one help me out which jar files I need to include in the class path/or which jar file is missing.
I have included following jar files in the classpath :-
hibernate3.jar,hibernate-annotations.jar,hibernate-entitymanager.jar,ejb3-persistence.jar,javassit.jar

can any one help me out.

with best regards,
Ajay Kumar
ST Microelectronics Ltd


Top
 Profile  
 
 Post subject: Re: NoClassDefFound Error in EntityManager
PostPosted: Fri Mar 14, 2008 2:31 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
jboss-archive-browsing.jar


Farzad-


Top
 Profile  
 
 Post subject: Jarfinder
PostPosted: Fri Mar 14, 2008 2:59 pm 
Newbie

Joined: Fri Apr 07, 2006 11:29 am
Posts: 17
The best place to look for these things, that I have found, is jarfinder.com.

It lists: jboss-common.jar or jboss-archive-browsing.jar. jboss-common has a lot of things, and I think that jboss-archive-browsing is a subset of classes.

Just search jarfinder for the class, and it will give you the jar containing the class.

*org.jboss.util.file.ArchiveBrowser*


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.