-->
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: middlegen problem for postgre
PostPosted: Wed Aug 18, 2004 7:23 pm 
Beginner
Beginner

Joined: Sun May 09, 2004 7:18 pm
Posts: 35
When I use Middlegen to generate the ddl for Postgres, it gave me the errors.

Hibernate version:
Hibernate2.1

Mapping documents:
The mapping documents are generated by sqlserver

Code between sessionFactory.openSession() and session.close():
n/a

Full stack trace of any exception that occurs:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:55
)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83
)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:118)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:303)

Name and version of the database you are using:
PostgreSQL7, pg74.213.jdbc3.jar jdbc driver

Debug level Hibernate log excerpt:


Another question, which sql type should be used in postgres for java boolean?

thanx in advance.

Ping


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 18, 2004 8:37 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
SSLSocket exists in java 1.4.2 - what is your java version ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 7:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I generally map java Booleans to char(1) using a 'Y' or 'N' using the yes_no hibernate mapping type.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 12:15 pm 
Beginner
Beginner

Joined: Sun May 09, 2004 7:18 pm
Posts: 35
snpesnpe wrote:
SSLSocket exists in java 1.4.2 - what is your java version ?


I am using java 1.4.2_04


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 12:35 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Are You sure ? You have another JVM (maybe)

Are You try postgersql example (postgresql-examples.jar) ?

regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 12:41 pm 
Beginner
Beginner

Joined: Sun May 09, 2004 7:18 pm
Posts: 35
snpesnpe wrote:
Are You sure ? You have another JVM (maybe)

Are You try postgersql example (postgresql-examples.jar) ?

regards


i see. I do have another JVM 1.3.1 which is from the Oracle client installation. how can I choose which one to use?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 12:52 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
What is your OS
If You on linux/unix set PATH with
export PATH=VAS_JDK1.4/bin:$PATH

If You on windows You have environ vaariable in Control Panel

Or delete oracle JVM


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.