-->
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.  [ 7 posts ] 
Author Message
 Post subject: Hibernate Artifact generation does not work
PostPosted: Sat Jun 18, 2005 1:24 am 
Newbie

Joined: Sat Jun 18, 2005 12:53 am
Posts: 4
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

an error occured when i used this wizard(Eclipse 3.1RC2 hibernate tools 3.0 alpha4a):NoClassDefFoundError,but i had the aspectj plugin installed.

Hibernate version:3.0

Mapping documents:

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

Full stack trace of any exception that occurs
:!MESSAGE org/aspectj/lang/Signature
!STACK 0
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:190)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:156)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:230)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:164)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:132)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:98)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

Name and version of the database you are using:MySql 4.1.7

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 1:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so if you use aspectj that .jar file needs to be in the classpath of your configuration.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: i did have aspectjrt.jar in my classpath
PostPosted: Sat Jun 18, 2005 4:10 am 
Newbie

Joined: Sat Jun 18, 2005 12:53 am
Posts: 4
max wrote:
so if you use aspectj that .jar file needs to be in the classpath of your configuration.


i did have aspectjrt.jar in my classpath,but it helped nothing.Thanks for your reply any way.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 6:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
did you have it in the classpath of the configuration ?

the project classpath does not matter here!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 8:21 am 
Newbie

Joined: Sat Jun 18, 2005 12:53 am
Posts: 4
i means the system variable classpath


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 12:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
have no meaning either!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 29, 2005 10:54 pm 
Newbie

Joined: Sat Jun 18, 2005 12:53 am
Posts: 4
i add aspectjrt.jar to the classpath of hibernate console configuration, and it works well!


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