You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Daniel McGreal <d....@gmail.com> on 2015/09/25 19:06:32 UTC
CXF feature question
Hi Karaf types,
I’m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
Trying to configure with
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring <http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring>, results in:
Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
which is fair enough, because it doesn’t.
Any suggestions welcome!
Thanks, Dan.
Re: CXF feature question
Posted by Daniel McGreal <d....@gmail.com>.
Thanks Freeman,
The example at https://github.com/apache/servicemix/tree/master/examples/cxf/cxf-jaxrs <https://github.com/apache/servicemix/tree/master/examples/cxf/cxf-jaxrs> was helpful.
Dan.
> On 29 Sep 2015, at 13:10, Freeman Fang <fr...@gmail.com> wrote:
>
> Hi Dan,
>
> You can download Apache Servicemix kit, where you can find a cxf-jaxrs example shipped with kit, it should be very similar as your scenario.
>
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
>
>
>
>> On Sep 29, 2015, at 3:23 PM, Daniel McGreal <d.j.mcgreal@gmail.com <ma...@gmail.com>> wrote:
>>
>> Hi Freeman,
>> I wondered that, removed them but got an error about missing an http transport bean of some kind. Investigating that error led by o a post about the missing imports. Are they replaced by some other construct? Could you elaborate on what is required?
>> I'll be looking into the other suggestion today.
>> Dan.
>>
>> On 29 Sep 2015, at 08:11, Freeman Fang <freeman.fang@gmail.com <ma...@gmail.com>> wrote:
>>
>>> Hi,
>>>
>>> Those resource import are not needed for a while.
>>> -------------
>>> Freeman(Yue) Fang
>>>
>>> Red Hat, Inc.
>>> FuseSource is now part of Red Hat
>>>
>>>
>>>
>>>> On Sep 26, 2015, at 1:06 AM, Daniel McGreal <d.j.mcgreal@gmail.com <ma...@gmail.com>> wrote:
>>>>
>>>> Hi Karaf types,
>>>>
>>>> I’m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
>>>>
>>>> Trying to configure with
>>>>
>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>> <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>>>>
>>>> according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring <http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring>, results in:
>>>>
>>>> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
>>>>
>>>> which is fair enough, because it doesn’t.
>>>>
>>>> Any suggestions welcome!
>>>> Thanks, Dan.
>>>
>
Re: CXF feature question
Posted by Freeman Fang <fr...@gmail.com>.
Hi Dan,
You can download Apache Servicemix kit, where you can find a cxf-jaxrs example shipped with kit, it should be very similar as your scenario.
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Sep 29, 2015, at 3:23 PM, Daniel McGreal <d....@gmail.com> wrote:
>
> Hi Freeman,
> I wondered that, removed them but got an error about missing an http transport bean of some kind. Investigating that error led by o a post about the missing imports. Are they replaced by some other construct? Could you elaborate on what is required?
> I'll be looking into the other suggestion today.
> Dan.
>
> On 29 Sep 2015, at 08:11, Freeman Fang <freeman.fang@gmail.com <ma...@gmail.com>> wrote:
>
>> Hi,
>>
>> Those resource import are not needed for a while.
>> -------------
>> Freeman(Yue) Fang
>>
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>>
>>
>>
>>> On Sep 26, 2015, at 1:06 AM, Daniel McGreal <d.j.mcgreal@gmail.com <ma...@gmail.com>> wrote:
>>>
>>> Hi Karaf types,
>>>
>>> I’m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
>>>
>>> Trying to configure with
>>>
>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>> <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>>>
>>> according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring <http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring>, results in:
>>>
>>> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
>>>
>>> which is fair enough, because it doesn’t.
>>>
>>> Any suggestions welcome!
>>> Thanks, Dan.
>>
Re: CXF feature question
Posted by Daniel McGreal <d....@gmail.com>.
Hi Freeman,
I wondered that, removed them but got an error about missing an http transport bean of some kind. Investigating that error led by o a post about the missing imports. Are they replaced by some other construct? Could you elaborate on what is required?
I'll be looking into the other suggestion today.
Dan.
> On 29 Sep 2015, at 08:11, Freeman Fang <fr...@gmail.com> wrote:
>
> Hi,
>
> Those resource import are not needed for a while.
> ��������������������������
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
>
>
>
>> On Sep 26, 2015, at 1:06 AM, Daniel McGreal <d....@gmail.com> wrote:
>>
>> Hi Karaf types,
>>
>> I��m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
>>
>> Trying to configure with
>>
>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>> <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>>
>> according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring, results in:
>>
>> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
>>
>> which is fair enough, because it doesn��t.
>>
>> Any suggestions welcome!
>> Thanks, Dan.
>
Re: CXF feature question
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Those resource import are not needed for a while.
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Sep 26, 2015, at 1:06 AM, Daniel McGreal <d....@gmail.com> wrote:
>
> Hi Karaf types,
>
> I’m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
>
> Trying to configure with
>
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>
> according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring <http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring>, results in:
>
> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
>
> which is fair enough, because it doesn’t.
>
> Any suggestions welcome!
> Thanks, Dan.
Re: CXF feature question
Posted by Paul Spencer <pa...@apache.org>.
Dan,
Below are some places to look.
- I define endpoint for Web Services in src/main/resources/cxf.xml of Maven based projects.
- http://web-gmazza.rhcloud.com/blog/entry/blog-index
- Jean-Baptiste Onofré blog site
http://blog.nanthrax.net/2011/08/jax-rs-services-using-cxf-and-karaf/
***
* Depending on the CXF Features installed, help is a resource
***
karaf@ewm-server()> help cxf
COMMANDS
cxf:list-busses Lists all CXF Busses.
cxf:list-endpoints Lists all CXF Endpoints on a Bus.
cxf:start-endpoint Starts a CXF Endpoint on a Bus.
cxf:stop-endpoint Stops a CXF Endpoint on a Bus.
karaf@ewm-server()>
Paul Spencer
> On Sep 28, 2015, at 8:15 AM, Daniel McGreal <d....@gmail.com> wrote:
>
> Hi all,
> Could someone using CXF point me in the right direction? How should I launch my endpoint?
> Best, Dan.
>
>> On 25 Sep 2015, at 18:06, Daniel McGreal <d....@gmail.com> wrote:
>>
>> Hi Karaf types,
>>
>> I’m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
>>
>> Trying to configure with
>>
>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>> <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>>
>> according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring, results in:
>>
>> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
>>
>> which is fair enough, because it doesn’t.
>>
>> Any suggestions welcome!
>> Thanks, Dan.
>
Re: CXF feature question
Posted by Daniel McGreal <d....@gmail.com>.
Hi all,
Could someone using CXF point me in the right direction? How should I launch my endpoint?
Best, Dan.
> On 25 Sep 2015, at 18:06, Daniel McGreal <d....@gmail.com> wrote:
>
> Hi Karaf types,
>
> I’m using Karaf 3.0.1 and the cxf-jaxrs feature for this project where I need a very simple endpoint.
>
> Trying to configure with
>
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>
> according to http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring <http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Spring>, results in:
>
> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=294|bnd.sym=endpoint.cxf] cannot be resolved to URL because it does not exist
>
> which is fair enough, because it doesn’t.
>
> Any suggestions welcome!
> Thanks, Dan.