This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 1632
    
    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: 860

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to run an app with Hibernate 4 on an older JBoss server?
 
Similar Threads
Section 5.5.1 of EJB 3.0 Core Specs
Error while calling webservice client from EJB3 SLB Local interface.
JBoss/JPA/Spring Question - What is the JNDI Name for the EntityManager
session interrupe for the big file
timeout when calling refresh() on entities with CacheConcurrencyStrategy NONSTRICT_READ_WRITE