-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Hibernate 5.1 JMX Deployment
PostPosted: Mon Feb 22, 2016 10:53 pm 
Newbie

Joined: Mon Feb 22, 2016 10:47 pm
Posts: 4
Hi.

I am trying to create JMX service for Hibernate 5.1. I am getting the following error. Can someone help me how to solve this error.


[code]11:02:47,348 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."HelloWorld.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."HelloWorld.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "HelloWorld.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: WFLYSAR0003: Class not found
at org.jboss.as.service.ReflectionUtils.getClass(ReflectionUtils.java:116)
at org.jboss.as.service.ReflectionUtils.getClassHierarchy(ReflectionUtils.java:123)
at org.jboss.as.service.ParsedServiceDeploymentProcessor.addServices(ParsedServiceDeploymentProcessor.java:128)
at org.jboss.as.service.ParsedServiceDeploymentProcessor.deploy(ParsedServiceDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.jmx.HibernateService from [Module "deployment.HelloWorld.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jboss.as.service.ReflectionUtils.getClass(ReflectionUtils.java:114)
... 9 more

11:02:47,351 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "HelloWorld.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"HelloWorld.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"HelloWorld.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"HelloWorld.war\"
Caused by: java.lang.IllegalArgumentException: WFLYSAR0003: Class not found[/code]


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Tue Feb 23, 2016 6:31 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
According to the error message: "org.hibernate.jmx.HibernateService", you don't have this class anymore.
This class was deprecated and it was removed.

Now you need to use the org.hibernate.jmx.spi.JmxService instead.
Hibernate comes with many JMX related properties, so make sure you configured those as well:

Code:
String JMX_ENABLED = "hibernate.jmx.enabled";
String JMX_PLATFORM_SERVER = "hibernate.jmx.usePlatformServer";
String JMX_AGENT_ID = "hibernate.jmx.agentId";
String JMX_DOMAIN_NAME = "hibernate.jmx.defaultDomain";
String JMX_SF_NAME = "hibernate.jmx.sessionFactoryName";
String JMX_DEFAULT_OBJ_NAME_DOMAIN = "org.hibernate.core";


Anyway, even if you make the switch you might still bump into the HHH-7405 issue.


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Wed Feb 24, 2016 1:47 am 
Newbie

Joined: Mon Feb 22, 2016 10:47 pm
Posts: 4
HI, mihalcea_vlad

Thanks for the response Is there any tutorial how to deal with the new class.

Waiting for the response please.


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Wed Feb 24, 2016 5:44 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
There is no tutorial for this. We'll have to add this to the new User Guide.
Meanwhile, you can add those configuration properties and see how it goes.


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Wed Feb 24, 2016 8:48 am 
Newbie

Joined: Mon Feb 22, 2016 10:47 pm
Posts: 4
Is it possible if you can share some simple mbean code for the new kind of confirmation please.
Simple one will be enough for me. I'll make the example documentation for this.


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Wed Feb 24, 2016 9:32 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
I'm not sure what you are asking for.


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Wed Feb 24, 2016 10:08 am 
Newbie

Joined: Mon Feb 22, 2016 10:47 pm
Posts: 4
I am asking if there is sample jmx configuration example available for v5.1?
like sample jboss-service.xml file. or if there is any other way to do this/


Top
 Profile  
 
 Post subject: Re: Hibernate 5.1 JMX Deployment
PostPosted: Wed Feb 24, 2016 10:30 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
I'm not sure if there is anything like that. Maybe you should check the JBoss forum for such an example.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.