运行wso2ei样本904的问题 - kafka入站端点

时间:2018-05-12 18:07:38

标签: wso2 wso2ei

我为WSO2 EI尝试了样本904并跟随样本guidelines

启动运行时我仍然遇到以下错误:

[2018-05-12 19:54:45,960] []  INFO - KAFKAMessageListener Creating Kafka Consumer Connector...
[2018-05-12 19:54:45,977] []  INFO - MediationStatisticsComponent Global Message-Flow Statistic Reporting is Disabled
Exception in thread "Thread-18" java.lang.NoClassDefFoundError: com/typesafe/scalalogging/Logger$
        at kafka.utils.Log4jControllerRegistration$.<init>(Logging.scala:25)
        at kafka.utils.Log4jControllerRegistration$.<clinit>(Logging.scala)
        at kafka.utils.Logging.$init$(Logging.scala:47)
        at kafka.utils.VerifiableProperties.<init>(VerifiableProperties.scala:27)
        at kafka.consumer.ConsumerConfig.<init>(ConsumerConfig.scala:110)
        at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAMessageListener.createKafkaConsumerConnector(KAFKAMessageListener.java:56)
        at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAPollingConsumer.poll(KAFKAPollingConsumer.java:145)
        at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAPollingConsumer.execute(KAFKAPollingConsumer.java:116)
        at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKATask.taskExecute(KAFKATask.java:48)
        at org.wso2.carbon.inbound.endpoint.common.InboundRunner.run(InboundRunner.java:108)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.typesafe.scalalogging.Logger$ cannot be found by kafka_2.12_1.1.0_1.0.0
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 11 more

不知道我的选择,我的想法用完了。任何帮助将不胜感激。

版本: jre 1.8.0_161 wso2ei 6.2.0 卡夫卡2.12-1.1.0 zookeeper 3.4.12

1 个答案:

答案 0 :(得分:0)

看起来无法找到“Logger”类。您确定将所有必需的库复制到/ lib(如果需要,也是wso2文档的注释部分中提到的库)?

您可以尝试的是启用osgi控制台启动EI并检查该类是否存在。以下链接可能有所帮助。

OSGI

你还可以做的是打开/提取导入的jar,看看里面是否有类。