ServiceMix: logmessage ไม่สามารถเริ่มนายหน้าได้

ฉันรัน servicemix 6.1.0 มาสองสามวันแล้ว เส้นทางอูฐที่มีจุดสิ้นสุดไฟล์และ jdbc ใช้งานได้ดีมาก

ตอนนี้ฉันต้องการเพิ่ม activemq เมื่อฉันติดตั้ง servicemix ตั้งแต่เริ่มต้น ทุกอย่างดูดี - jms ใช้งานได้

แต่ตอนนี้ฉันเห็นข้อยกเว้นในไฟล์บันทึกเมื่อเริ่มต้นระบบ และคำสั่ง karaf@root>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]
...

คำถามคือ: เกิดอะไรขึ้น และทำไม และจะแก้ไขปัญหาได้อย่างไร ขอบคุณสำหรับเวลาของคุณ


person chris    schedule 11.12.2015    source แหล่งที่มา
comment
คุณเขียนว่า 'เมื่อฉันติดตั้ง servicemix ตั้งแต่เริ่มต้น ทุกอย่างดูดี - jms ใช้งานได้' หมายความว่านายหน้าไม่เป็นไรหลังจากที่คุณติดตั้ง ServiceMix ใหม่ใช่หรือไม่   -  person KSobkowiak    schedule 11.12.2015
comment
ใช่ มันใช้งานได้หลังจากการแกะกล่องใหม่ มีข้อความในคิวหลังจากรันเส้นทางด้วย jms-endpoint ฉันคิดว่าฉันได้ทำอะไรบางอย่างที่ทำให้ activemq ล้มเหลวเมื่อรีสตาร์ท แต่ฉันคิดว่านั่นเป็นเพียงสิ่งที่ชอบ install camel-jdbc และอะไรทำนองนั้น ฉันหลงทาง...   -  person chris    schedule 11.12.2015
comment
ฉันพยายามติดตั้งคุณสมบัติธุรกรรม jpa, jdbc และดูเหมือนว่าจะใช้ได้ คงจะดีไม่น้อยหากคุณสามารถลองจำลองปัญหาโดยเริ่มด้วยการติดตั้งใหม่เพื่อตรวจสอบว่าฟีเจอร์ใดที่ทำให้นายหน้าเสียหาย   -  person KSobkowiak    schedule 13.12.2015


คำตอบ (1)


คุณสามารถตรวจสอบได้ว่าคุณไม่ได้ติดตั้งคุณสมบัติหรือ JAR ของ Spring 4.x ใด ๆ คุณสามารถดูคุณสมบัติที่ติดตั้งด้วย

คุณลักษณะ:รายการ

ปัญหาที่คล้ายกันเกิดขึ้นเมื่อติดตั้ง spring-jdbc ใน Servicemix 6.1.0 (ดาวน์โหลด Servicemix zip จากเว็บไซต์)

คุณสมบัติ: ติดตั้ง spring-jdbc (ซึ่งทำให้ ActiveMQ พัง)

แต่

คุณลักษณะ: ติดตั้ง spring-jdbc/3.2.14.RELEASE_1 (ActiveMQ ยังคงใช้งานได้)

ฉันสงสัยว่าการติดตั้ง spring 4.x JARs ทำให้มีคนเห็น JAR ใหม่เกินไป แต่ฉันไม่ได้ตรวจสอบเรื่องนี้เพิ่มเติม

คุณสมบัติ: ติดตั้ง Camel-SQL

ติดตั้ง spring-jdbc 3.2.14.RELEASE_1 (ใน SMX 6.1.0)

person Sami Nurminen    schedule 06.01.2016