WSo2-Enterprise Integrator 6.4.0-SNMP侦听连接器

问题描述 投票:0回答:1

NewBie在这里。我正在努力将SNMP连接器添加到我的ESB项目中。按照https://docs.wso2.com/display/ESBCONNECTORS/Configuring+SNMP+Inbound+Operations

    Step1) I created folders and added files to /home/repository/components/dropins 
    and  home/repository/components/libs
    Step2) I then created inbound-endpoint for SNMP in my EI editor. 
since my inbound Endpoint editor design layout looked different from wso2 tutorial i mentioned above, I copied Inbound Configuration from tutorial.
    Step3) I also went ahead and created sequence as request.xml [took code from tutorial]

[当我部署入站EP和序列时,我得到了

   ERROR - GenericEventBasedListener Class org.wso2.carbon.inbound.snmp.SNMPListeningConsumer not found. Please check the required class is added to the classpath.
**java.lang.ClassNotFoundException: org.wso2.carbon.inbound.snmp.SNMPListeningConsumer cannot be found by synapse-core_2.1.7.wso2v80**

要使我的SNMP文件进入类路径,我还应该做什么?我已经重新启动服务器,并且EI 6.4.0面板上的SNMP连接器可用。

wso2 wso2esb wso2carbon wso2ei
1个回答
0
投票

上述ClassNotFoundException应该是由于缺少JAR文件而导致服务器启动时OSGi层中没有正确的类的结果。在EI服务器的相应文件夹中,以下JAR文件应该可用,并且服务器需要重新启动。

org.apache.synapse.snmp.listen.class-x.x.x.jar  - <EI_HOME>/dropins
snmp4j-x.x.x.jar - <EI_HOME>/lib

解决此类ClassNotFoundException的最佳方法是访问WSO2碳基产品的OSGi控制台。如https://movingaheadblog.blogspot.com/2014/01/how-to-debug-wso2-carbon-products-using.html]中所述,可以通过几个命令轻松识别OSGi捆绑软件的任何未满足的约束。

© www.soinside.com 2019 - 2024. All rights reserved.