-->
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.  [ 11 posts ] 
Author Message
 Post subject: Problem building the tools source code
PostPosted: Mon Nov 12, 2007 8:32 am 
Newbie

Joined: Fri Nov 02, 2007 9:28 am
Posts: 8
hi,

i downloaded the source for hibernate tools from SVN according to the instructions on: http://www.hibernate.org/268.html

when i run the build.sh file,i got the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

i'm running on Java 5 and my ant works. any suggestions?

thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 12, 2007 9:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you need to have ../Hibernate-3.2 next to the hibernatext folder so it will pick up the ant in Hibernate-3.2 (yes - its cumbersome ;(

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 1:45 pm 
Newbie

Joined: Mon Jan 30, 2006 3:40 pm
Posts: 6
Location: New York, NY
max wrote:
you need to have ../Hibernate-3.2 next to the hibernatext folder so it will pick up the ant in Hibernate-3.2 (yes - its cumbersome ;(


My code structure the same as suggested in http://www.hibernate.org/268.html I was able to successfully build Hibernate from source code, but with Hibernate tools I'm getting the following error:

Code:
ferbo:HibernateExt andrey$ ./build.sh jar copylib
Buildfile: build.xml
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

init:
     [echo] Build Hibernate Extensions-3.0 (2007-11-24 02:17:34)

BUILD FAILED
/Users/andrey/Development/workspace/hibernate/HibernateExt/common/common-build.xml:187: /Users/andrey/Development/workspace/hibernate/HibernateExt/src/java not found.

Total time: 0 seconds



And I don't see HibernateExt/src/java in SVN...

Any suggestions?

Andrey


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 3:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
cd tools
../build

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 3:48 pm 
Newbie

Joined: Mon Jan 30, 2006 3:40 pm
Posts: 6
Location: New York, NY
max wrote:
cd tools
../build


I feel I'm close.

Code:
ferbo:HibernateExt andrey$ pwd
/Users/andrey/Development/workspace/hibernate/HibernateExt
ferbo:HibernateExt andrey$ cd tools/
ferbo:tools andrey$ ../build.sh
Buildfile: build.xml
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.
Overriding previous definition of reference to testsrc.path

init:
     [echo] Build Hibernate Tools-3.2.0.CR1 (2007-11-24 02:46:40)

BUILD FAILED
/Users/andrey/Development/workspace/hibernate/HibernateExt/common/common-build.xml:201: Cannot locate hibernate-core.jar: /Users/andrey/Development/workspace/hibernate/hibernate-3.2/hibernate3.jar

Total time: 0 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 4:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes checkout hibernate-3.2 and build it before building the tools.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 5:32 pm 
Newbie

Joined: Mon Jan 30, 2006 3:40 pm
Posts: 6
Location: New York, NY
max wrote:
yes checkout hibernate-3.2 and build it before building the tools.


I did.

Code:
ferbo:Hibernate-3.2 andrey$ ./build.sh
Buildfile: build.xml
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
     [echo] Build Hibernate-3.2.4.sp1 (2007-11-24 04:30:30)
     [echo] JDK version: 1.5

init.antlr:

antlr:

compile:

jar:
      [jar] Building jar: /Users/andrey/Development/workspace/hibernate/Hibernate-3.2/build/hibernate3.jar
      [jar] Building jar: /Users/andrey/Development/workspace/hibernate/Hibernate-3.2/build/hibernate3-client.jar

BUILD SUCCESSFUL
Total time: 8 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 4:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yup, but apparently your path is Hibernate-3.2 instead of hibernate-3.2...

i common/build.xml you can adjust the name or just rename the dir.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 12:15 pm 
Newbie

Joined: Mon Jan 30, 2006 3:40 pm
Posts: 6
Location: New York, NY
max wrote:
yup, but apparently your path is Hibernate-3.2 instead of hibernate-3.2...

i common/build.xml you can adjust the name or just rename the dir.


That too and also I had to copy hibernate3.jar from hibernate-3.2/build/hibernate3.jar, where it was created by hibernate build script to hibernate-3.2/hibernate3.jar, where hibernateExt was looking for it. I'll change it on my machine, but I wonder what other users experience is.

May I suggest to change HibernateExt script to point it to build/hibernate3.jar?

I'm looking into adding some functionality to HibernateToolas as well as contributing to resolving pending issues in JIRA, so building from the source is not gonna be once in a while procedure.

Andrey


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 2:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
fell free to fix it and submit patches.

When we get GA out i'll move to the new "mavenish or ivy" structure; haven't decided yet which one ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Problem building the source code
PostPosted: Tue Feb 08, 2011 12:32 pm 
Newbie

Joined: Mon Feb 07, 2011 6:33 pm
Posts: 2
I cant even do ./build.sh I get

[root@localhost hibernate-3.2]# ./build.sh
bash: ./build.sh: Permission denied

and if I run ant I get

root@localhost hibernate-3.2]# ant
Buildfile: /home/halbertrn/Hibernate/hibernate-3.2/build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-3.2.0.ga (2011-02-08 10:29:40)
[echo] JDK version: 1.6

init.antlr:

antlr:
[antlrtask] Exception in thread "main" java.lang.NoClassDefFoundError: antlr/Tool
[antlrtask] Caused by: java.lang.ClassNotFoundException: antlr.Tool
[antlrtask] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[antlrtask] at java.security.AccessController.doPrivileged(Native Method)
[antlrtask] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[antlrtask] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[antlrtask] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[antlrtask] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[antlrtask] Could not find the main class: antlr.Tool. Program will exit.

BUILD FAILED
/home/halbertrn/Hibernate/hibernate-3.2/build.xml:163: ANTLR returned: 1


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