[
https://issues.apache.org/jira/browse/CXF-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705009#action_12705009
]
Josh Holtzman commented on CXF-2173:
------------------------------------
The latest snapshot no longer throws an exception. However, the service
properties are not read correctly from the DS configuration:
[pool-1-thread-2] INFO org.apache.cxf.endpoint.ServerImpl - Setting the
server's publish address to be
http://localhost:9000/org/opencastproject/sampleservice/api/SampleService
May 1, 2009 7:26:20 AM org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils
getServiceProperties
INFO: service properties:
{osgi.remote.configuration.type=[Ljava.lang.String;@72a60df8,
osgi.remote.configuration.pojo.httpservice.context=[Ljava.lang.String;@73df4f95,
osgi.remote.interfaces=[Ljava.lang.String;@49e1faa1,
osgi.remote.endpoint.location=http://localhost:9000/org/opencastproject/sampleservice/api/SampleService,
osgi.remote.requires.intents=[Ljava.lang.String;@130d85ec}
It's unclear whether this leads to the improper publish address (which should
be on :8080, and should be registered under /samplews).
> ClassCastException with Declarative Services
> --------------------------------------------
>
> Key: CXF-2173
> URL: https://issues.apache.org/jira/browse/CXF-2173
> Project: CXF
> Issue Type: Bug
> Components: Distributed-OSGi
> Reporter: Josh Holtzman
>
> When trying to configure a DOSGI service using declarative services, the
> following exception is thrown:
> Exception in thread "pool-1-thread-2" java.lang.ClassCastException:
> [Ljava.lang.String; cannot be cast to java.lang.String
> at
> org.apache.cxf.dosgi.dsw.OsgiUtils.getPublishableInterfaces(OsgiUtils.java:470)
> at
> org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:68)
> at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:143)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:637)
> The OSGI/sample.xml file contains:
> <?xml version="1.0" encoding="UTF-8"?>
> <component name="sample" immediate="true">
> <implementation class="...SampleServiceImpl"/>
> <property name="service.description" value="Sample Service" />
> <property name="osgi.remote.interfaces">*</property>
> <property name="osgi.remote.requires.intents">SOAP.1_2</property>
> <property name="osgi.remote.configuration.type">pojo</property>
> <property
> name="osgi.remote.configuration.pojo.httpservice.context">/samplews</property>
> <service>
> <provide interface="...SampleService"/>
> </service>
> </component>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.