-->
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.  [ 6 posts ] 
Author Message
 Post subject: Compiling Hibernate 3.1.3 using JDK 1.3
PostPosted: Wed Jul 05, 2006 10:01 am 
Newbie

Joined: Wed Jul 05, 2006 9:41 am
Posts: 3
Hi All,
i am facing this problem.

I m using WAS 5.0.2 which supports JDK 1.3 but i want to use Hibernate version:3.1.3 which works with and only above JDK 1.4.

So i started compiling Hibernate 3.1.3 using JDK 1.3.
Replacement for most of the jars i got but
for jacc-1_0-fr.jar, m getting this exception:

[javac] E:\Lab\HibernateLab\hibernate-3.1\src\org\hibernate\secure\JACCConfi
guration.java:6: cannot access javax.security.jacc.EJBMethodPermission
[javac] bad class file: E:\Lab\HibernateLab\hibernate-3.1\lib\jacc-1_0-fr.ja
r(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;
[javac] ^
[javac] 1 error

Can someone gimme the respective jar compiled with JDK 1.3 OR the SOURCE for jacc-1_0-fr.jar OR is there any other way to do the same.

Regards,
Raghu


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 2:49 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hi you,

here is not much information:

http://hibernate.org/120.html#A2

you better search the forum for help.
Usually the class which do not compile
are not really needed.

Hope this helps.

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 9:52 am 
Newbie

Joined: Wed Jul 05, 2006 9:41 am
Posts: 3
The following happened while building Hibernate 3 with JDK 1.3:

The compilation of org.hibernate.secure.JACCConfiguration.java fails because it needs the class javax.security.jacc.EJBMethodPermission compiled with JDK 1.3.

javax.security.jacc.EJBMethodPermission is present in jacc-1_0-fr.jar. But this jar is compiled with JDK 1.4.2, and we couldn't find any replacement for this jar. (this is what I mentioned in my initial post)

The hibernate configuration class org.hibernate.cfg.Configuration is dependent on org.hibernate.secure.JACCConfiguration.java, and hence, this java file cannot be excluded from the build process.

So I feel we can not remove the files which dont compile. Has anybody done this? if so, can u please provide information on how it was acheived.

Many thanks
Raghu


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 8:28 am 
Newbie

Joined: Wed Jul 05, 2006 9:41 am
Posts: 3
has anybody compiled hibernate 3 with JDK 1.3 successfully.
If so can they send the binaries which I can use.

Thanks in advance.

Raghu


Top
 Profile  
 
 Post subject: compiling Hibernate 3.1 with jdk 1.3
PostPosted: Fri Jul 21, 2006 1:42 am 
Newbie

Joined: Fri Jul 21, 2006 1:38 am
Posts: 3
I have the same problem, I tried to compile Hibernate 3.1 with JDK 1.3 and ran into the same issue. If someone knows the resolution for this, please post, Thanks


Top
 Profile  
 
 Post subject: solution
PostPosted: Fri Jul 21, 2006 2:04 am 
Newbie

Joined: Fri Jul 21, 2006 1:38 am
Posts: 3
Ok, I have it working now and was able to build the hibernate3.jar file

The solution is to NOT use JDK 1.3 to compile the Hibernate sources, but instead use JDK 1.4 with "source=1.3" set


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