-->
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.  [ 2 posts ] 
Author Message
 Post subject: IBM jdk 1.3 and Hibernate 3.1
PostPosted: Tue Mar 21, 2006 10:42 am 
Newbie

Joined: Tue Mar 21, 2006 10:30 am
Posts: 1
Hi,
I am a new user of Hibernate. I downloaded Hibernate 3.1 , coded my prototype and it worked fine as a standalone project.
When I tried using it within the context of websphere portal 5.0.x which used IBM jdk 1.3, I got an UnsupportedVersion error.

I tried recompiling Hibernated classes in RAD.
It seems to be using methods like blob.setbytes and others which are not available in jdk 1.3.

Has anybody else faced this issue. If infact Hibernate 3.1 uses non jdk 1.3.x code, do we have sources specifically for 1.3.x ? or perhpas a library of jars for jdk1.3

In the faq and on the site, it says that jdk1.3 is supported , howwever a recompilation is needed. I am not able to recompile.

Any insight into this issue is greatly appreciated


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 4:28 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
you can use JDK 1.4 to compile for 1.3
ant -Djavac.target=1.3 -Djavac.source=1.3

it looks like you can compile on IBM's 1.3.1 if you replace some libraries in the lib directory with 1.3 compiled binaries
/usr/java/src/hibernate-3.1.3/lib/jacc-1_0-fr.jar(javax/security/jacc/EJBMethodPermission.class)
[javac] class file has wrong version 48.0, should be 47.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import javax.security.jacc.EJBMethodPermission;

In any case look carefully at the libraries in hibernate's lib directory and make sure that they are 1.3 binaries and if necessary replace them with libraries from IBM app server...

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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