-->
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.  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Hibernate 3.0 beta 3 class file format
PostPosted: Tue Feb 01, 2005 4:03 am 
Newbie

Joined: Tue Feb 01, 2005 3:56 am
Posts: 1
I downloaded Hibernate 3.0 beta 3 and got a little surprise: It was compiled with Jdk 1.5, so it won't run on a J2SE 1.4 VM. Hibernate 3.0 beta 2 was compiled on J2SE 1.4.

The question is: Will Hibernate 3.0 be Java 1.5 only? Please post an answer, as this would impact the version chosen for my projects.

magner


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 4:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No, this was a mistake done by me. Just recompile on 1.4.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 12:38 pm 
Newbie

Joined: Thu Feb 03, 2005 6:59 pm
Posts: 2
gavin wrote:
No, this was a mistake done by me. Just recompile on 1.4.


The recompiling with 1.4 doesn't work for me since the library jacc-1_0-fr.jar complains also about a wrong version number :-(


Top
 Profile  
 
 Post subject: Compiling with 1.3
PostPosted: Thu Mar 24, 2005 7:41 pm 
Newbie

Joined: Tue Feb 08, 2005 11:05 pm
Posts: 7
Curious if there was a resolution to this problem. I'm trying to compile hibernate 3.0 with JDK 1.3 and I get:

