简体   繁体   English

完成 wso2 mb 教程后无法运行 wso2 esb

[英]Can't run wso2 esb after doing wso2 mb tutorial

I'm trying to catch up with the new realease of the wso2ei 7 and 'm following the new tutorial but I keep getting an error when I start the esb again with the following error我正在尝试赶上 wso2ei 7 的新版本,并且正在学习新教程,但是当我再次启动 esb 时出现以下错误

Store [PaymentRequestMessageStore].存储 [PaymentRequestMessageStore]。 Could not initialize JMS Message Store.无法初始化 JMS 消息存储。 Error:Failed to create InitialContext using factory specified in hash table.. Initial Context Factory:[org.wso2.andes.jndi.PropertiesFileInitialContextFactory];错误:无法使用哈希表中指定的工厂创建 InitialContext。初始上下文工厂:[org.wso2.andes.jndi.PropertiesFileInitialContextFactory]; Provider URL:[null];提供者 URL:[null]; Connection Factory:[null].连接工厂:[null]。 javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hash table. javax.naming.NoInitialContextException:无法使用哈希表中指定的工厂创建 InitialContext。 [Root exception is java.lang.ClassNotFoundException: class org.wso2.andes.jndi.PropertiesFileInitialContextFactory not found] at org.wso2.micro.core.context.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:301) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) at javax.naming.InitialContext.init(InitialContext.java:244) at javax.naming.InitialContext.(InitialContext.java:216) [根异常是 java.lang.ClassNotFoundException: class org.wso2.andes.jndi.PropertiesFileInitialContextFactory not found] at org.wso2.micro.core.context.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:301) at javax.nam .spi.NamingManager.getInitialContext(NamingManager.java:681) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) at javax.naming.InitialContext.init(InitialContext.java:244) at javax.naming.InitialContext。 (InitialContext.java:216)

... ...

Can anyone help me with that?任何人都可以帮助我吗?

[EDIT] [编辑]

I started the esb from the cmd and i got a diferent error, I don't know if helps or not...我从 cmd 启动了 esb 并且出现了不同的错误,我不知道是否有帮助...

ERROR {org.apache.axis2.transport.jms.JMSConnectionFactoryManager} - Error setting up connection factory : myQueueSender org.apache.axis2.transport.jms.AxisJMSException: Cannot acquire JNDI context, JMS Connection factory : QueueConnectionFactory or default destination : null for JMS CF : myQueueSender using : {transport.jms.CacheLevel=producer, broker_name=wso2mb, transport.jms.ConnectionFactoryType=queue, java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory, transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory, java.naming.provider.url=conf/jndi.properties} at org.apache.axis2.transport.jms.JMSConnectionFactory.initJMSConnectionFactory(JMSConnectionFactory.java:188) at org.apache.axis2.transport.jms.JMSConnectionFactory.(JMSConnectionFactory.java:152) at org.apache.axis2.transport.jms.JMSConnectionFactoryManager.loadConnectionFactoryDefinitions(JMSConnectionFactoryManager.java:89)错误 {org.apache.axis2.transport.jms.JMSConnectionFactoryManager} - 设置连接工厂时出错:myQueueSender org.apache.axis2.transport.jms.AxisJMSException:无法获取 JNDI 上下文,JMS 连接工厂:QueueConnectionFactory 或默认目标:null JMS CF:myQueueSender 使用:{transport.jms.CacheLevel=producer,broker_name=wso2mb,transport.jms.ConnectionFactoryType=queue,java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,transport.jms.ConnectionFactoryJNDIName =QueueConnectionFactory, java.naming.provider.url=conf/jndi.properties} 在 org.apache.axis2.transport.jms.JMSConnectionFactory.initJMSConnectionFactory(JMSConnectionFactory.java:188) 在 org.apache.axis2.transport.jms.JMSConnectionFactory .(JMSConnectionFactory.java:152) 在 org.apache.axis2.transport.jms.JMSConnectionFactoryManager.loadConnectionFactoryDe​​finitions(JMSConnectionFactoryManager.java:89)
... ...

While working through the EI Asynchronous Messaging tutorial, you will get this ClassNotFound exception if you don't do the following first:在学习 EI 异步消息教程时,如果您不先执行以下操作,您将收到此 ClassNotFound 异常:

Download WSO2 Message Broker.下载 WSO2 消息代理。 The path to this folder is referred to as MB_HOME throughout this tutorial.在本教程中,此文件夹的路径称为 MB_HOME。

Add the following JAR files from the MB_HOME/wso2/broker/client-lib/ directory to the MI_TOOLING_HOME/Contents/Eclipse/runtime/microesb/lib/ (in MacOS) or MI_TOOLING_HOME/runtime/microesb/lib (in Windows) directory.将以下 JAR 文件从 MB_HOME/wso2/broker/client-lib/ 目录添加到 MI_TOOLING_HOME/Contents/Eclipse/runtime/microesb/lib/(在 MacOS 中)或 MI_TOOLING_HOME/runtime/microesb/lib(在 Windows 中)目录。

andes-client-*.jar安第斯山脉客户端-*.jar

geronimo-jms_1.1_spec-*.jar geronimo-jms_1.1_spec-*.jar

org.wso2.securevault-*.jar org.wso2.securevault-*.jar

For me on OSX, the MI_TOOLING_HOME is /Applications/IntegrationStudio.app.对于我在 OSX 上,MI_TOOLING_HOME 是 /Applications/IntegrationStudio.app。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM