-->
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.  [ 8 posts ] 
Author Message
 Post subject: Demo App build fails Hibernate 3.0 Oracle 10g
PostPosted: Sat Apr 16, 2005 4:56 am 
Beginner
Beginner

Joined: Sat Apr 16, 2005 4:43 am
Posts: 24
Location: Kolkata,India
Hi,
I am tryin to run the demo app in Hibernate 3.0 my classpath is as follows
:/data/hibernate-3.0/cglib-2.1.jar
:/data/hibernate-3.0/commons-collections-2.1.1.jar
:/data/hibernate-3.0/commons-logging-1.0.4.jar
:/data/hibernate-3.0/dom4j-1.5.2.jar
:/data/hibernate-3.0/ehcache-1.1.jar
:/data/hibernate-3.0/jdbc2_0-stdext.jar
:/data/hibernate-3.0/jta.jar
:/data/hibernate-3.0/log4j-1.2.9.jar
:/data/hibernate-3.0/xerces-2.6.2.jar
:/data/hibernate-3.0/xml-apis.jar
:/data/hibernate-3.0/hibernate3.jar
:/opt/apache-ant-1.6.2/etc/ant-bootstrap.jar
:/data/hibernate-3.0/lib/junit-3.8.1.jar

I am using Oracle 10g,RH9.0
I have set the bin of my apache ant installatio in PATH. ANT_HOME is set,Now whenever I am trying to run ant junitreport I am getting the following errors

Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties.
It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

cleantestdb:

init:
[echo] Build Hibernate-3.0 (2005-04-16 02:26:16)
[echo] JDK version: 1.4

init.antlr:

antlr:
[antlrtask] Exception in thread "main" java.lang.NoClassDefFoundError: antlr/Tool

BUILD FAILED
/data/hibernate-3.0/build.xml:163: ANTLR returned: 1

I have tried to solve this through supplied docs and hibernate.org.Can anybody please give me a pointer abt what I am doin wrong?. Thanks a million.
Deep

_________________
Greetings


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 16, 2005 5:07 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Copy antlr.jar to ANT_HOME/lib and complain to the Ant developers. Or use build.bat on Windows.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 16, 2005 5:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you need to add antlr-x.jar into the mix

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 16, 2005 5:11 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
In future we should point people to this page, where the isse has been documented for some time now: http://www.hibernate.org/6.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 1:26 am 
Beginner
Beginner

Joined: Sat Apr 16, 2005 4:43 am
Posts: 24
Location: Kolkata,India
Hi,
Thanks a million max and christian for your reply.I apologize for not looking into the said link.But this page I belive never turned up.I have followed your suggestion and have got over the earlier probem however It is now reporting another error the error is as given below ($ant junitreport)
BUILD FAILED
/data/hibernate-3.0/build.xml:658: taskdef A class needed by class org.hibernate
.tool.instrument.InstrumentTask cannot be found: net/sf/cglib/transform/Abstract
TransformTask

as my earlier post points out my CLASSPATH does point to cglib-2.1.jar . Any ideas pointers to what has gone wrong this time.

Deep

_________________
Greetings


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 1:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
same issue - ant distribution sucks ,)

you need to either add the needed jars to the global CLASSPATH or add them to the ant/lib directory.

(or simply just use the build.bat to build then it works out of the box)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 7:50 am 
Beginner
Beginner

Joined: Sat Apr 16, 2005 4:43 am
Posts: 24
Location: Kolkata,India
Hi Max,
thanks once more . The Ant distribution really sucks I copied some more Jar files to ant lib and my ant junitreport ran succesfully i.e Build successfull but with many errors like
[junit] TEST org.hibernate.test.hql.ASTParserLoadingTest FAILED
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.346 sec
[junit] TEST org.hibernate.test.typeparameters.TypeParameterTest FAILED
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.093 sec
[junit] TEST org.hibernate.test.unidir.BackrefTest FAILED
[junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 0.57 sec
[junit] TEST org.hibernate.test.unionsubclass.UnionSubclassTest FAILED
[junit] Tests FAILED
[junit] Running org.hibernate.test.instrument.InstrumentTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.69 sec
[junit] TEST org.hibernate.test.lazyonetoone.LazyOneToOneTest FAILED
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.412 sec
[junit] TEST org.hibernate.test.instrument.InstrumentTest FAILED
[junit] Tests FAILED


but my ant eg fails. Is this also related to Ant . The error it is throwing is
BUILD FAILED
/data/hibernate-3.0/build.xml:621: Java returned: 1

but I have placed oracle Jdbc thin drivers at hibernate lib directory and common JDBC programs using this drivers work.
Deep

_________________
Greetings


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2005 9:01 am 
Beginner
Beginner

Joined: Sat Apr 16, 2005 4:43 am
Posts: 24
Location: Kolkata,India
Hi,
I have come overcome the earlier problem . It was something to do with my hibernate.properties file settings .Now when I am running ant junitreport after a while it just hangs. Like for 30 mins I dont get any response the last lines are
[junit] Tests run: 101, Failures: 1, Errors: 1, Time elapsed: 61.147 sec
[junit] TEST org.hibernate.test.legacy.FooBarTest FAILED
[junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 15.736 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 6.963 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.722 sec
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.064 sec
[junit] Tests run: 27, Failures: 0, Errors: 0, Time elapsed: 3.697 sec
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 5.787 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 43.524 sec
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 32.079 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.023 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.801 sec
[junit] Tests run: 18, Failures: 0, Errors: 0, Time elapsed: 14.247 sec
I could check from backend that it had created a number of tables and has dropped most of them.Any idea what is causing it to hang.
Deep

_________________
Greetings


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