[javac] bad class file: C:\\hibernate\v3.0beta2\lib\jacc-1_0-fr.jar(javax/security/jacc/PolicyConfiguration.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import javax.security.jacc.PolicyConfiguration;


Is there any way around this?


Top
 Profile  
 
 Post subject: Compiling with 1.3
PostPosted: Thu Mar 24, 2005 11:03 pm 
Newbie

Joined: Tue Feb 08, 2005 11:05 pm
Posts: 7
Curious if there was a resolution to this problem. I'm trying to compile hibernate 3.0 with JDK 1.3 and I get:

[javac] bad class file: C:\\hibernate\v3.0beta2\lib\jacc-1_0-fr.jar(javax/security/jacc/PolicyConfiguration.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import javax.security.jacc.PolicyConfiguration;


Is there any way around this?


Top
 Profile  
 
 Post subject: Problem in building hibernate3 using jdk 1.3.1
PostPosted: Wed Jul 27, 2005 9:16 am 
Newbie

Joined: Thu Jun 23, 2005 8:48 am
Posts: 4
I am in the process of choosing which frame work to use as an ORM frame work.

I decided to use hibernat with IBM WebSphere APP server v 5.0.2.2
Hence that version of WAS use IBM JDK 1.3.1 , i had to compile hibernate using JDK 1.3.1 , but here are my findings:

1-i had first to change the target java version in the build file to be 1.3 instead of 1.4

2- change the hibernate.properties to include the DB2 instead of HSQL

but when i try to build this what i get:



Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\db2admin>d:

D:\>cd D:\hibernate-3.1

D:\hibernate-3.1>build

D:\hibernate-3.1>set JDBC_DRIVER=jdbc/db2java.jar

D:\hibernate-3.1>java -cp "lib/ant-launcher-1.6.3.jar" org.apache.tools.ant.laun
ch.Launcher -lib lib -Ddriver.jar=jdbc/db2java.jar
Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties.
It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.

splash:

init:
[echo] Build Hibernate-3.1 (2005-07-27 03:42:03)
[echo] JDK version: 1.3

init.antlr:

antlr:

compile:
[javac] Compiling 869 source files to D:\hibernate-3.1\build\classes
[javac] D:\hibernate-3.1\src\org\hibernate\secure\JACCConfiguration.java:6:
cannot access javax.security.jacc.EJBMethodPermission
[javac] bad class file: D:\hibernate-3.1\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;
[javac] ^
[javac] 1 error


BUILD FAILED
D:\hibernate-3.1\build.xml:214: Compile failed; see the compiler error output fo
r details.

Total time: 19 seconds

Is there any thing to be done to solve this problem ?

Please help


Top
 Profile  
 
 Post subject: Problem in building hibernate3 using jdk 1.3.1
PostPosted: Wed Jul 27, 2005 10:07 am 
Newbie

Joined: Thu Jun 23, 2005 8:48 am
Posts: 4
I think i found where the problem is

libraries like jacc-1_0-fr.jar and other in the lib folder are compiled them selfs with jdk 1.4 , so those too need to be recompiled using jdk 1.3.1 , but the problem is that the source code of some of these libraries are not available.

So, is there any work around for this problem, coz i really need to get this work.


Thank you in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 27, 2005 8:29 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You can create a "fake" JACC jar file containing only the APIs,
This will allow you to compile.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 28, 2005 1:42 am 
Newbie

Joined: Thu Jun 23, 2005 8:48 am
Posts: 4
Thank you very much Emmanuel for your prompt support
I tried the MOC Jar for the JACC library and it worked just fine .

Now i have only 1 error left , it is related to a Jboss Library:(Jboss-system)

Here are the compilation output



D:\hibernate-3.1>build

D:\hibernate-3.1>set JDBC_DRIVER=jdbc/db2java.jar

D:\hibernate-3.1>java -cp "lib/ant-launcher-1.6.3.jar" org.apache.tools.ant.laun
ch.Launcher -lib lib -Ddriver.jar=jdbc/db2java.jar
Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties.
It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.

splash:

init:
[echo] Build Hibernate-3.1 (2005-07-27 08:33:14)
[echo] JDK version: 1.3

init.antlr:

antlr:

compile:
[javac] Compiling 595 source files to D:\hibernate-3.1\build\classes
[javac] D:\hibernate-3.1\src\org\hibernate\cache\JndiBoundTreeCacheProvider.
java:61: cannot access org.jboss.system.ServiceMBeanSupport
[javac] bad class file: D:\hibernate-3.1\lib\jboss-system.jar(org/jboss/syst
em/ServiceMBeanSupport.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] return ( org.jboss.cache.TreeCache ) super.getCache();
[javac] ^
[javac] 1 error

BUILD FAILED
D:\hibernate-3.1\build.xml:214: Compile failed; see the compiler error output fo
r details.

Total time: 20 seconds

D:\hibernate-3.1>



Thank you for your help


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 12:28 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hum, I guess you could create a Mock Jboss-cache.jar containing the needed interfaces either.
If you manage to make it successful, please create a wiki page with the instruction this would be very valuable.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: MOC Jar?
PostPosted: Fri Sep 23, 2005 12:35 pm 
Newbie

Joined: Wed Jun 08, 2005 3:12 pm
Posts: 6
What, praytell, are you referring to when you say the "MOC Jar for the JACC library"?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 4:09 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Take the code of interfaces needed by hibernate to compile, and compile them using JDK 1.3

_________________
Emmanuel


Top
 Profile  
 
 Post subject: any one find a solution for this issue
PostPosted: Thu Oct 05, 2006 8:54 pm 
Newbie

Joined: Thu Oct 05, 2006 8:48 pm
Posts: 1
hi guys, i noticed this issue was last highlighted a year back on this thread. I have reached this far but am stuck now. has anyone found a solution to this compilation issue. any pointers would be appreciated. if you recommend using any alternative jars then please also mention where i can find them.
regards
adam

compile:
[javac] Compiling 595 source files to D:\hibernate-3.1\build\classes
[javac] D:\hibernate-3.1\src\org\hibernate\cache\JndiBoundTreeCacheProvider.
java:61: cannot access org.jboss.system.ServiceMBeanSupport
[javac] bad class file: D:\hibernate-3.1\lib\jboss-system.jar(org/jboss/syst
em/ServiceMBeanSupport.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] return ( org.jboss.cache.TreeCache ) super.getCache();
[javac] ^
[javac] 1 error


Top
 Profile  
 
 Post subject: Compiling Hibernate 3.0 with JDK 1.3
PostPosted: Wed Nov 15, 2006 1:42 am 
Newbie

Joined: Mon Aug 01, 2005 9:52 pm
Posts: 6
I've got the same problem.
------------------------------------------------------------
compile:
[javac] Compiling 796 source files to D:\dev\libraries\hibernate-3.0\build\classes
[javac] D:\dev\libraries\hibernate-3.0\src\org\hibernate\secure\JACCConfiguration.java:4: cannot access javax.security.jacc.PolicyConfiguration
[javac] bad class file: D:\dev\libraries\hibernate-3.0\lib\jacc-1_0-fr.jar(javax/security/jacc/PolicyConfiguration.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.PolicyConfiguration;
[javac] ^
[javac] 1 error


------------------------------------------------------------

I would love to know where I can get hold of this 'jacc-1_0-fr.jar'.


Thanks

Matthew


Top
 Profile  
 
 Post subject: Compiling Hibernate 3.0 with JDK 1.3
PostPosted: Wed Nov 15, 2006 1:42 am 
Newbie

Joined: Mon Aug 01, 2005 9:52 pm
Posts: 6
I've got the same problem.

Quote:
compile:
[javac] Compiling 796 source files to D:\dev\libraries\hibernate-3.0\build\classes
[javac] D:\dev\libraries\hibernate-3.0\src\org\hibernate\secure\JACCConfiguration.java:4: cannot access javax.security.jacc.PolicyConfiguration
[javac] bad class file: D:\dev\libraries\hibernate-3.0\lib\jacc-1_0-fr.jar(javax/security/jacc/PolicyConfiguration.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.PolicyConfiguration;
[javac] ^
[javac] 1 error




I would love to know where I can get hold of this 'jacc-1_0-fr.jar'.


Thanks

Matthew


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next

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.