cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Holtzman (JIRA)" <>
Subject [jira] Created: (CXF-2173) ClassCastException with Declarative Services
Date Thu, 16 Apr 2009 17:33:14 GMT
ClassCastException with Declarative Services

                 Key: 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(
	at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(
	at org.apache.cxf.dosgi.dsw.Activator$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

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>
    <provide interface="...SampleService"/>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message