-->
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.  [ 4 posts ] 
Author Message
 Post subject: More information on How to Hibernate with PostgreSQL
PostPosted: Tue Jul 19, 2005 1:27 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Hi All,


I am trying to configure Hibernate with PostgreSQL 8.0.0, and I am
following the "Getting Started" instructions as shown here:
http://www.hibernate.org/152.html

I was able to download, unpask hibenate, placed the JDBC driver for
PostgreSQL (for jdk 1.5 and PostgreSQL 8.0.0)
postgresql-8.0-311.jdbc3.jar in the lib folder of hibernate3.0.

Next I edited the hibernate.properties file which looks like this:

## PostgreSQL

hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class org.postgresql.Driver
hibernate.connection.url jdbc:postgresql://u15.mm.com:5432
hibernate.connection.username postgres
hibernate.connection.password *********
#hibernate.query.substitutions yes 'Y', no 'N'


Then I copied the antlr-2.7.5H3.jar and the junit-3.8.1.jar files to
the ANT_HOME/lib folder


Later when I try to run the sample eg , it gives me the following error:


ant eg
Buildfile: build.xml

BUILD FAILED
file:/a/data/downloads/hibernate-3.0/build.xml:92: taskdef class
org.apache.tools.ant.taskdefs.optional.ANTLR cannot be found

Total time: 0 seconds



Is theres anythign I am missing ??? I would be pleased if anyone can
point our my mistake, also if someone knows of a more detailed
documentation on this.

All comments and suggestions appreicated. Thanks in advance.

Regards,


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:21 pm 
Senior
Senior

Joined: Tue Jun 21, 2005 10:18 am
Posts: 135
Location: South Carolina, USA
Are you sure everything is on your classpath?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:24 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
eagle79 wrote:
Are you sure everything is on your classpath?


Like what ???? What do I need to have set in my classpath?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:31 pm 
Senior
Senior

Joined: Tue Jun 21, 2005 10:18 am
Posts: 135
Location: South Carolina, USA
sam504u wrote:
Like what ???? What do I need to have set in my classpath?


umm... the path to antlr-2.7.5H3.jar, for one. Setting this up, of course, depends on your environment (in eclipse it's fairly easy to set in the project properties -- technically, it calls it a build path, I think)


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