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.  [ 3 posts ] 
Author Message
 Post subject: compiling Hibernate3 with IBM JDK 1.3.1
PostPosted: Fri Jan 21, 2005 11:38 am 
Newbie

Joined: Wed Aug 04, 2004 6:19 am
Posts: 9
Hello,

I am trying to compile Hibernate 3.0a with IBM JDK 1.3.1
and am running into several problems:

1. I found the jdk at:
http://www-1.ibm.com/support/docview.ws ... wg24006479

2. I had to replace some code like Boolean.toValue or something like that
with the 1.4. implementation

3. I had to replace the jar:
jboss-system.jar, jboss-common.jar with some older version from jboss-3.2.3

4. I am getting lots of compile errors:

compile:
[javac] Compiling 582 source files to C:\temp\hibernate-3.0-ibm-1.3.1\build\classes
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\impl\SessionFactoryImpl.java:275: cann
ot resolve symbol
[javac] symbol : method lastIndexOf (java.lang.String)
[javac] location: class java.lang.StringBuffer
[javac] failingQueries.lastIndexOf(","),
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\impl\SessionFactoryImpl.java:276: cann
ot resolve symbol
[javac] symbol : method lastIndexOf (java.lang.String)
[javac] location: class java.lang.StringBuffer
[javac] failingQueries.lastIndexOf(",") + 1
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:70: cannot
resolve symbol
[javac] symbol : method updateArray (int,java.sql.Array)
[javac] location: interface java.sql.ResultSet
[javac] rs.updateArray( findColumn(columnName), x );
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:106: cannot
resolve symbol
[javac] symbol : method updateBlob (int,java.sql.Blob)
[javac] location: interface java.sql.ResultSet
[javac] rs.updateBlob( findColumn(columnName), x );
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:146: cannot
resolve symbol
[javac] symbol : method updateClob (int,java.sql.Clob)
[javac] location: interface java.sql.ResultSet
[javac] rs.updateClob( findColumn(columnName), x );
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:214: cannot
resolve symbol
[javac] symbol : method updateRef (int,java.sql.Ref)
[javac] location: interface java.sql.ResultSet
[javac] rs.updateRef( findColumn(columnName), x );
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:262: cannot
resolve symbol
[javac] symbol : method getURL (int)
[javac] location: interface java.sql.ResultSet
[javac] return rs.getURL( findColumn(columnName) );
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:533: cannot
resolve symbol
[javac] symbol : method getURL (int)
[javac] location: interface java.sql.ResultSet
[javac] return rs.getURL(columnIndex);
[javac] ^
[javac] C:\temp\hibernate-3.0-ibm-1.3.1\src\org\hibernate\jdbc\ResultSetWrapper.java:541: cannot



So my question is: will my effort be lucky if I continue?
Did someone else compile Hibernate3 with this jdk?

Any help would be highly appreciated.

Yours,
pgrau


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 12:11 pm 
Newbie

Joined: Wed Aug 04, 2004 6:19 am
Posts: 9
ok,

I got it to compile,
after replacing about 20 lines of code with
throw new SQLException("doesnt work with jdk 1.3.1")

hoping that i do not need these lines...

and my application works!

Perhaps some hibernate expert can comment this
or set up a wiki page?

yours,
pgrau


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 1:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I've forward your post to the dev list

_________________
Emmanuel


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