2015-12-11 98 views
0

我現在幾天運行servicemix 6.1.0。帶有文件和jdbc端點的駱駝路線工作 - 很酷的東西。ServiceMix:logmessage「無法啓動代理」

現在我想添加activemq。當我從頭開始安裝servicemix時,一切看起來都很好 - jms的作品。

但是現在我在啓動時在日誌文件中看到異常,並且命令[email protected]>activemq:list不會返回任何內容。

下面是日誌文件的部分內容:

... 
2015-12-11 10:43:35,081 | INFO | ctivemq.server]) | PListStoreImpl     | 176 - org.apache.activemq.activemq-osgi - 5.12.1 | PListStore:[C:\CAD_JOBS\apache-servicemix-6.1.0\data\amq-broker\amq-broker\tmp_storage] started 
2015-12-11 10:43:35,084 | INFO | ctivemq.server]) | ActiveMQServiceFactory$1   | 161 - org.apache.servicemix.bundles.spring-context - 3.2.14.RELEASE_1 | Publishing application context as OSGi service with properties {org.springframework.context.service.name=org.apache.activemq.activemq-osgi, Bundle-SymbolicName=org.apache.activemq.activemq-osgi, Bundle-Version=5.12.1} 
2015-12-11 10:43:35,093 | ERROR | ctivemq.server]) | configadmin      | 6 - org.apache.felix.configadmin - 1.8.4 | [org.osgi.service.cm.ManagedServiceFactory, id=813, bundle=176/mvn:org.apache.activemq/activemq-osgi/5.12.1]: Updating configuration org.apache.activemq.server.24d13a82-a253-4d1e-8355-bcbf0fff6927 caused a problem: Cannot start the broker 
org.osgi.service.cm.ConfigurationException: null : Cannot start the broker 
    at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:120)[176:org.apache.activemq.activemq-osgi:5.12.1] 
    at Proxye6b76768_a1ce_4232_9f62_ee376293401b.updated(Unknown Source)[:] 
    at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[6:org.apache.felix.configadmin:1.8.4] 
    at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[6:org.apache.felix.configadmin:1.8.4] 
    at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1597)[6:org.apache.felix.configadmin:1.8.4] 
    at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1540)[6:org.apache.felix.configadmin:1.8.4] 
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.8.4] 
    at java.lang.Thread.run(Thread.java:722)[:1.7.0_17] 
Caused by: java.lang.IllegalArgumentException: Service object is not an instance of "org.springframework.core.env.EnvironmentCapable". 
    at org.apache.felix.framework.Felix.registerService(Felix.java:3386)[org.apache.felix.framework-4.2.1.jar:] 
    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)[org.apache.felix.framework-4.2.1.jar:] 
    at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.publishContextAsOsgiServiceIfNecessary(AbstractOsgiBundleApplicationContext.java:344)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:237)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)[161:org.apache.servicemix.bundles.spring-context:3.2.14.RELEASE_1] 
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89)[165:org.springframework.osgi.core:1.2.1] 
    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[165:org.springframework.osgi.core:1.2.1] 
    at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:102)[176:org.apache.activemq.activemq-osgi:5.12.1] 
    ... 7 more 
2015-12-11 10:43:35,095 | INFO | FelixStartLevel | BlueprintContainerImpl   | 15 - org.apache.aries.blueprint.core - 1.4.4 | Bundle org.apache.servicemix.activemq.service/6.1.0 is waiting for dependencies [(objectClass=javax.transaction.TransactionManager)] 
2015-12-11 10:43:35,101 | INFO | FelixStartLevel | BlueprintContainerImpl   | 15 - org.apache.aries.blueprint.core - 1.4.4 | Bundle org.apache.servicemix.activemq.camel/6.1.0 is waiting for dependencies [(&(&(transacted=false)(name=default-cf))(objectClass=javax.jms.ConnectionFactory))] 
2015-12-11 10:43:35,104 | INFO | FelixStartLevel | CXFActivator      | 92 - org.apache.cxf.cxf-core - 3.1.4 | Adding the extensions from bundle org.apache.camel.camel-cxf-transport (231) [org.apache.camel.component.cxf.transport.CamelTransportFactory] 
... 

的問題是:什麼腳麻爲什麼和如何解決這一問題? Thx爲您的時間。

+0

你寫的 '當我從頭開始安裝一切的ServiceMix看起來很好 - JMS的作品。'這是否意味着在安裝新的ServiceMix後代理商可以正常工作? – KSobkowiak

+0

是的,它可以在全新解包後使用。運行帶有jms-endpoint的路由後,隊列中會有消息。我假設我做了一些事情導致activemq在重啓時失敗。但我認爲那只是像'install camel-jdbc'之類的東西。我迷路了... – chris

+0

我試圖安裝一些jpa,jdbc,交易功能,它看起來不錯。如果您可以嘗試從全新安裝開始重新檢查問題,以檢查哪個功能會中斷代理,那將會很不錯 – KSobkowiak

回答

1

您可以檢查是否沒有安裝任何Spring 4.x功能或JAR。 你可以看到安裝的功能與

功能:列表

類似的問題發生在安裝時彈簧JDBC中的ServiceMix 6.1.0(從網站上下載的zip的ServiceMix)

功能:安裝彈簧JDBC(這導致的ActiveMQ到破產)

功能:安裝彈簧JDBC/3.2.14.RELEASE_1(ActiveMQ的仍然有效)。

我懷疑安裝spring 4.x JAR會導致某人看到太新的JAR,但我沒有進一步調查。

功能:安裝駱駝SQL

安裝彈簧JDBC 3.2.14.RELEASE_1(在SMX 6.1.0)