tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurkan Erdogdu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TOMEE-1628) tomee.sh start registering MBean problem
Date Sat, 29 Aug 2015 21:26:45 GMT
Gurkan Erdogdu created TOMEE-1628:
-------------------------------------

             Summary: tomee.sh start registering MBean problem 
                 Key: TOMEE-1628
                 URL: https://issues.apache.org/jira/browse/TOMEE-1628
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Core Server
    Affects Versions: 1.7.2
            Reporter: Gurkan Erdogdu


Whenever you run the tomee.sh start from bin/ directory you get the following exceptions in
the log files. The problem is that registering MBean failes because of there is no default
constructor in JMXReloadableEntityManagerFactory and TransactionManagerMBean classes. In fact,
transaction manager and entity manager factories are already registered to MBean server but
these exceptions gives wrong message to the user. Therefore, it is reasonable to register
these MBeans under application object names.

I attached the code that fixes the exception problem.

Here is the exception when you start tomee.sh start:

SEVERE: the mbean org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory$JMXReloadableEntityManagerFactory
can't be registered because it can't be instantiated
java.lang.InstantiationException: org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory$JMXReloadableEntityManagerFactory
	at java.lang.Class.newInstance(Class.java:364)
	at org.apache.openejb.assembler.classic.Assembler.deployMBean(Assembler.java:1428)
	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:950)
	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:658)
	at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:549)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:445)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
	at org.apache.openejb.server.Server.init(Server.java:65)
	at org.apache.openejb.server.Main.initServer(Main.java:154)
	at org.apache.openejb.server.Main.main(Main.java:128)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.openejb.cli.MainImpl.main(MainImpl.java:148)
	at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:106)

Aug 30, 2015 12:02:19 AM org.apache.openejb.assembler.classic.Assembler deployMBean
INFO: Deployed MBean(openejb.user.mbeans:application=openejb-core-4.7.3-SNAPSHOT,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
Aug 30, 2015 12:02:31 AM org.apache.openejb.assembler.classic.Assembler deployMBean
SEVERE: the mbean org.apache.openejb.resource.GeronimoTransactionManagerFactory$TransactionManagerMBean
can't be registered because it can't be instantiated
java.lang.InstantiationException: org.apache.openejb.resource.GeronimoTransactionManagerFactory$TransactionManagerMBean
	at java.lang.Class.newInstance(Class.java:364)
	at org.apache.openejb.assembler.classic.Assembler.deployMBean(Assembler.java:1428)
	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:950)
	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:658)
	at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:549)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:445)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
	at org.apache.openejb.server.Server.init(Server.java:65)
	at org.apache.openejb.server.Main.initServer(Main.java:154)
	at org.apache.openejb.server.Main.main(Main.java:128)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.openejb.cli.MainImpl.main(MainImpl.java:148)
	at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:106)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message