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: org.javagroups.MessageListener Class Not Found Error
PostPosted: Thu Oct 13, 2005 6:03 pm 
Newbie

Joined: Thu Oct 13, 2005 5:54 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.1

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
17:39:03,924 INFO Environment:470 - Hibernate 3.1 beta 3
17:39:03,955 INFO Environment:500 - hibernate.properties not found
17:39:03,971 INFO Environment:516 - using CGLIB reflection optimizer
17:39:03,971 INFO Environment:546 - using JDK 1.4 java.sql.Timestamp handling
17:39:04,143 INFO Configuration:1239 - configuring from resource: /hibernate.cfg.xml
17:39:04,143 INFO Configuration:1216 - Configuration resource: /hibernate.cfg.xml
17:39:05,283 INFO Configuration:460 - Reading mappings from resource: Event.hbm.xml
17:39:05,518 INFO HbmBinder:311 - Mapping class: Event -> EVENTS
17:39:05,580 INFO Configuration:1350 - Configured SessionFactory: null
17:39:05,580 INFO Configuration:996 - processing extends queue
17:39:05,580 INFO Configuration:1000 - processing collection mappings
17:39:05,580 INFO Configuration:1009 - processing association property references
17:39:05,580 INFO Configuration:1031 - processing foreign key constraints
17:39:05,783 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
17:39:05,783 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
17:39:05,783 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
17:39:05,799 INFO DriverManagerConnectionProvider:80 - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:data/tutorial
17:39:05,799 INFO DriverManagerConnectionProvider:86 - connection properties: {user=sa, password=****}
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/javagroups/MessageListener
Exception in thread "main" java.lang.ExceptionInInitializerError
at HibernateUtil.<clinit>(Unknown Source)
at EventManager.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/javagroups/MessageListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.hsqldb.jdbcConnection.openStandalone(Unknown Source)
at org.hsqldb.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1797)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1125)
... 2 more
HsqlHashMap init count: 2
HsqlHashMap update count: 0
17:39:05,846 INFO DriverManagerConnectionProvider:147 - cleaning up connection pool: jdbc:hsqldb:data/tutorial
Debugging Finished


Name and version of the database you are using:hsqldb

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I was trying to run the example defined in the refrence.pdf in chapter 2. Not sure what lib/jar file is missing, since I included all the requested jar file in the class path. This example does not seem to require any J2EE server running.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 6:51 am 
Newbie

Joined: Mon Jul 07, 2008 6:43 am
Posts: 1
Hello i'am new user of Hibernate.
I have the same problem. Can you help me please?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 9:24 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
What jar is this class in:

org/javagroups/MessageListener

You need it if you're using it. And where is that JAR on your classpath?

This is why I hate tutorials that ask you to download a bunch of jar files and use a bunch of code that hides what is really going on. It's just not a sound way to learn. Sorry for the editorializing, but it really bugs me when people are trying to learn, but the resources make it impossible.

If you want some good learning resources, follow my signature links. You won't run into these types of problems.

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.