Christian, I tried out the tutorial at http://www.liquid-reality.de/display/liquid/2013/02/13/Apache+Karaf+Tutorial+Part+8+-+Distributed+OSGi.
The setup was plain easy, no errors during configuration. The service side came up, viewed the ?wsdl document, invoked getTasks successfully using soapUI. The client, however ends up in HTTP ERROR 500. The cause of the error is: Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking http://10.0.0.2:8181/cxf/net/lr/tasklist/model/TaskService: Read timed out at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1336) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1320) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:622) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 53 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method)which is strange because soapUI targets the exact same endpoint (either as localhost or 10.0.0.2). Also, I should mention that, since you don't state any change in your tutorial, both containers run on the same rmi registry and server ports resulting in the exception below upon container_b startup: Exception in thread "JMX Connector Thread [service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]" java.lang.RuntimeException: Port already in use: 44444; You may have started two containers. If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:241) Changing container_b's rmi server port to something other than 44444, caused the client to return 404 - so I ran the tutorial with the above exception. regards, Konstantinos > From: [email protected] > To: [email protected] > Subject: RE: CXF Distributed OSGi with Blueprint demo > Date: Wed, 27 Feb 2013 09:45:37 +0200 > > Thank you for the reply Christian, > > I came across your work while investigating my problem as the example on > DOSGi from your tutorial is very relevant. I'm looking at this issue from an > Equinox perspective, but it should be doable considering I am relying mainly > on cxf bundles. > > regards, > Konstantinos
