Thank you cschneider for the advice, I have done this tutorial : 
http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application
https://github.com/cschneider/Karaf-Tutorial/tree/master/tasklist
<http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application
https://github.com/cschneider/Karaf-Tutorial/tree/master/tasklist>  


Now, I know I need to change the blueprint.xml to change something but I
don't know how to do it. I have tried to do something and please can you
says to me what do you think of what I have done ?  why  I have this error ?
Thank you.

*i have add that in the project personservice-webui
src/main/ressource/osgi-inf/blueprint/blueprint.xml :*

<bean id="helloWorldActivator" 
class="com.bw.osgi.consumer.HelloWorldActivator" init-method="start"
destroy-method="stop">
</bean>




*in the folder src/main/java of the personservice-webui project I have add 
this file :
package com.bw.osgi.consumer;*



*I do mvn clean install without warning
on karaf :*
179 | Active  |  80 | 1.0.0.SNAPSHOT | personservice-model                
180 | Active  |  80 | 1.0.0.SNAPSHOT | personservice-server               
181 | Active  |  80 | 1.0.0.SNAPSHOT | personservice-proxy                
182 | Failure |  80 | 1.0.0.SNAPSHOT | personservice-webui
*I have this error on karaf log : 
*[37:org.apache.karaf.shell.console:3.0.1]
2014-06-27 23:55:35,692 | INFO  | Local user karaf | BlueprintExtender          
     
| 19 - org.apache.aries.blueprint.core - 1.4.0 | Destroying
BlueprintContainer for bundle personservice-webui
2014-06-27 23:55:38,870 | INFO  | Local user karaf | HttpServiceFactoryImpl     
     
| 95 - org.ops4j.pax.web.pax-web-runtime - 3.1.0 | Binding bundle:
[personservice-webui [182]] to http service
2014-06-27 23:55:38,879 | INFO  | Local user karaf | ContextHandler             
     
| 86 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 |
stopped HttpServiceContext{httpContext=DefaultHttpContext
[bundle=personservice-webui [182], contextID=default]}
2014-06-27 23:55:38,880 | INFO  | Local user karaf | HttpServiceFactoryImpl     
     
| 95 - org.ops4j.pax.web.pax-web-runtime - 3.1.0 | Unbinding bundle:
[personservice-webui [182]]
2014-06-27 23:55:38,880 | WARN  | Local user karaf | BeanRecipe                 
     
| 19 - org.apache.aries.blueprint.core - 1.4.0 | Object to be destroyed is
not an instance of UnwrapperedBeanHolder, type: null
2014-06-27 23:55:38,881 | ERROR | Local user karaf | BlueprintContainerImpl     
     
| 19 - org.apache.aries.blueprint.core - 1.4.0 | Unable to start blueprint
container for bundle personservice-webui
org.osgi.service.blueprint.container.ComponentDefinitionException: Component
'helloWorldActivator' does not have init-method : start






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-Tutorial-Part-4-CXF-Services-in-OSGi-How-to-use-a-new-service-tp4033785p4033851.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to