This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JBoss 7 Hibernate 3.6.9 service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 7 Hibernate 3.6.9 service " Watch "JBoss 7 Hibernate 3.6.9 service " New topic

JBoss 7 Hibernate 3.6.9 service

Sergiu Pienar

Joined: Jun 08, 2011
Posts: 3


I'm trying to migrate an app that runs on JBoss 5.1.0 to JBoss 7.1.1 .

In JBoss 5.1.0 I was using a SAR to start-up the Hibernate Service (org.hibernate.jmx.HibernateService). However, in JBoss 7.1.1 this doesn't seem to work as JBoss complains on :

12:18:33,768 INFO [org.hibernate.util.NamingHelper] (MSC service thread 1-16) JNDI InitialContext properties:{}
12:18:33,773 ERROR [] (MSC service thread 1-16) MSC00001: Failed to start service jboss.mbean.service."jboss.jca:service=HibernateFactory,name=HibernateFactory".start: org.jboss.msc.service.StartException in service jboss.mbean.service."jboss.jca:service=HibernateFactory,name=HibernateFactory".start: JBAS017222: Failed to execute legacy service start() method
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService( [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( [rt.jar:1.6.0_25-ea]
at java.util.concurrent.ThreadPoolExecutor$ [rt.jar:1.6.0_25-ea]
at [rt.jar:1.6.0_25-ea]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_25-ea]
at sun.reflect.NativeMethodAccessorImpl.invoke( [rt.jar:1.6.0_25-ea]
at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.6.0_25-ea]
at java.lang.reflect.Method.invoke( [rt.jar:1.6.0_25-ea]
... 5 more
Caused by: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
at org.hibernate.util.NamingHelper.bind(
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(
at org.hibernate.impl.SessionFactoryImpl.<init>(
at org.hibernate.cfg.Configuration.buildSessionFactory(
at org.hibernate.jmx.HibernateService.buildSessionFactory(
at org.hibernate.jmx.HibernateService.start(
at com.persistence.HibernateService.start(

Any ideas are appreciated.

Thank you.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10382

Being discussed here

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: JBoss 7 Hibernate 3.6.9 service