{"action":"created","issue":{"url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/738","labels_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/738/labels{/name}","comments_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/738/comments","events_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/738/events","html_url":"https://github.com/wildfly-extras/wildfly-camel/issues/738","id":93708688,"number":738,"title":"Kafka module cannot access JMX API","user":{"login":"EgonPedersen","id":12029926,"avatar_url":"https://avatars.githubusercontent.com/u/12029926?v=3","gravatar_id":"","url":"https://api.github.com/users/EgonPedersen","html_url":"https://github.com/EgonPedersen","followers_url":"https://api.github.com/users/EgonPedersen/followers","following_url":"https://api.github.com/users/EgonPedersen/following{/other_user}","gists_url":"https://api.github.com/users/EgonPedersen/gists{/gist_id}","starred_url":"https://api.github.com/users/EgonPedersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EgonPedersen/subscriptions","organizations_url":"https://api.github.com/users/EgonPedersen/orgs","repos_url":"https://api.github.com/users/EgonPedersen/repos","events_url":"https://api.github.com/users/EgonPedersen/events{/privacy}","received_events_url":"https://api.github.com/users/EgonPedersen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"tdiesler","id":244946,"avatar_url":"https://avatars.githubusercontent.com/u/244946?v=3","gravatar_id":"","url":"https://api.github.com/users/tdiesler","html_url":"https://github.com/tdiesler","followers_url":"https://api.github.com/users/tdiesler/followers","following_url":"https://api.github.com/users/tdiesler/following{/other_user}","gists_url":"https://api.github.com/users/tdiesler/gists{/gist_id}","starred_url":"https://api.github.com/users/tdiesler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdiesler/subscriptions","organizations_url":"https://api.github.com/users/tdiesler/orgs","repos_url":"https://api.github.com/users/tdiesler/repos","events_url":"https://api.github.com/users/tdiesler/events{/privacy}","received_events_url":"https://api.github.com/users/tdiesler/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/milestones/2","html_url":"https://github.com/wildfly-extras/wildfly-camel/milestones/3.0.0","labels_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/milestones/2/labels","id":830189,"number":2,"title":"3.0.0","description":"Camel Subsystem for WildFly-9.0.x","creator":{"login":"tdiesler","id":244946,"avatar_url":"https://avatars.githubusercontent.com/u/244946?v=3","gravatar_id":"","url":"https://api.github.com/users/tdiesler","html_url":"https://github.com/tdiesler","followers_url":"https://api.github.com/users/tdiesler/followers","following_url":"https://api.github.com/users/tdiesler/following{/other_user}","gists_url":"https://api.github.com/users/tdiesler/gists{/gist_id}","starred_url":"https://api.github.com/users/tdiesler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdiesler/subscriptions","organizations_url":"https://api.github.com/users/tdiesler/orgs","repos_url":"https://api.github.com/users/tdiesler/repos","events_url":"https://api.github.com/users/tdiesler/events{/privacy}","received_events_url":"https://api.github.com/users/tdiesler/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":36,"state":"open","created_at":"2014-10-17T12:42:05Z","updated_at":"2015-07-08T15:30:56Z","due_on":"2015-07-31T22:00:00Z","closed_at":null},"comments":8,"created_at":"2015-07-08T06:33:24Z","updated_at":"2015-07-09T06:23:48Z","closed_at":"2015-07-08T15:07:43Z","body":"\r\n1) Installed the newest wildfly 9.0.0.final release\r\n2) Build the latest source code of camel-kafka\r\n3) Installed it into the wildfly server.\r\n4) Started the server.\r\n5) Deployed my project, which contains nothing else than this camel-context.xml\r\n\r\ncamel-context:\r\n\r\n```\r\n\"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<beans xmlns=\"http://www.springframework.org/schema/beans\"\r\n       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n       xmlns:camel=\"http://camel.apache.org/schema/spring\"\r\n       xsi:schemaLocation=\"\r\n       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd\r\n       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd\">\r\n    <camel:camelContext trace=\"false\" xmlns=\"http://camel.apache.org/schema/spring\">\r\n        <route id=\"test\">\r\n            <from uri=\"kafka:dkclusters02:9092?topic=test-rep-three&amp;zookeeperHost=10.39.65.121&amp;zookeeperPort=2181&amp;groupId=1\" />\r\n            <to uri=\"myBean\" />\r\n        </route>            \r\n    </camel:camelContext>   \r\n    <bean id=\"myBean\" class=\"our.package.WriterCamel\"/> \r\n</beans>\"\r\n\r\n\r\nError:\r\n\r\n08:20:25,824 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit.\"projectname-kafka-spark-ear-1.0-SNAPSHOT.ear\".POST_MODULE: org.jboss.msc.service.StartException in service jboss.depl\r\n        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)\r\n        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)\r\n        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.NoClassDefFoundError: javax/management/ObjectName\r\n        at kafka.utils.Utils$.registerMBean(Utils.scala:260)\r\n        at kafka.utils.Log4jController$.<init>(Log4jController.scala:29)\r\n        at kafka.utils.Log4jController$.<clinit>(Log4jController.scala)\r\n        at kafka.utils.Logging$class.$init$(Logging.scala:29)\r\n        at kafka.utils.VerifiableProperties.<init>(VerifiableProperties.scala:26)\r\n        at kafka.consumer.ConsumerConfig.<init>(ConsumerConfig.scala:94)\r\n        at org.apache.camel.component.kafka.KafkaConsumer.doStart(KafkaConsumer.java:79)\r\n        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)\r\n        at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2869)\r\n        at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:3163)\r\n        at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3099)\r\n        at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3029)\r\n        at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:2797)\r\n        at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2653)\r\n        at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)\r\n        at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467)\r\n        at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463)\r\n        at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486)\r\n        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463)\r\n        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)\r\n        at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432)\r\n        at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:255)\r\n        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121)\r\n        at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332)\r\n        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)\r\n        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)\r\n        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)\r\n        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:773)\r\n        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)\r\n        at org.wildfly.extension.camel.SpringCamelContextFactory.createSpringCamelContext(SpringCamelContextFactory.java:99)\r\n        at org.wildfly.extension.camel.SpringCamelContextFactory.createSpringCamelContext(SpringCamelContextFactory.java:60)\r\n        at org.wildfly.extension.camel.deployment.CamelContextCreateProcessor.deploy(CamelContextCreateProcessor.java:83)\r\n        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)\r\n        ... 5 more\r\nCaused by: java.lang.ClassNotFoundException: javax.management.ObjectName from [Module \"org.apache.kafka:main\" from local module loader @7f7052 (finder: local module finder @1028347 (roots: D:\\servers\\wildfly-camel\\wildfly-9.0.0.Final\\modules,D:\\se\r\n        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)\r\n        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)\r\n        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)\r\n        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)\r\n        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)\r\n        ... 38 more\r\n\r\n08:20:25,967 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-3) WFLYCTL0013: Operation (\"add\") failed - address: ([{\"deployment\" => \"projectname-kafka-spark-ear-1.0-SNAPSHOT.ear\"}]) - failure description: {\"WFLYCTL0080: Failed ser\r\n    Caused by: java.lang.NoClassDefFoundError: javax/management/ObjectName\r\n    Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName from [Module \\\"org.apache.kafka:main\\\" from local module loader @7f7052 (finder: local module finder @1028347 (roots: D:\\\\servers\\\\wildfly-camel\\\\wildfly-9.0.0.Final\\\\mod\r\n08:20:25,977 ERROR [org.jboss.as.server] (XNIO-1 task-3) WFLYSRV0021: Deploy of deployment \"projectname-kafka-spark-ear-1.0-SNAPSHOT.ear\" was rolled back with the following failure message:\r\n{\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\\\"projectname-kafka-spark-ear-1.0-SNAPSHOT.ear\\\".POST_MODULE\" => \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"projectname-kafka-spark-ear-1.0-SNAPSHOT.ear\\\".POST_\r\n    Caused by: java.lang.NoClassDefFoundError: javax/management/ObjectName\r\n    Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName from [Module \\\"org.apache.kafka:main\\\" from local module loader @7f7052 (finder: local module finder @1028347 (roots: D:\\\\servers\\\\wildfly-camel\\\\wildfly-9.0.0.Final\\\\mod\r\n08:20:25,985 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0208: Stopped subdeployment (runtime-name: projectname-kafka-spark-ejb-1.0-SNAPSHOT.jar) in 8ms\r\n08:20:26,046 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment projectname-kafka-spark-ear-1.0-SNAPSHOT.ear (runtime-name: projectname-kafka-spark-ear-1.0-SNAPSHOT.ear) in 69ms\r\n08:20:26,048 INFO  [org.jboss.as.controller] (XNIO-1 task-3) WFLYCTL0183: Service status report\r\nWFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit.\"projectname-kafka-spark-ear-1.0-SNAPSHOT.ear\".POST_MODULE\r\n```"},"comment":{"url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/comments/119837031","html_url":"https://github.com/wildfly-extras/wildfly-camel/issues/738#issuecomment-119837031","issue_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/738","id":119837031,"user":{"login":"EgonPedersen","id":12029926,"avatar_url":"https://avatars.githubusercontent.com/u/12029926?v=3","gravatar_id":"","url":"https://api.github.com/users/EgonPedersen","html_url":"https://github.com/EgonPedersen","followers_url":"https://api.github.com/users/EgonPedersen/followers","following_url":"https://api.github.com/users/EgonPedersen/following{/other_user}","gists_url":"https://api.github.com/users/EgonPedersen/gists{/gist_id}","starred_url":"https://api.github.com/users/EgonPedersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EgonPedersen/subscriptions","organizations_url":"https://api.github.com/users/EgonPedersen/orgs","repos_url":"https://api.github.com/users/EgonPedersen/repos","events_url":"https://api.github.com/users/EgonPedersen/events{/privacy}","received_events_url":"https://api.github.com/users/EgonPedersen/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T06:23:47Z","updated_at":"2015-07-09T06:23:47Z","body":"It works.\r\n\r\nI also testet it with 9.0.0-final, there is also worked.\r\n\r\nThank you Thomas, much appreciated."}}