Christian Schneider created CXF-6270:
----------------------------------------
Summary: jaxrs:client does not work in blueprint
Key: CXF-6270
URL: https://issues.apache.org/jira/browse/CXF-6270
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 3.0.4
Reporter: Christian Schneider
Assignee: Christian Schneider
Fix For: 3.1.0
When I use the blueprint below then <jaxrs-client:client..> works but
<jaxrs:client ...> does not work.
Accoding to Sergey both variants should work and in spring both actually work.
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
xmlns:jaxrs-client="http://cxf.apache.org/blueprint/jaxrs-client"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/blueprint/jaxrs
http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
http://cxf.apache.org/blueprint/jaxrs-client
http://cxf.apache.org/schemas/blueprint/jaxrs-client.xsd
">
<bean id="personServlet"
class="net.lr.tutorial.karaf.cxf.personrest.webui.PersonServlet">
<property name="personService" ref="personService" />
</bean>
<cm:property-placeholder
persistent-id="net.lr.tutorial.karaf.cxf.personrest.webui"
update-strategy="reload">
<cm:default-properties>
<cm:property name="personServiceRest.URL"
value="http://localhost:8181/cxf/person" />
</cm:default-properties>
</cm:property-placeholder>
<jaxrs-client:client id="personService"
serviceClass="net.lr.tutorial.karaf.cxf.personrest.model.PersonService"
address="${personServiceRest.URL}" />
<service interface="javax.servlet.http.HttpServlet" ref="personServlet">
<service-properties>
<entry key="alias" value="/personuirest" />
</service-properties>
</service>
</blueprint>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)