Re: Karaf + SOAP + JDK 21

2023-11-15 Thread Matt Pavlovich
Hi Mark-

Glad to hear it’s working for you! 

-Matt

> On Nov 15, 2023, at 3:58 PM, Mark Derricutt  wrote:
> 
> Hi Matt - that's both sad, and great to hear.
> 
> Updated the dependency and working like a charm.  Cheers!
> 
> On 16/11/23 3:44 am, Matt Pavlovich wrote:
>> The maven-jaxb2-plugin, jaxb2-basics and other jaxb2 commons plugins
>> have been modernized for jakarta (I’m now the project lead, since the
>> maintainer sadly passed away).



Re: Karaf + SOAP + JDK 21

2023-11-15 Thread Mark Derricutt

Hi Matt - that's both sad, and great to hear.

Updated the dependency and working like a charm.  Cheers!

On 16/11/23 3:44 am, Matt Pavlovich wrote:

The maven-jaxb2-plugin, jaxb2-basics and other jaxb2 commons plugins
have been modernized for jakarta (I’m now the project lead, since the
maintainer sadly passed away).

Re: Karaf + SOAP + JDK 21

2023-11-15 Thread Matt Pavlovich
Hi Mark-

The maven-jaxb2-plugin, jaxb2-basics and other jaxb2 commons plugins have been 
modernized for jakarta (I’m now the project lead, since the maintainer sadly 
passed away).

The Maven plugin, jaxb-basics (now called jaxb-plugins) and several of the 
ancillary projects have all been collapsed into a single repo ‘jaxb-tools' 


See version: 4.0.0 

https://github.com/highsource/jaxb-tools/

Thanks,
Matt Pavlovich

> On Nov 15, 2023, at 3:10 AM, Mark Derricutt  wrote:
> 
> and updated cxf-codegen-plugin to 4.0.3. Interestingly, I couldn't find any 
> suitable replacements/updates for org.jvnet.jaxb2_commons:jaxb2-fluent-api 
> it's sibling XCJ extensions so had to rewrite one wrapper service to match 
> the changed code-gen.



Re: Karaf + SOAP + JDK 21

2023-11-15 Thread Grzegorz Grzybek
Thanks for the feedback!

In my custom distro (Fuse), I'm still stuck with javax.* packages. This is
what I have in lib/jdk9plus:

istack-commons-runtime-3.0.10.redhat-3.jar
jakarta.jws-api-2.1.0.redhat-3.jar
jakarta.xml.bind-api-2.3.3.redhat-3.jar
jakarta.xml.soap-api-1.4.2.redhat-1.jar
jakarta.xml.ws-api-2.3.3.redhat-1.jar
jaxb-runtime-2.3.4.jar
txw2-2.3.4.jar

so yes - there's also jakarta.jws-api (but the one with javax packages).

regards
Grzegorz Grzybek

śr., 15 lis 2023 o 10:11 Mark Derricutt  napisał(a):

> Unfortunately that didn't quite work as I fell into the trap of then
> needing javax.jws.
>
> However - I do now have it working, tho I did have to end up updating
> the bundle that included the WSDL generation. In my custom distribution
> I now have:
>
> version="${project.version}">
>  mvn:jakarta.activation/jakarta.activation-api/2.1.2
>  mvn:jakarta.jws/jakarta.jws-api/3.0.0
>  mvn:jakarta.xml.bind/jakarta.xml.bind-api/4.0.0
>  mvn:jakarta.xml.ws/jakarta.xml.ws-api/4.0.1
>  mvn:jakarta.xml.soap/jakarta.xml.soap-api/3.0.1
>  cxf-core
>  cxf-jaxws
>  cxf-http
>  cxf-specs
>  cxf-wsdl
>  cxf-databinding-jaxb
>  cxf-bindings-soap
>
>
> It's possible I could trim some of the included 's there as
> they're transcluded by the others, but for now this works. This switches
> to the jakarta.xml version of packages, which avoids the default export
> of javax.xml. In the karaf-maven-plugin configuration, I had to set
> 11 tho as it was a requirement for one of those bundles
> (I forget which off hand), and for some reason I couldn't use
> 21 as it claimed it wasn't a valid Java version.
>
> On the service side, I had to add the following dependencies:
>
>
>jakarta.jws
>jakarta.jws-api
>3.0.0
>  
>  
>jakarta.xml.bind
>jakarta.xml.bind-api
>4.0.0
>  
>  
>jakarta.xml.ws
>jakarta.xml.ws-api
>4.0.1
>  
>  
>javax.xml.bind
>jaxb-api
>[2.3.1]
>
>  
>*
>*
>  
>
>  
>  
>javax.xml.ws
>jaxws-api
>[2.3.1]
>
>  
>*
>*
>  
>
>  
>
> and updated cxf-codegen-plugin to 4.0.3. Interestingly, I couldn't find
> any suitable replacements/updates for
> org.jvnet.jaxb2_commons:jaxb2-fluent-api it's sibling XCJ extensions so
> had to rewrite one wrapper service to match the changed code-gen.
>
> But it seems to be working now.  At least - the custom image
> builds/verifies and starts up - I've not yet tried calling any of the
> services yet.  Tomorrows job.
>
>
> Mark
>
> On 6/11/23 8:44 pm, Grzegorz Grzybek wrote:
> > I think you should simply drop jakarta.xml.ws-api-2.3.3.jar
> > <
> https://repo1.maven.org/maven2/jakarta/xml/ws/jakarta.xml.ws-api/2.3.3/jakarta.xml.ws-api-2.3.3.jar
> >
> > into KARAF_HOME/lib/jdk9plus


Re: Karaf + SOAP + JDK 21

2023-11-15 Thread Mark Derricutt
Unfortunately that didn't quite work as I fell into the trap of then 
needing javax.jws.


However - I do now have it working, tho I did have to end up updating 
the bundle that included the WSDL generation. In my custom distribution 
I now have:


  
mvn:jakarta.activation/jakarta.activation-api/2.1.2
mvn:jakarta.jws/jakarta.jws-api/3.0.0
mvn:jakarta.xml.bind/jakarta.xml.bind-api/4.0.0
mvn:jakarta.xml.ws/jakarta.xml.ws-api/4.0.1
mvn:jakarta.xml.soap/jakarta.xml.soap-api/3.0.1
cxf-core
cxf-jaxws
cxf-http
cxf-specs
cxf-wsdl
cxf-databinding-jaxb
cxf-bindings-soap
  

It's possible I could trim some of the included 's there as 
they're transcluded by the others, but for now this works. This switches 
to the jakarta.xml version of packages, which avoids the default export 
of javax.xml. In the karaf-maven-plugin configuration, I had to set 
11 tho as it was a requirement for one of those bundles 
(I forget which off hand), and for some reason I couldn't use 
21 as it claimed it wasn't a valid Java version.


On the service side, I had to add the following dependencies:

  
  jakarta.jws
  jakarta.jws-api
  3.0.0
    
    
  jakarta.xml.bind
  jakarta.xml.bind-api
  4.0.0
    
    
  jakarta.xml.ws
  jakarta.xml.ws-api
  4.0.1
    
    
  javax.xml.bind
  jaxb-api
  [2.3.1]
  
    
  *
  *
    
  
    
    
  javax.xml.ws
  jaxws-api
  [2.3.1]
  
    
  *
  *
    
  
    

and updated cxf-codegen-plugin to 4.0.3. Interestingly, I couldn't find 
any suitable replacements/updates for 
org.jvnet.jaxb2_commons:jaxb2-fluent-api it's sibling XCJ extensions so 
had to rewrite one wrapper service to match the changed code-gen.


But it seems to be working now.  At least - the custom image 
builds/verifies and starts up - I've not yet tried calling any of the 
services yet.  Tomorrows job.



Mark

On 6/11/23 8:44 pm, Grzegorz Grzybek wrote:

I think you should simply drop jakarta.xml.ws-api-2.3.3.jar

into KARAF_HOME/lib/jdk9plus

Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Grzegorz Grzybek
Also mind that Karaf exports "javax.xml.ws.soap" system package in
etc/jre.properties, so adding a bundle which exports the same could be
confusing...

In the version of CXF I use, "cxf-specs" features has:

mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/2.9.0

which means this bundle WON'T be installed if the package is available in
different, already installed bundle. And etc/jre.properties says that
javax.xml.ws.soap package is exported by bundle 0. And it is only
declaratively, but the package is physically not available.

regards
Grzegorz Grzybek

pon., 6 lis 2023 o 08:42 Steven Huypens 
napisał(a):

> Hi Mark,
>
> It looks like my bundles import the package "javax.xml.ws.soap" from
>
> 'mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.3/2.3_2'
> which is in the feature "cxf-specs".
>
> Kind regards,
> Steven
>
> On Mon, Nov 6, 2023 at 7:44 AM Mark Derricutt  wrote:
>
> > On 6/11/23 7:21 pm, Grzegorz Grzybek wrote:
> > > But "smx3.system" bundle looks like something from you, not from
> Karaf...
> >
> > It is, but there's a wiring dependency on
> > osgi.wiring.package=javax.xml.ws.soap>=0.0.0 there, which is no longer
> > being satisfied.
> >
> > Note I've not currently moved out individual bundles to be built under
> > Java 21 or anything yet, as I'd rather get a distribution working first
> > (if possible).
> >
> > Also, when running a stock Karaf 4.4.4 with the soap sample project jars
> > copied into the ./deploy directory, I got the same issue running the
> > newer (non 8) JDKs.
> >
>


Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Grzegorz Grzybek
Hmm

I see KARAF_HOME/lib/endorsed/org.apache.karaf.specs.java.xml.ws-4.4.4.jar
library, but it contains only javax.xml.ws.spi package (and javax.xml.soap)

In my work I maintain custom Karaf distro (Fuse Karaf), which in addition
has this library: FUSE_HOME/lib/jdk9plus/jakarta.xml.ws-api-2.3.3.jar - and
this library (Maven Central:
https://repo1.maven.org/maven2/jakarta/xml/ws/jakarta.xml.ws-api/2.3.3/)
and THIS library contains javax.xml.ws.soap (and javax.xml.ws.handler.soap)
packages...

I think you should simply drop jakarta.xml.ws-api-2.3.3.jar

into KARAF_HOME/lib/jdk9plus

regards
Grzegorz Grzybek

pon., 6 lis 2023 o 07:44 Mark Derricutt  napisał(a):

> On 6/11/23 7:21 pm, Grzegorz Grzybek wrote:
> > But "smx3.system" bundle looks like something from you, not from Karaf...
>
> It is, but there's a wiring dependency on
> osgi.wiring.package=javax.xml.ws.soap>=0.0.0 there, which is no longer
> being satisfied.
>
> Note I've not currently moved out individual bundles to be built under
> Java 21 or anything yet, as I'd rather get a distribution working first
> (if possible).
>
> Also, when running a stock Karaf 4.4.4 with the soap sample project jars
> copied into the ./deploy directory, I got the same issue running the
> newer (non 8) JDKs.
>


Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Steven Huypens
Hi Mark,

It looks like my bundles import the package "javax.xml.ws.soap" from
'mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.3/2.3_2'
which is in the feature "cxf-specs".

Kind regards,
Steven

On Mon, Nov 6, 2023 at 7:44 AM Mark Derricutt  wrote:

> On 6/11/23 7:21 pm, Grzegorz Grzybek wrote:
> > But "smx3.system" bundle looks like something from you, not from Karaf...
>
> It is, but there's a wiring dependency on
> osgi.wiring.package=javax.xml.ws.soap>=0.0.0 there, which is no longer
> being satisfied.
>
> Note I've not currently moved out individual bundles to be built under
> Java 21 or anything yet, as I'd rather get a distribution working first
> (if possible).
>
> Also, when running a stock Karaf 4.4.4 with the soap sample project jars
> copied into the ./deploy directory, I got the same issue running the
> newer (non 8) JDKs.
>


Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Mark Derricutt

On 6/11/23 7:21 pm, Grzegorz Grzybek wrote:

But "smx3.system" bundle looks like something from you, not from Karaf...


It is, but there's a wiring dependency on 
osgi.wiring.package=javax.xml.ws.soap>=0.0.0 there, which is no longer 
being satisfied.


Note I've not currently moved out individual bundles to be built under 
Java 21 or anything yet, as I'd rather get a distribution working first 
(if possible).


Also, when running a stock Karaf 4.4.4 with the soap sample project jars 
copied into the ./deploy directory, I got the same issue running the 
newer (non 8) JDKs.


Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Grzegorz Grzybek
Hello

But "smx3.system" bundle looks like something from you, not from Karaf...

regards
Grzegorz Grzybek

pon., 6 lis 2023 o 07:17 Mark Derricutt  napisał(a):

> Hi Jean-Baptiste,
>
> This is what I have in my feature file:
>
> mvn:org.apache.cxf.karaf/apache-cxf/3.5.5/xml/features
>
>  version="${project.version}"> version="3.5.5">cxf-core
>cxf-jaxws
>cxf-databinding-jaxb
> 
>
> This gives me the following outputL
>
> smx3  | org.osgi.framework.BundleException: Unable to resolve smx3.system
> [118](R 118.0):
>   missing requirement[smx3.system [118](R 118.0)] osgi.wiring.package;
> (&(osgi.wiring.package=smx3.mailproducts.api)(version>=21.1.0)(!(version>=22.0.0)))
> [caused by: Unable to resolve smx3.mailproducts [145](R 145.0):
>   missing requirement [smx3.mailproducts [145](R 145.0)]
>   osgi.wiring.package;
> (&(osgi.wiring.package=javax.xml.ws.soap)(version>=0.0.0))] Unresolved
> requirements: [[smx3.system [118](R 118.0)] osgi.wiring.package;
>
> (&(osgi.wiring.package=smx3.mailproducts.api)(version>=21.1.0)(!(version>=22.0.0)))]
>
> Interestingly, I was trying to figure out where I found the version from
> (I may have just been trying any modern version), but I note the
> /examples/pom.xml in the binary zip refers to a parent ../pom.xml which
> doesn't exist (it's there in the -src.zip tho, and at 3.5.5.
>
> Mark
>
>
> On 6/11/23 6:37 pm, Jean-Baptiste Onofré wrote:
> > Hi
> >
> > Which CXF version are you using ?
> > I guess it’s about CXF support.
> >
> > I will check on main.
> >
> > Regards
> > JB
> >
> > Le dim. 5 nov. 2023 à 20:31, Mark Derricutt  a écrit :
> >
> >> Anyone got Karaf 4.4.4 and SOAP working under JDk 21?
> >>
> >> I've been trying to update our project from Java 8, and just getting hit
> >> with the lack of javax.ws.* classes being a part of the JDK from 9
> onward.
> >>
> >> Even the stock Karaf SOAP example doesn't seem to work for me - I'm
> >> guessing I just need to add an extra dependency which provides those
> >> classes, but haven't been able to find a recommended/standard
> >> implementation to use...
> >>
> >> Any pointers?
> >>
> >>
> >>
> >>


Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Mark Derricutt

Hi Jean-Baptiste,

This is what I have in my feature file:

mvn:org.apache.cxf.karaf/apache-cxf/3.5.5/xml/features 
version="${project.version}">cxf-core

  cxf-jaxws
  cxf-databinding-jaxb


This gives me the following outputL

smx3  | org.osgi.framework.BundleException: Unable to resolve smx3.system 
[118](R 118.0):
 missing requirement[smx3.system [118](R 118.0)] osgi.wiring.package; 
(&(osgi.wiring.package=smx3.mailproducts.api)(version>=21.1.0)(!(version>=22.0.0)))
[caused by: Unable to resolve smx3.mailproducts [145](R 145.0):
 missing requirement [smx3.mailproducts [145](R 145.0)]
 osgi.wiring.package; 
(&(osgi.wiring.package=javax.xml.ws.soap)(version>=0.0.0))] Unresolved 
requirements: [[smx3.system [118](R 118.0)] osgi.wiring.package;
(&(osgi.wiring.package=smx3.mailproducts.api)(version>=21.1.0)(!(version>=22.0.0)))]

Interestingly, I was trying to figure out where I found the version from 
(I may have just been trying any modern version), but I note the 
/examples/pom.xml in the binary zip refers to a parent ../pom.xml which 
doesn't exist (it's there in the -src.zip tho, and at 3.5.5.


Mark


On 6/11/23 6:37 pm, Jean-Baptiste Onofré wrote:

Hi

Which CXF version are you using ?
I guess it’s about CXF support.

I will check on main.

Regards
JB

Le dim. 5 nov. 2023 à 20:31, Mark Derricutt  a écrit :


Anyone got Karaf 4.4.4 and SOAP working under JDk 21?

I've been trying to update our project from Java 8, and just getting hit
with the lack of javax.ws.* classes being a part of the JDK from 9 onward.

Even the stock Karaf SOAP example doesn't seem to work for me - I'm
guessing I just need to add an extra dependency which provides those
classes, but haven't been able to find a recommended/standard
implementation to use...

Any pointers?





Re: Karaf + SOAP + JDK 21

2023-11-05 Thread Jean-Baptiste Onofré
Hi

Which CXF version are you using ?
I guess it’s about CXF support.

I will check on main.

Regards
JB

Le dim. 5 nov. 2023 à 20:31, Mark Derricutt  a écrit :

> Anyone got Karaf 4.4.4 and SOAP working under JDk 21?
>
> I've been trying to update our project from Java 8, and just getting hit
> with the lack of javax.ws.* classes being a part of the JDK from 9 onward.
>
> Even the stock Karaf SOAP example doesn't seem to work for me - I'm
> guessing I just need to add an extra dependency which provides those
> classes, but haven't been able to find a recommended/standard
> implementation to use...
>
> Any pointers?
>
>
>
>


Karaf + SOAP + JDK 21

2023-11-05 Thread Mark Derricutt

Anyone got Karaf 4.4.4 and SOAP working under JDk 21?

I've been trying to update our project from Java 8, and just getting hit 
with the lack of javax.ws.* classes being a part of the JDK from 9 onward.


Even the stock Karaf SOAP example doesn't seem to work for me - I'm 
guessing I just need to add an extra dependency which provides those 
classes, but haven't been able to find a recommended/standard 
implementation to use...


Any pointers?