AnsweredAssumed Answered

Karaf 2.2.7 ClassNotFound Exception

Question asked by rajsenthil on Jun 8, 2012
Latest reply on Jun 12, 2012 by rajsenthil
Hi, I have a simple process with a single task as  (1)Start==>(2)Hello Service Task==>(3)End.
The service task is a JavaDelegation class that is trying to refer an object exposed in another bundle. This object is referred inside the beans.xml below as helloService and I am getting the NullPointerException. Could someone help me if I am missing anything?


<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:ctx="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
       xmlns:jaxws="http://cxf.apache.org/jaxws"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/tx      http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
       http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
       http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
       >   
   
   <bean id="helloWorldConsumer" class="com.ge.research.dhc.process.HelloWorldTask">
       <property name="helloService" ref="helloService"/>
    </bean>
   
   <osgi:reference id="helloService" interface="com.ge.dhc.poc01.helloWorldService.HelloService"/>
                             
</beans>

Thanks

Outcomes