distributed osgi java first web service

One Star

distributed osgi java first web service

Hello!
We have web service, wich was created using developer guide java first sample.
We need it to be able to handle requests like usual web service. So we implemented distributed osgi lib.
It works fine with talend esb 4.2.1 and later version 5.0.2.
After migrating to version 5.1.1 web service fail to run.
This is console output:
Exception in thread "pool-9-thread-4" java.lang.ExceptionInInitializerError
at org.apache.cxf.frontend.ServerFactoryBean.<init>(ServerFactoryBean.java:94)
at org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFactoryBean(AbstractPojoConfigurationTypeHandler.java:77)
at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:119)
at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:164)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: org.apache.cxf.service.factory.Messages != org.apache.cxf.service.factory.SimpleMessages
at java.util.logging.Logger.getLogger(Logger.java:337)
at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:210)
at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:152)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.<clinit>(ReflectionServiceFactoryBean.java:143)
... 10 more
I thought version of cxf-dosgi i was using was too old(ver 1.1)
I tried every available version, and got errors like:
Exception in thread "pool-9-thread-1" java.lang.NullPointerException
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.isCreatedByThisRSA(RemoteServiceAdminCore.java:299)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:115)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Exception in thread "pool-9-thread-2" java.lang.NullPointerException
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:232)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "pool-9-thread-3" java.lang.ExceptionInInitializerError
at org.apache.cxf.frontend.ServerFactoryBean.<init>(ServerFactoryBean.java:85)
at org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFactoryBean(AbstractPojoConfigurationTypeHandler.java:80)
at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:114)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:247)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportSerice(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: org.apache.cxf.service.factory.Messages != org.apache.cxf.service.factory.SimpleMessages
at java.util.logging.Logger.getLogger(Logger.java:337)
at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:249)
at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:191)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.<clinit>(
ReflectionServiceFactoryBean.java:147)
... 13 more

After i got such errors i run command list and see that my service is active but it doesn't work

Commons Configuration (1.6)
Distributed OSGi Distribution Software Single-Bundle Distribution (1.3.1)
ws_customer_portal (1.0)
karaf@trun>
Any advise please.
Employee

Re: distributed osgi java first web service

Hi,
The cxf version upgraded to 2.6.0 in the 5.1.1 release. could you please add more detailed info or attachment about how the cxf dosgi has been used?
Xilai
One Star

Re: distributed osgi java first web service

Hello!
In previous versions of talend my actions were:
- put cxf-dosgi-ri-singlebundle-distribution-1.1 into deploy folder
- put org.osgi.compendium-1.2.0 into deploy folder
- in my Activator:
public class Activator implements BundleActivator{
private ServiceRegistration registration;
public void start(BundleContext context) throws Exception {
try {
ServiceImpl implementor = new ServiceImpl();
Dictionary<String, String> props = new Hashtable<String, String>();
props.put("osgi.remote.interfaces", "*");
props.put("osgi.remote.configuration.type", "pojo");
props.put("osgi.remote.configuration.pojo.address", "http://localhost:9000/ws_customer_portal");
registration = context.registerService(ServiceImpl.class.getName(), implementor, props);
} catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
throw e;
}
}
in version 5.1.1
1.
- put cxf-dosgi-ri-singlebundle-distribution-1.1 into deploy folder
- put org.osgi.compendium-1.2.0 into deploy folder
- Activator class the same
output:
Exception in thread "pool-10-thread-4" java.lang.NullPointerException
at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:164)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "pool-10-thread-5" java.lang.ExceptionInInitializerError
at org.apache.cxf.frontend.ServerFactoryBean.<init>(ServerFactoryBean.java:94)
at org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFactoryBean(AbstractPojoConfigurationTypeHandler.java:77)
at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:119)
at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:164)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: org.apache.cxf.service.factory.Messages != org.apache.cxf.service.factory.SimpleMessages
at java.util.logging.Logger.getLogger(Logger.java:337)
at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:210)
at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:152)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.<clinit>(
ReflectionServiceFactoryBean.java:143)
... 10 more
2.
- put cxf-dosgi-ri-singlebundle-distribution-1.3.1 into deploy folder
- put org.osgi.compendium-4.2.0 into deploy folder
- Activator class the same

when i put cxf-dosgi-ri-singlebundle-distribution-1.3.1 i've got output like this:
Exception in thread "SpringOsgiExtenderThread-3" org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method on target ; nested exception is java.l
ang.IllegalArgumentException: object is not an instance of declaring class
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
But cxf-dosgi-ri-singlebundle-distribution-1.3.1 seems to be in active state:
osgi.cmpn (4.2.0.200908310645)
Distributed OSGi Distribution Software Single-Bundle Distribution (1.3.1)

when i put my web service to deploy no error output occurs.
WebService is not available.

3.
- put cxf-dosgi-ri-singlebundle-distribution-1.3.1 into deploy folder
- put org.osgi.compendium-4.2.0 into deploy folder
- Activator class, props changed to:
props.put("service.exported.interfaces", "*");
props.put("service.exported.configs", "org.apache.cxf.ws");
props.put("org.apache.cxf.ws.address", "http://localhost:9000/ws_customer_portal");

