1

我正在使用 fuseesb 作为我的 esb,我想在 activemq 中创建新消息,所以我正在做:

在卡拉夫:activemq:create-broker --name=myBroker

然后我看到:

    Creating file: @|green .../myBroker-broker.xml|

Default ActiveMQ Broker (myBroker) configuration file created at: .../myBroker-broker.xml
Please review the configuration and modify to suite your needs.

我看到该文件已创建,但在 karaf 我看到了:

karaf@root> Exception in thread "SpringOsgiExtenderThread-26" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
    at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:368)
    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
    at java.lang.Thread.run(Thread.java:679)

而且我不知道它是什么...

你可以帮帮我吗?

4

1 回答 1

1

我有同样的异常,并通过更改我新生成的代理 xml 文件中配置的端口来修复它,这样它们就不会与在 etc/activemq-broker.xml 中配置的默认代理冲突

于 2012-07-18T08:35:15.877 回答