You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Muellner-Rieder Markus <Ma...@ait.ac.at> on 2020/11/16 14:52:09 UTC

CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Hello everyone,
I'm struggling with getting CXF to run within a static Karaf framework. For a simple test I modified the Docker example. (https://github.com/apache/karaf/tree/master/examples/karaf-docker-example/karaf-docker-example-static-dist)

I simply removed karaf-docker-example-app from startupFeatures and added the following to the karaf-maven-plugin configuration:
<bootRepositories>
    <bootRepository>mvn:org.apache.cxf.karaf/apache-cxf/3.4.0/xml/features</bootRepository>
</bootRepositories>
<bootFeatures>
    <feature>cxf-jaxrs</feature>
</bootFeatures>

It builds fine, but when starting the framework nothing happens. No errors in the console and none in the log file. Opening http://localhost:8181/cxf results in a timeout.

If I do exactly the same with the dynamic distribution example everything works fine. When opening the website it shows "No services have been found.". (which means it's working correctly)

I have uploaded my changes in a minimal example to Github: https://github.com/m-rm/karaf-static-cxf-issue

Any help is appreciated!

Best regards,
Markus

Re: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

I just updated Karaf examples to use CXF 3.4.0 without problem (I just add to change the SOAP example): https://github.com/apache/karaf/pull/1249 <https://github.com/apache/karaf/pull/1249>

I also added jetty alias feature to avoid issue.

Let me try to reproduce with Karaf 4.3.1-SNAPSHOT.

Regards
JB

> Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Ma...@ait.ac.at> a écrit :
> 
> Hello everyone,
> I'm struggling with getting CXF to run within a static Karaf framework. For a simple test I modified the Docker example. (https://github.com/apache/karaf/tree/master/examples/karaf-docker-example/karaf-docker-example-static-dist)
> 
> I simply removed karaf-docker-example-app from startupFeatures and added the following to the karaf-maven-plugin configuration:
> <bootRepositories>
>    <bootRepository>mvn:org.apache.cxf.karaf/apache-cxf/3.4.0/xml/features</bootRepository>
> </bootRepositories>
> <bootFeatures>
>    <feature>cxf-jaxrs</feature>
> </bootFeatures>
> 
> It builds fine, but when starting the framework nothing happens. No errors in the console and none in the log file. Opening http://localhost:8181/cxf results in a timeout.
> 
> If I do exactly the same with the dynamic distribution example everything works fine. When opening the website it shows "No services have been found.". (which means it's working correctly)
> 
> I have uploaded my changes in a minimal example to Github: https://github.com/m-rm/karaf-static-cxf-issue
> 
> Any help is appreciated!
> 
> Best regards,
> Markus


AW: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Muellner-Rieder Markus <Ma...@ait.ac.at>.
Thank you very much!

> Yes, and I confirm it’s the same issue (all is in same stage).
> 
> Let me improve the static distribution. I will keep you posted soon.
> 
> Regards
> JB
> 
> > Le 19 nov. 2020 à 10:35, Muellner-Rieder Markus <Markus.Muellner-
> Rieder@ait.ac.at> a écrit :
> >
> > Hey JB, did you have time to have a look at it?
> >
> > Regards,
> > Markus
> >
> >> Thanks, I will check this up tomorrow morning (I think it’s always
> >> the same issue https://issues.apache.org/jira/browse/KARAF-6577
> >> <https://issues.apache.org/jira/browse/KARAF-6577>).
> >>
> >> Regards
> >> JB
> >>
> >>> Le 16 nov. 2020 à 16:29, Muellner-Rieder Markus <Markus.Muellner-
> >> Rieder@ait.ac.at> a écrit :
> >>>
> >>> Yes, it's working fine with a "dynamic" distribution.
> >>>
> >>>> By the way, I guess it works with a "dynamic" distribution ?
> >>>>
> >>>>> Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Markus.Muellner-
> >>>> Rieder@ait.ac.at> a écrit :
> >>>>>
> >>>>> Hello everyone,
> >>>>> I'm struggling with getting CXF to run within a static Karaf
> >>>>> framework. For a
> >>>> simple test I modified the Docker example.
> >>>> (https://github.com/apache/karaf/tree/master/examples/karaf-
> docker-
> >>>> example/karaf-docker-example-static-dist)
> >>>>>
> >>>>> I simply removed karaf-docker-example-app from startupFeatures
> and
> >>>> added the following to the karaf-maven-plugin configuration:
> >>>>> <bootRepositories>
> >>>>>  <bootRepository>mvn:org.apache.cxf.karaf/apache-
> >>>> cxf/3.4.0/xml/features</bootRepository>
> >>>>> </bootRepositories>
> >>>>> <bootFeatures>
> >>>>>  <feature>cxf-jaxrs</feature>
> >>>>> </bootFeatures>
> >>>>>
> >>>>> It builds fine, but when starting the framework nothing happens.
> >>>>> No errors
> >>>> in the console and none in the log file. Opening
> >>>> http://localhost:8181/cxf results in a timeout.
> >>>>>
> >>>>> If I do exactly the same with the dynamic distribution example
> >>>>> everything
> >>>> works fine. When opening the website it shows "No services have
> >>>> been found.". (which means it's working correctly)
> >>>>>
> >>>>> I have uploaded my changes in a minimal example to Github:
> >>>> https://github.com/m-rm/karaf-static-cxf-issue
> >>>>>
> >>>>> Any help is appreciated!
> >>>>>
> >>>>> Best regards,
> >>>>> Markus
> >>>
> >


Re: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Yes, and I confirm it’s the same issue (all is in same stage).

Let me improve the static distribution. I will keep you posted soon.

Regards
JB

> Le 19 nov. 2020 à 10:35, Muellner-Rieder Markus <Ma...@ait.ac.at> a écrit :
> 
> Hey JB, did you have time to have a look at it?
> 
> Regards,
> Markus
> 
>> Thanks, I will check this up tomorrow morning (I think it’s always the same
>> issue https://issues.apache.org/jira/browse/KARAF-6577
>> <https://issues.apache.org/jira/browse/KARAF-6577>).
>> 
>> Regards
>> JB
>> 
>>> Le 16 nov. 2020 à 16:29, Muellner-Rieder Markus <Markus.Muellner-
>> Rieder@ait.ac.at> a écrit :
>>> 
>>> Yes, it's working fine with a "dynamic" distribution.
>>> 
>>>> By the way, I guess it works with a "dynamic" distribution ?
>>>> 
>>>>> Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Markus.Muellner-
>>>> Rieder@ait.ac.at> a écrit :
>>>>> 
>>>>> Hello everyone,
>>>>> I'm struggling with getting CXF to run within a static Karaf
>>>>> framework. For a
>>>> simple test I modified the Docker example.
>>>> (https://github.com/apache/karaf/tree/master/examples/karaf-docker-
>>>> example/karaf-docker-example-static-dist)
>>>>> 
>>>>> I simply removed karaf-docker-example-app from startupFeatures and
>>>> added the following to the karaf-maven-plugin configuration:
>>>>> <bootRepositories>
>>>>>  <bootRepository>mvn:org.apache.cxf.karaf/apache-
>>>> cxf/3.4.0/xml/features</bootRepository>
>>>>> </bootRepositories>
>>>>> <bootFeatures>
>>>>>  <feature>cxf-jaxrs</feature>
>>>>> </bootFeatures>
>>>>> 
>>>>> It builds fine, but when starting the framework nothing happens. No
>>>>> errors
>>>> in the console and none in the log file. Opening
>>>> http://localhost:8181/cxf results in a timeout.
>>>>> 
>>>>> If I do exactly the same with the dynamic distribution example
>>>>> everything
>>>> works fine. When opening the website it shows "No services have been
>>>> found.". (which means it's working correctly)
>>>>> 
>>>>> I have uploaded my changes in a minimal example to Github:
>>>> https://github.com/m-rm/karaf-static-cxf-issue
>>>>> 
>>>>> Any help is appreciated!
>>>>> 
>>>>> Best regards,
>>>>> Markus
>>> 
> 


AW: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Muellner-Rieder Markus <Ma...@ait.ac.at>.
Hey JB, did you have time to have a look at it?

Regards,
Markus

> Thanks, I will check this up tomorrow morning (I think it’s always the same
> issue https://issues.apache.org/jira/browse/KARAF-6577
> <https://issues.apache.org/jira/browse/KARAF-6577>).
> 
> Regards
> JB
> 
> > Le 16 nov. 2020 à 16:29, Muellner-Rieder Markus <Markus.Muellner-
> Rieder@ait.ac.at> a écrit :
> >
> > Yes, it's working fine with a "dynamic" distribution.
> >
> >> By the way, I guess it works with a "dynamic" distribution ?
> >>
> >>> Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Markus.Muellner-
> >> Rieder@ait.ac.at> a écrit :
> >>>
> >>> Hello everyone,
> >>> I'm struggling with getting CXF to run within a static Karaf
> >>> framework. For a
> >> simple test I modified the Docker example.
> >> (https://github.com/apache/karaf/tree/master/examples/karaf-docker-
> >> example/karaf-docker-example-static-dist)
> >>>
> >>> I simply removed karaf-docker-example-app from startupFeatures and
> >> added the following to the karaf-maven-plugin configuration:
> >>> <bootRepositories>
> >>>   <bootRepository>mvn:org.apache.cxf.karaf/apache-
> >> cxf/3.4.0/xml/features</bootRepository>
> >>> </bootRepositories>
> >>> <bootFeatures>
> >>>   <feature>cxf-jaxrs</feature>
> >>> </bootFeatures>
> >>>
> >>> It builds fine, but when starting the framework nothing happens. No
> >>> errors
> >> in the console and none in the log file. Opening
> >> http://localhost:8181/cxf results in a timeout.
> >>>
> >>> If I do exactly the same with the dynamic distribution example
> >>> everything
> >> works fine. When opening the website it shows "No services have been
> >> found.". (which means it's working correctly)
> >>>
> >>> I have uploaded my changes in a minimal example to Github:
> >> https://github.com/m-rm/karaf-static-cxf-issue
> >>>
> >>> Any help is appreciated!
> >>>
> >>> Best regards,
> >>> Markus
> >


Re: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Thanks, I will check this up tomorrow morning (I think it’s always the same issue https://issues.apache.org/jira/browse/KARAF-6577 <https://issues.apache.org/jira/browse/KARAF-6577>).

Regards
JB

> Le 16 nov. 2020 à 16:29, Muellner-Rieder Markus <Ma...@ait.ac.at> a écrit :
> 
> Yes, it's working fine with a "dynamic" distribution.
> 
>> By the way, I guess it works with a "dynamic" distribution ?
>> 
>>> Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Markus.Muellner-
>> Rieder@ait.ac.at> a écrit :
>>> 
>>> Hello everyone,
>>> I'm struggling with getting CXF to run within a static Karaf framework. For a
>> simple test I modified the Docker example.
>> (https://github.com/apache/karaf/tree/master/examples/karaf-docker-
>> example/karaf-docker-example-static-dist)
>>> 
>>> I simply removed karaf-docker-example-app from startupFeatures and
>> added the following to the karaf-maven-plugin configuration:
>>> <bootRepositories>
>>>   <bootRepository>mvn:org.apache.cxf.karaf/apache-
>> cxf/3.4.0/xml/features</bootRepository>
>>> </bootRepositories>
>>> <bootFeatures>
>>>   <feature>cxf-jaxrs</feature>
>>> </bootFeatures>
>>> 
>>> It builds fine, but when starting the framework nothing happens. No errors
>> in the console and none in the log file. Opening http://localhost:8181/cxf
>> results in a timeout.
>>> 
>>> If I do exactly the same with the dynamic distribution example everything
>> works fine. When opening the website it shows "No services have been
>> found.". (which means it's working correctly)
>>> 
>>> I have uploaded my changes in a minimal example to Github:
>> https://github.com/m-rm/karaf-static-cxf-issue
>>> 
>>> Any help is appreciated!
>>> 
>>> Best regards,
>>> Markus
> 


AW: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Muellner-Rieder Markus <Ma...@ait.ac.at>.
Yes, it's working fine with a "dynamic" distribution.

> By the way, I guess it works with a "dynamic" distribution ?
> 
> > Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Markus.Muellner-
> Rieder@ait.ac.at> a écrit :
> >
> > Hello everyone,
> > I'm struggling with getting CXF to run within a static Karaf framework. For a
> simple test I modified the Docker example.
> (https://github.com/apache/karaf/tree/master/examples/karaf-docker-
> example/karaf-docker-example-static-dist)
> >
> > I simply removed karaf-docker-example-app from startupFeatures and
> added the following to the karaf-maven-plugin configuration:
> > <bootRepositories>
> >    <bootRepository>mvn:org.apache.cxf.karaf/apache-
> cxf/3.4.0/xml/features</bootRepository>
> > </bootRepositories>
> > <bootFeatures>
> >    <feature>cxf-jaxrs</feature>
> > </bootFeatures>
> >
> > It builds fine, but when starting the framework nothing happens. No errors
> in the console and none in the log file. Opening http://localhost:8181/cxf
> results in a timeout.
> >
> > If I do exactly the same with the dynamic distribution example everything
> works fine. When opening the website it shows "No services have been
> found.". (which means it's working correctly)
> >
> > I have uploaded my changes in a minimal example to Github:
> https://github.com/m-rm/karaf-static-cxf-issue
> >
> > Any help is appreciated!
> >
> > Best regards,
> > Markus


Re: CXF 3.4.0 not working with Karaf 4.3.0 when using a static distribution

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
By the way, I guess it works with a "dynamic" distribution ?

> Le 16 nov. 2020 à 15:52, Muellner-Rieder Markus <Ma...@ait.ac.at> a écrit :
> 
> Hello everyone,
> I'm struggling with getting CXF to run within a static Karaf framework. For a simple test I modified the Docker example. (https://github.com/apache/karaf/tree/master/examples/karaf-docker-example/karaf-docker-example-static-dist)
> 
> I simply removed karaf-docker-example-app from startupFeatures and added the following to the karaf-maven-plugin configuration:
> <bootRepositories>
>    <bootRepository>mvn:org.apache.cxf.karaf/apache-cxf/3.4.0/xml/features</bootRepository>
> </bootRepositories>
> <bootFeatures>
>    <feature>cxf-jaxrs</feature>
> </bootFeatures>
> 
> It builds fine, but when starting the framework nothing happens. No errors in the console and none in the log file. Opening http://localhost:8181/cxf results in a timeout.
> 
> If I do exactly the same with the dynamic distribution example everything works fine. When opening the website it shows "No services have been found.". (which means it's working correctly)
> 
> I have uploaded my changes in a minimal example to Github: https://github.com/m-rm/karaf-static-cxf-issue
> 
> Any help is appreciated!
> 
> Best regards,
> Markus