Hi Aaron, > I'm not sure what to tell you. Hibernate is trying to load the > database version from the driver: > ... > > Are you 100% sure that you're using the same Hibernate and Oracle JARs in > Geronimo?
Well, it turns out the answer is "yes and no". The Oracle jar I gave Geronimo did, indeed, come from server/default/lib. But in my old and tattered JBoss install I had *another* Oracle jar laying about. A more recent one as it turns out that was picked up in the classpath before the one in server/default/lib. Putting that in repository/ojdbc/jars solved the whole problem. [ Can somebody *please* convince Oracle to put version numbers in their jars? ] > (This > smells like an outdated Oracle driver JAR to me.) Do you want to write a > tiny test program to > just load the Oracle > driver and call getDatabaseMetadata.getDatabaseMajorVersion and > confirm that it throws the exception you're seeing? So, thanks Aaron for making me triple-check my assumptions. And to anyone else out there who might be having a similar problem, you want to get ojdbc-14.jar from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html which has size 1,536,979. Not the one of the same name from who-knows-where having size 1,174,976. I cracked open both jars and there is nothing in either one to indicate a true version. The manifest in both are identical. Though, clearly, something is different in the classes. > Thanks, > Aaron >
