Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 39408 invoked from network); 7 Aug 2009 15:26:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 15:26:38 -0000 Received: (qmail 72972 invoked by uid 500); 7 Aug 2009 15:26:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 72945 invoked by uid 500); 7 Aug 2009 15:26:45 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 72935 invoked by uid 99); 7 Aug 2009 15:26:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 15:26:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 15:26:36 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MZRKh-0003sf-7m for users@camel.apache.org; Fri, 07 Aug 2009 08:26:15 -0700 Message-ID: <24866795.post@talk.nabble.com> Date: Fri, 7 Aug 2009 08:26:15 -0700 (PDT) From: otech To: users@camel.apache.org Subject: Re: Camel OSGI is not working in Eclipse RCP 3.5 In-Reply-To: <4A7BA145.3050402@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: otech.ou@gmail.com References: <24835236.post@talk.nabble.com> <5380c69c0908060618r5bbe6a81qa6cc05453ba519ef@mail.gmail.com> <24846562.post@talk.nabble.com> <4A7ADDB9.1060903@gmail.com> <24847018.post@talk.nabble.com> <4A7AE1ED.7070204@gmail.com> <24848513.post@talk.nabble.com> <4A7BA145.3050402@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the advice. Bundle-ActivationPolicy: lazy is the only way in Eclipse according to what I found. The Bundle-ActivationPolicy Header The Bundle-ActivationPolicy header is introduced to allow a bundle to specify a bundle start policy.=20 Bundle-ActivationPolicy ::=3D policy-type (';' directive)* policy-type ::=3D token The only defined policy type is lazy.=20 The lazy activation policy has the following defined directives:=20 include =EF=BF=BD A comma-separated list of package names that require the = lazy activation policy. Note that the use of a comma in the value requires it to be enclosed in double quotes. If not specified then all packages require th= e lazy activation policy.=20 exclude =EF=BF=BD A comma-separated list of package names that do not use t= he lazy activation policy. Note that the use of a comma in the value requires it to be enclosed in double quotes. If not specified then all packages require th= e lazy activation policy.=20 I have add the Exclude like the follow: Bundle-ActivationPolicy: lazy; exclude:=3D"org.apache.camel.converter" but still give me the exception. 2009-08-07 11:18:14,382 INFO [org.apache.camel.spring.handler.CamelNamespaceHandler] - camel-osgi.jar no= t detected in classpath 2009-08-07 11:18:28,944 WARN [org.apache.camel.impl.DefaultPackageScanClassResolver] - Could not read entries in url: bundleresource://61.fwk26208195:17/org/apache/camel/converter/ java.io.FileNotFoundException: \org\apache\camel\converter (The system cannot find the path specified) I have to gave up the camel at this time because of the deadline.=20 Thank you for all the helps. willem.jiang wrote: >=20 > Hi, >=20 > Can you change this property in your MANIFEST.MF ? > Bundle-ActivationPolicy: lazy >=20 > Willem > otech wrote: >> I have moved the osgi jar before camel-spring jar. But the problem still >> exits. Thank you for all the help. >>=20 >> Logs: >>=20 >> 2009-08-06 11:12:20,308 INFO >> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loadin= g >> XML bean definitions from URL >> [bundleresource://53.fwk28904249/beanRefFactory.xml] >> 2009-08-06 11:12:20,370 INFO >> [org.springframework.beans.factory.support.DefaultListableBeanFactory] - >> Pre-instantiating singletons in >> org.springframework.beans.factory.support.DefaultListableBeanFactory@134= 3ed0: >> defining beans [ctx]; root of factory hierarchy >> 2009-08-06 11:12:20,433 INFO >> [org.springframework.context.support.ClassPathXmlApplicationContext] - >> Refreshing >> org.springframework.context.support.ClassPathXmlApplicationContext@17a49= 89: >> display name >> [org.springframework.context.support.ClassPathXmlApplicationContext@17a4= 989]; >> startup date [Thu Aug 06 11:12:20 EDT 2009]; root of context hierarchy >> 2009-08-06 11:12:20,433 INFO >> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loadin= g >> XML bean definitions from class path resource [resources/ptcContext.xml] >> 2009-08-06 11:12:22,527 INFO >> [org.apache.camel.spring.handler.CamelNamespaceHandler] - camel-osgi.jar >> not >> detected in classpath >> 2009-08-06 11:12:22,964 INFO >> [org.springframework.context.support.ClassPathXmlApplicationContext] - >> Bean >> factory for application context >> [org.springframework.context.support.ClassPathXmlApplicationContext@17a4= 989]: >> org.springframework.beans.factory.support.DefaultListableBeanFactory@c8c= 7d6 >> 2009-08-06 11:12:23,027 INFO [org.apache.camel.impl.DefaultCamelContext] >> - >> JMX enabled. Using InstrumentationLifecycleStrategy. >> 2009-08-06 11:12:23,058 INFO >> [org.springframework.beans.factory.support.DefaultListableBeanFactory] - >> Pre-instantiating singletons in >> org.springframework.beans.factory.support.DefaultListableBeanFactory@c8c= 7d6: >> defining beans >> [activemq,orderTopicMessageProcessor,desktopCamelTemplate,camel:beanPost= Processor,camel,jmsConnectionFactory,lavaOrderTopic,sectorSummaryTopic,Ptc2= Pts-RequestQ,jmsTemplate,orderMsgProcessor,orderTopicMessageListener,sector= SummaryMessageListener,sectorSummaryMessageListenerContainer,requester,user= Requester]; >> root of factory hierarchy >> 2009-08-06 11:12:23,339 INFO >> [org.springframework.jms.connection.SingleConnectionFactory] - >> Established >> shared JMS Connection: ActiveMQConnection >> {id=3DID:WJB1DEV3-4488-1249571543230-0:0,clientId=3Dnull,started=3Dfalse= } >> 2009-08-06 11:12:23,402 INFO [org.apache.camel.spring.SpringCamelContext= ] >> - >> Starting Apache Camel as property ShouldStartContext is true >> 2009-08-06 11:12:23,402 INFO [org.apache.camel.impl.DefaultCamelContext] >> - >> Apache Camel 2.0-M3 (CamelContext:camel) is starting >> 2009-08-06 11:12:23,589 INFO [org.apache.camel.impl.DefaultCamelContext] >> - >> Apache Camel 2.0-M3 (CamelContext:camel) started >>=20 >>=20 >> The MANIFEST.MF file: >> Require-Bundle: org.eclipse.ui, >> org.eclipse.core.runtime, >> org.eclipse.core.databinding;bundle-version=3D"1.2.0", >> org.eclipse.core.databinding.beans;bundle-version=3D"1.2.0", >> org.eclipse.core.databinding.property;bundle-version=3D"1.2.0", >> org.eclipse.jface.databinding;bundle-version=3D"1.3.0" >> Bundle-RequiredExecutionEnvironment: JavaSE-1.6 >> Bundle-ActivationPolicy: lazy >> Bundle-ClassPath: libs/glazedlists-1.8.0_java15.jar, >> libs/net.sourceforge.nattable.core_2.0.0.200906211946.jar, >>=20 >> libs/net.sourceforge.nattable.extension.glazedlists_2.0.0.200906211946.j= ar, >> ., >> libs/commons-lang-2.4.jar, >> libs/activemq-all-5.2.0.jar, >> libs/commons-beanutils-1.8.0.jar, >> libs/commons-logging-1.1.1.jar, >> libs/log4j-1.2.14.jar, >> libs/spring-beans-2.5.6.jar, >> libs/spring-context-2.5.6.jar, >> libs/spring-core-2.5.6.jar, >> libs/spring-jms-2.5.6.jar, >> libs/spring-tx-2.5.6.jar, >> libs/xbean-spring-3.2.jar, >> libs/k170-1.0.jar, >> libs/camel-core-2.0-M3.jar, >> libs/camel-jms-2.0-M3.jar, >> libs/camel-osgi-2.0-M3.jar, >> libs/camel-spring-2.0-M3.jar, >> libs/spring-aop-2.0.8.jar >>=20 >>=20 >>=20 >> willem.jiang wrote: >>> Can you move the camel-osgi-2.0-M3.jar before the >>> camel-spring-2.0-M3.jar? >>> It will do a trick to let camel-spring find the camel-osgi module befor= e=20 >>> it register the spring handler to parser camelContext element. >>> >>> Willem >>> otech wrote: >>>> Sorry, I have edited the previous post. The actual file is: >>>> >>>> Manifest-Version: 1.0 >>>> Bundle-ManifestVersion: 2 >>>> Bundle-Name: Desktop >>>> Bundle-SymbolicName:desktop;singleton:=3Dtrue >>>> Bundle-Version: 1.0.0 >>>> Bundle-Activator: desktop.Activator >>>> Bundle-Vendor: com >>>> Require-Bundle: org.eclipse.ui, >>>> org.eclipse.core.runtime, >>>> org.eclipse.core.databinding;bundle-version=3D"1.2.0", >>>> org.eclipse.core.databinding.beans;bundle-version=3D"1.2.0", >>>> org.eclipse.core.databinding.property;bundle-version=3D"1.2.0", >>>> org.eclipse.jface.databinding;bundle-version=3D"1.3.0" >>>> Bundle-RequiredExecutionEnvironment: JavaSE-1.6 >>>> Bundle-ActivationPolicy: lazy >>>> Bundle-ClassPath: libs/glazedlists-1.8.0_java15.jar, >>>> libs/net.sourceforge.nattable.core_2.0.0.200906211946.jar, >>>> >>>> libs/net.sourceforge.nattable.extension.glazedlists_2.0.0.200906211946= .jar, >>>> ., >>>> libs/commons-lang-2.4.jar, >>>> libs/activemq-all-5.2.0.jar, >>>> libs/commons-beanutils-1.8.0.jar, >>>> libs/commons-logging-1.1.1.jar, >>>> libs/log4j-1.2.14.jar, >>>> libs/spring-beans-2.5.6.jar, >>>> libs/spring-context-2.5.6.jar, >>>> libs/spring-core-2.5.6.jar, >>>> libs/spring-jms-2.5.6.jar, >>>> libs/spring-tx-2.5.6.jar, >>>> libs/xbean-spring-3.2.jar, >>>> libs/k170-1.0.jar, >>>> libs/spring-aop-2.0.8.jar, >>>> libs/camel-jms-2.0-M3.jar, >>>> libs/jencks-2.0.jar, >>>> libs/jencks-amqpool-2.0.jar, >>>> libs/commons-pool-1.5.2.jar, >>>> libs/camel-core-2.0-M3.jar, >>>> libs/camel-spring-2.0-M3.jar, >>>> libs/activemq-camel-5.2.0.jar, >>>> libs/camel-osgi-2.0-M3.jar >>>> >>>> >>>> >>>> >>>> willem.jiang wrote: >>>>> I didn't find the camel-osgi-2.0-M3.jar in the MANIFEST.MF file. >>>>> >>> >>=20 >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Camel-OSGI-is-not-worki= ng-in-Eclipse-RCP-3.5-tp24835236p24866795.html Sent from the Camel - Users mailing list archive at Nabble.com.