Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10040

google-calendar-stream is not working on Karaf

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • fuse-7.3
    • fuse-7.3
    • Camel
    • None
    • % %
    • Fuse 7.3 Sprint 40 - Dev #1

    Description

      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
      
          <camelContext xmlns="http://camel.apache.org/schema/blueprint">
              <route>
                  <from uri="google-calendar-stream://test?delay=5000&amp;maxResults=5" />
      	    <to uri="mock:result"/>
              </route>
          </camelContext>
      
      	<bean class="org.apache.camel.component.google.calendar.stream.GoogleCalendarStreamComponent" id="google-calendar-stream">
      		<property name="configuration" ref="conf"/>
      	</bean>
      
      	<bean id="conf" class="org.apache.camel.component.google.calendar.stream.GoogleCalendarStreamConfiguration">
      		<property name="clientId" value="xxx"/>
      		<property name="clientSecret" value="xx"/>
      		<property name="applicationName" value="camel-google-calendar"/>
      		<property name="refreshToken" value="ss"/>
      	</bean>
      
      </blueprint>
      
      16:17:10.656 WARN [fileinstall-/home/jbouska/servers/karaf/fuse-karaf-7.3.0.fuse-730017/deploy] Error while starting bundle: blueprint:file:/home/jbouska/servers/karaf/fuse-karaf-7.3.0.fuse-730017/deploy/blueprint.xml
      org.osgi.framework.BundleException: Unable to resolve blueprint.xml [231](R 231.0): missing requirement [blueprint.xml [231](R 231.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.camel.component.google.calendar.stream) Unresolved requirements: [[blueprint.xml [231](R 231.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.camel.component.google.calendar.stream)]
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149) ~[?:?]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2119) ~[?:?]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [11:org.apache.felix.fileinstall:3.6.4]
      
      karaf@root()> headers 224
      
      camel-google-calendar (224)
      ---------------------------
      .....
      Bundle-Name = camel-google-calendar
      Bundle-SymbolicName = org.apache.camel.camel-google-calendar
      
      Export-Service = 
      	org.apache.camel.spi.ComponentResolver;component=google-calendar
      Require-Capability = 
      	osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.8))
      
      Export-Package = 
      	org.apache.camel.component.google.calendar;
      		uses:="com.google.api.services.calendar,
      			com.google.api.services.calendar.model,
      			org.apache.camel,
      			org.apache.camel.spi,
      			org.apache.camel.util.component";
      		version=2.21.0.fuse-730019
      ...
      

      We should export google-calendar-stream related packages in order to support google-stream endpoint in OSGI environment.

      Attachments

        Issue Links

          Activity

            People

              acosenti Andrea Cosentino
              jbouska@redhat.com Jan Bouska
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: