wood burning stoves 2.0*
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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 7 Hibernate 3.6.9 service " Watch "JBoss 7 Hibernate 3.6.9 service " New topic
Author

JBoss 7 Hibernate 3.6.9 service

Sergiu Pienar
Greenhorn

Joined: Jun 08, 2011
Posts: 3

Hi,

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 [org.jboss.msc.service.fail] (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.as.service.StartStopService.start(StartStopService.java:56)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25-ea]
at java.lang.Thread.run(Thread.java:662) [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(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_25-ea]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_25-ea]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_25-ea]
at org.jboss.as.service.AbstractService.invokeLifecycleMethod(AbstractService.java:52)
at org.jboss.as.service.StartStopService.start(StartStopService.java:54)
... 5 more
Caused by: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:126)
at org.jboss.as.naming.WritableServiceBasedNamingStore.unbind(WritableServiceBasedNamingStore.java:98)
at org.jboss.as.naming.WritableServiceBasedNamingStore.rebind(WritableServiceBasedNamingStore.java:85)
at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:237)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:113)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:367)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
at org.hibernate.jmx.HibernateService.buildSessionFactory(HibernateService.java:64)
at org.hibernate.jmx.HibernateService.start(HibernateService.java:40)
at com.persistence.HibernateService.start(HibernateService.java:27)

Any ideas are appreciated.

Thank you.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

Being discussed here https://community.jboss.org/message/738453#738453

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 7 Hibernate 3.6.9 service