Talend log tells:
org.springframework.osgi.extender - 1.2.1 | Cannot create application context for bundle
Creating a server.ServiceImpl endpoint from CXF PublishHook, address is http://localhost:9000/ws_customer_portal
calling TopologyManager -> registered service
TopologyManager: adding service to exportedServices list to export it --- from bundle: org.apache.cxf.archetype.ws_customer_portal
Server ws_customer_portal is started...
TopologyManager: exporting service ...
TopologyManager: handling remoteServiceAdmin org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance@122152b
TopologyManager: exporting ...
Injected intents: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature@30b6a4, logging=org.apache.cxf.feature.LoggingFeature@26d149, SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@76481e, SOAP.1_1=org.apache.cxf.binding.soap.SoapBindingConfiguration@76481e, SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@178c581, HTTP=PROVIDED}
interfaces selected for export:
configuration types selected for export:
creating initial ExportDescription for interface server.ServiceImpl with configuration types
creating server for interface server.ServiceImpl
found handler for server.ServiceImpl -> org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler@150262b
...
console output:
Exception in thread "pool-9-thread-1" java.lang.NullPointerException
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.isCreatedByThisRSA(RemoteServiceAdminCore.java:299)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:115)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Exception in thread "pool-9-thread-2" java.lang.NullPointerException
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:232)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "pool-9-thread-3" java.lang.ExceptionInInitializerError
at org.apache.cxf.frontend.ServerFactoryBean.<init>(ServerFactoryBean.java:85)
at org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFactoryBean(AbstractPojoConfigurationTypeHandler.java:80)
at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:114)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:247)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportSerice(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: org.apache.cxf.service.factory.Messages != org.apache.cxf.service.factory.SimpleMessages
at java.util.logging.Logger.getLogger(Logger.java:337)
at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:249)
at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:191)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.<clinit>(
ReflectionServiceFactoryBean.java:147)
... 13 more

4.
- put cxf-dosgi-ri-singlebundle-distribution-1.3.1 into deploy folder
- put org.osgi.compendium-4.2.0 into deploy folder
- put cxf-dosgi-ri-dsw-cxf-1.3.1 into deploy folder
- Activator class, props :
props.put("service.exported.interfaces", "*");
props.put("service.exported.configs", "org.apache.cxf.ws");
props.put("org.apache.cxf.ws.address", "http://localhost:9000/ws_customer_portal");
i'v got this output:
Exception in thread "pool-9-thread-4" java.lang.NoClassDefFoundError: Could not initialize class org.apache.cxf.service.factory.ReflectionServiceFactoryBean
at org.apache.cxf.frontend.ServerFactoryBean.<init>(ServerFactoryBean.java:85)
at org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFactoryBean(AbstractPojoConfigurationTypeHandler.java:80)
at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:114)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:247)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "pool-9-thread-5" java.lang.NullPointerException
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:232)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Exception in thread "pool-9-thread-6" java.lang.NoClassDefFoundError: Could notinitialize class org.apache.cxf.service.factory.ReflectionServiceFactoryBean
at org.apache.cxf.frontend.ServerFactoryBean.<init>(ServerFactoryBean.java:85)
at org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFactoryBean(AbstractPojoConfigurationTypeHandler.java:80)
at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:114)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:247)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
In talend log i've got things like this:
*** EndpointDescription: ****
endpoint.framework.uuid => 5df37585-55aa-4825-bfec-1092ed66059f
endpoint.id => http://localhost:9000/ws_customer_portal
endpoint.package.version.server => 1.0.0
endpoint.service.id => 345
objectClass => [Ljava.lang.String;@3f6ca4
org.apache.cxf.ws.address => http://localhost:9000/ws_customer_portal
service.imported => true
service.imported.configs => [Ljava.lang.String;@1f5ad2b
service.intents => [Ljava.lang.String;@3c03e1
This time my service wsdl is accessible via localhost/127.0.0.1 address.
No success when attempting to get access from another computer.

5.
- put cxf-dosgi-ri-singlebundle-distribution-1.3.1 into deploy folder
- cxf-dosgi-ri-dsw-cxf-1.3.1 into deploy folder
- Activator class, props (as it was the at the begining):
props.put("osgi.remote.interfaces", "*");
props.put("osgi.remote.configuration.type", "pojo");
props.put("osgi.remote.configuration.pojo.address", "http://localhost:9000/ws_customer_portal");
no error output.
web service is not accesible local or remote.
Employee

Re: distributed osgi java first web service

Hi, perhaps this sample (tested back in May on Talend ESB) is something you can leverage: http://www.jroller.com/gmazza/entry/java_first_web_service
HTH,
Glen
One Star

Re: distributed osgi java first web service

Thanks.
It works for me.
One question. Is it possible to change endpoint address or port? As tutorial tells default URL used by Talend ESB is http://localhost:8040/services/doubleit, how can i change it ot http://localhost:9000/doubleit ?
Employee

Re: distributed osgi java first web service

Edit the etc/org.ops4j.pax.web.cfg
org.osgi.service.http.port = 8040