我使用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)我不知道这是什么..。
你能帮我一下吗?
发布于 2012-07-18 16:35:16
我有同样的异常,并通过更改新生成的代理xml文件中配置的端口来修复它,使它们不会与默认代理冲突,默认代理是在etc/activemq-broker.xml中配置的
https://stackoverflow.com/questions/10751559
复制相似问题