File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Is it possible to run an app with Hibernate 4 on an older JBoss server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Is it possible to run an app with Hibernate 4 on an older JBoss server?" Watch "Is it possible to run an app with Hibernate 4 on an older JBoss server?" New topic
Author

Is it possible to run an app with Hibernate 4 on an older JBoss server?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

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

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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.


[How To Ask Questions][Read before you PM me]
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
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. -
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

We're stuck with 4.3.2 EAP GA CP0 (YES!! I know CP10 is the latest and greatest, but out team dropped the ball!)

JBoss 4.x is kind of stuck in no mans land in terms of JEE compliance.
We had to make major changes to get Apache CXF in place.

Currently "investigating" moving to 6 EAP.

WP
 
Don't get me started about those stupid light bulbs.
 
subject: Is it possible to run an app with Hibernate 4 on an older JBoss server?