Is it possible to run an app with Hibernate 4 on an older JBoss server?
posted 4 years ago
I'm using an older version of JBoss, 4.2.2 and am not in a position to switch. I would like to deploy an application (JAR) to it that is built on the latest version of Hibernate (4.1.5.SP1). Is that possible? I'm running into some class path problems that seem unavoidable, but also seem trivial, pertaining to logging. Here's the exception I'm seeing …
but if I include the logging jar in my maven project …
I get this exception instead …
Anyone know a way around all this mess? Thanks, - Dave
It looks like the version of jboss-logging.jar being used is not the one you're bundling. Since it looks like you are using the latest perhaps try some of the older versions instead. I am not seeing this as being an ORM issue so I am going to move this thread to the Jboss forum.
When I don't bundle the jboss-logging with my JAR (and so the default jboss-logging.jar from my JBoss distro is used), I get the first exception I posted -- "java.lang.NoClassDefFoundError: org/jboss/logging/BasicLogger". So it would appear I'm stuck. -