Hi all,
I am trying to use hibernate 3.0.4 with J2EE1.3 (Websphere 5.0) on IBM 1.3.1, and get a NoSuchMethodError for the method getDatabaseMajorVersion (See stack trace below)
I saw that this
http://opensource.atlassian.com/projects/hibernate/browse/HHH-514 bug closed by Gavin King, but the method getDatabaseMajorVersion is NOT present in J2SE 1.3, it was introduced in J2SE1.4.
Has anyone run hibernate 3 on J2SE 1.3 ? Hibernate 3 documentation says it should run but I am puzzled.
Hibernate version: 3.0.4
Full stack trace of any exception that occurs:
[5/31/05 12:18:20:135 EDT] 7d9b7d9b ExceptionUtil E CNTR0020E: Exception data: java.lang.NoSuchMethodError: java/sql/DatabaseMetaData.getDatabaseMajorVersion()I
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.NoSuchMethodError.<init>(NoSuchMethodError.java:56)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
Name and version of the database you are using: IBM DB2 v7.0 for OS/390