Re: Migrating axis2-1.8.2
robertlazarski <[email protected]> Sun, 26 May 2024 14:00:50 -1000
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <CABpPLBWC+dBSyNJdJaz5zRcFTY3JhCPOpG+2F7aLttZwg3bVWQ@mail.gmail.com> |
--000000000000771699061964364a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No idea, I am not seeing these issues anywhere else - locally, on GitHub - however I don't doubt there is a problem as this is the unstable master branch and I run Ubuntu locally. We are moving to JDK 17 as jakarta requires it and at a glance it compiles ok on my local machine but I see the following locations that need compiler section changes. pom.xml ./modules/tool/axis2-aar-maven-plugin/src/it/test1/pom.xml ./modules/tool/axis2-java2w sdl-maven-plugin/target/it/test1/pom.xml ./modules/tool/axis2-java2wsdl-maven-plugin/src/it/test1/pom.xml On Sun, May 26, 2024 at 1:56=E2=80=AFPM Amit Patil <amitpatil12.ap67@gmail.= com> wrote: > By using this mvn -Dmaven.test.skip.exec clean install I am facing an > issue with >> >> java.lang.NullPointerException: Cannot invoke >> "org.slf4j.Logger.error(String, java.lang.Throwable)" because "logger" i= s >> null > > > And by using this mvn -B -e -Papache-release -Dgpg.skip=3Dtrue verify I = am > facing the same issue as before with the access issue. > > Is this because of some configuration issue in my local machine? Because = I > can see that the build is passed in git. > > On Mon, 27 May 2024 at 05:02, Amit Patil <[email protected]> > wrote: > >> Shoule source and target in parent pom.xml be 17? >> >> <configuration> >> <source>1.8</source> >> <target>1.8</target> >> </configuration> >> >> On Mon, 27 May 2024 at 04:45, robertlazarski <[email protected]> >> wrote: >> >>> Hmm, "mvn -Dmaven.test.skip.exec clean install" should work however if >>> not then I suggest trying the command used to build with GitHub Actions= : >>> >>> mvn -B -e -Papache-release -Dgpg.skip=3Dtrue verify >>> >>> >>> https://github.com/apache/axis-axis2-java-core/actions/runs/9235500518/= job/25410379970 >>> >>> On Sun, May 26, 2024 at 12:55=E2=80=AFPM Amit Patil <amitpatil12.ap67@g= mail.com> >>> wrote: >>> >>>> Yes I am using jdk 17. >>>> permission java.io.FilePermission "C:\\Program Files\\Eclipse >>>> Adoptium\\jdk-17.0.3.7-hotspot", "read,readlink"; >>>> >>>> On Mon, 27 May 2024 at 04:23, robertlazarski <[email protected]= > >>>> wrote: >>>> >>>>> You need to compile with JDK 17. >>>>> >>>>> On Sun, May 26, 2024 at 12:50=E2=80=AFPM Amit Patil < >>>>> [email protected]> wrote: >>>>> >>>>>> Thanks for the clarification, >>>>>> Can you please confirm a couple of things, Can I officially take the >>>>>> master branch of the axis2 repository and compile it to use in my co= de? and >>>>>> I am getting the following error while building. >>>>>> >>>>>>> [ERROR] Errors: >>>>>>> [ERROR] ServiceClientTest.testWSDLWithImportsFromZIP:50 =C2=BB >>>>>>> AccessControl access denied ("java.io.FilePermission" >>>>>>> "jar:file:\C:\Users\apatil56\Downloads\axis-axis2-java-core-master\= axis-axis2-java-core-master\modules\kernel\target\test-zip.zip!\test.wsdl" >>>>>>> "read") >>>>>>> [ERROR] URIResolverTest.testResolveEntity:33 =C2=BB AccessControl >>>>>>> access denied ("java.io.FilePermission" "http:\www.test.org\schema.= xsd" >>>>>>> "read") >>>>>>> [ERROR] WSDLLocatorTest.testGetInputSource:33 =C2=BB AccessContro= l >>>>>>> access denied ("java.io.FilePermission" "http:\www.test.org\schema.= xsd" >>>>>>> "read") >>>>>>> [INFO] >>>>>>> [ERROR] Tests run: 380, Failures: 0, Errors: 3, Skipped: 0 >>>>>>> [INFO] >>>>>>> [INFO] >>>>>>> -------------------------------------------------------------------= ----- >>>>>>> [INFO] Reactor Summary for Apache Axis2 - Kernel 1.8.3-SNAPSHOT: >>>>>>> [INFO] >>>>>>> [INFO] Apache Axis2 - Kernel .............................. FAILURE >>>>>>> [ 41.271 s] >>>>>>> >>>>>> >>>>>> This is because of Java Security Manager blocking access to certain >>>>>> resources (files and URLs) required by the tests. I will try to solv= e this >>>>>> but can you tell if I am missing anything here? >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Amit Patil >>>>>> >>>>>> On Mon, 27 May 2024 at 03:39, robertlazarski < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> The license is open source via the Apache license at all times - th= e >>>>>>> only difference with an official release of 1.8.3 is binaries that = can be >>>>>>> loaded via Maven and direct links. >>>>>>> >>>>>>> On Sun, May 26, 2024 at 12:06=E2=80=AFPM robertlazarski < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> This is the repo - only missing feature is OSGI as it may get >>>>>>>> dropped if we don't get a volunteer. >>>>>>>> >>>>>>>> Beyond that, the only expected difference is httpclient4 instead o= f >>>>>>>> httpclient5 ... which is going to be more stable for the next mont= h or two. >>>>>>>> >>>>>>>> https://github.com/apache/axis-axis2-java-core >>>>>>>> >>>>>>>> On Sun, May 26, 2024 at 11:52=E2=80=AFAM Amit Patil < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> Thank you so much for the response. Can you please provide me wit= h >>>>>>>>> the link to the right branch or tag? I will try to compile from s= ource as >>>>>>>>> of now. But we are not authorized to use the product which has no= t been >>>>>>>>> released yet with a licence. Although it will be good for testing= for now >>>>>>>>> and communicating with the customer for future roadmap. >>>>>>>>> Also is there any other workaround for this? >>>>>>>>> >>>>>>>>> Thanks for the help, >>>>>>>>> Amit Patil >>>>>>>>> >>>>>>>>> On Mon, 27 May 2024 at 03:06, robertlazarski < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Tomcat 10 supports axis2 via the legacyAppBase folder - see the >>>>>>>>>> Tomcat 10 docs for details. >>>>>>>>>> >>>>>>>>>> Axis 1.8.3 will support jakarta and the only thing holding up th= e >>>>>>>>>> release is httpclient5 which isn't related to jakarta at all ...= you can >>>>>>>>>> check out the Axis2 github repo and compile from source now if y= ou are so >>>>>>>>>> inclined. >>>>>>>>>> >>>>>>>>>> The httpclient5 upgrade ended up being harder than expected due >>>>>>>>>> to some Axis2 quirks that goes deep into the architecture and th= e classic >>>>>>>>>> API changing more that it would appear. >>>>>>>>>> >>>>>>>>>> Nevertheless, progress continues. >>>>>>>>>> >>>>>>>>>> On Sun, May 26, 2024 at 11:21=E2=80=AFAM Amit Patil < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Hello, >>>>>>>>>>> I am a software developer in a MNC working on developing web >>>>>>>>>>> applications in java. Currently I am in the middle of a task of= migrating >>>>>>>>>>> my code from javax to jakarta because we are upgrading to tomca= t 10. We use *axis2 >>>>>>>>>>> 1.8.2 *in our code which consists of some javax jars and code >>>>>>>>>>> snippets with javax use in it. >>>>>>>>>>> I want to know whether to upgrade the binaries used in >>>>>>>>>>> axis2-1.8.2 manually or is there any other way of doing it? Doe= s tomcat 10 >>>>>>>>>>> support axis2-1.8.2? >>>>>>>>>>> Can you please guide me what I should do in this situation? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Kind regards, >>>>>>>>>>> Amit Patil >>>>>>>>>>> >>>>>>>>>> --000000000000771699061964364a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>No idea, I am not seeing these issues anywhere else -= locally, on GitHub - however I don't doubt there is a problem as this = is the unstable master branch and I run Ubuntu locally. <br></div><div><br>= </div><div>We are moving to JDK 17 as jakarta requires it and at a glance i= t compiles ok on my local machine but I see the following locations that ne= ed compiler section changes. <br></div><div><br></div><div><span style=3D"f= ont-family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(= 255,255,255)">pom.xml ./modules/tool/axis2-aar-maven-plugin/src/it/test1/po= m.xml ./modules/tool/axis2-java2w</span><br>sdl-maven-plugin/target/it/test= 1/pom.xml ./modules/tool/axis2-java2wsdl-maven-plugin/src/it/test1/pom.xml<= br></span></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Sun, May 26, 2024 at 1:56=E2=80=AFPM Amit Patil <<a h= ref=3D"mailto:[email protected]">[email protected]</a>>= ; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px= 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div di= r=3D"ltr">By using this=C2=A0 <span style=3D"color:rgb(0,0,0);font-family:monospace">mvn -Dmaven.test.ski= p.exec clean install=C2=A0</span>I am facing an issue with=C2=A0<blockquote= class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so= lid rgb(204,204,204);padding-left:1ex">java.lang.NullPointerException: Cann= ot invoke "org.slf4j.Logger.error(String, java.lang.Throwable)" b= ecause "logger" is null</blockquote><div><br>And by using this=C2= =A0 mvn -B -e -Papache-release -Dgpg.skip=3Dtrue verify I am facing the sam= e issue as before with the access issue.=C2=A0<br><br>Is this because of so= me configuration issue in my local machine? Because I can see that the buil= d is passed in git.=C2=A0</div></div><br><div class=3D"gmail_quote"><div di= r=3D"ltr" class=3D"gmail_attr">On Mon, 27 May 2024 at 05:02, Amit Patil <= ;<a href=3D"mailto:[email protected]" target=3D"_blank">amitpatil1= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa= dding-left:1ex"><div dir=3D"ltr">Shoule source and target in parent pom.xml= be 17?<br><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <= configuration><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 <source>1.8</source><br>=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <target>1.8</targ= et><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </conf= iguration><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas= s=3D"gmail_attr">On Mon, 27 May 2024 at 04:45, robertlazarski <<a href= =3D"mailto:[email protected]" target=3D"_blank">robertlazarski@gmail= .com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1= ex"><div dir=3D"ltr"><div>Hmm, "<span style=3D"font-family:monospace">= <span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">mvn -Dma= ven.test.skip.exec clean install</span></span>" should work however if= not then I suggest trying the command used to build with GitHub Actions:= =C2=A0</div><div><br></div><div><span><span>mvn -B -e -Papache-release -Dgp= g.skip=3Dtrue verify</span></span></div><div><span><span><br></span></span>= </div><div><a href=3D"https://github.com/apache/axis-axis2-java-core/action= s/runs/9235500518/job/25410379970" target=3D"_blank">https://github.com/apa= che/axis-axis2-java-core/actions/runs/9235500518/job/25410379970</a> </div>= </div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">= On Sun, May 26, 2024 at 12:55=E2=80=AFPM Amit Patil <<a href=3D"mailto:a= [email protected]" target=3D"_blank">[email protected]</a>= > wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div= dir=3D"ltr">Yes I am using jdk 17.<br>permission java.io.FilePermission &q= uot;C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.3.7-hotspot", "= read,readlink";<br></div><br><div class=3D"gmail_quote"><div dir=3D"lt= r" class=3D"gmail_attr">On Mon, 27 May 2024 at 04:23, robertlazarski <<a= href=3D"mailto:[email protected]" target=3D"_blank">robertlazarski@= gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"ltr">You need to compile with JDK 17. <br></div><br>= <div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Ma= y 26, 2024 at 12:50=E2=80=AFPM Amit Patil <<a href=3D"mailto:amitpatil12= [email protected]" target=3D"_blank">[email protected]</a>> wrote= :<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.= 8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"lt= r">Thanks for the clarification,<br><div>Can you please confirm a couple of= things, Can I officially take the master branch of the axis2 repository an= d compile it to use in my code? and<br>I am getting the following error whi= le building.=C2=A0<br><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[ER= ROR] Errors: <br>[ERROR] =C2=A0 ServiceClientTest.testWSDLWithImportsFromZI= P:50 =C2=BB AccessControl access denied ("java.io.FilePermission"= "jar:file:\C:\Users\apatil56\Downloads\axis-axis2-java-core-master\ax= is-axis2-java-core-master\modules\kernel\target\test-zip.zip!\test.wsdl&quo= t; "read")<br>[ERROR] =C2=A0 URIResolverTest.testResolveEntity:33= =C2=BB AccessControl access denied ("java.io.FilePermission" &qu= ot;http:\<a href=3D"http://www.test.org" target=3D"_blank">www.test.org</a>= \schema.xsd" "read")<br>[ERROR] =C2=A0 WSDLLocatorTest.testG= etInputSource:33 =C2=BB AccessControl access denied ("java.io.FilePerm= ission" "http:\<a href=3D"http://www.test.org" target=3D"_blank">= www.test.org</a>\schema.xsd" "read")<br>[INFO]<br>[ERROR] Te= sts run: 380, Failures: 0, Errors: 3, Skipped: 0<br>[INFO]<br>[INFO] ------= ------------------------------------------------------------------<br>[INFO= ] Reactor Summary for Apache Axis2 - Kernel 1.8.3-SNAPSHOT:<br>[INFO]<br>[I= NFO] Apache Axis2 - Kernel .............................. FAILURE [ 41.271 = s]<br></blockquote><div><br>This is because of Java Security Manager blocki= ng access to certain resources (files and URLs) required by the tests. I wi= ll try to solve this but can you tell if I am missing anything here?=C2=A0<= br><br><br>Thanks,<br>Amit Patil</div></div></div><br><div class=3D"gmail_q= uote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 27 May 2024 at 03:39, r= obertlazarski <<a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a>> wrote:<br></div><blockquote class=3D"= gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex"><div dir=3D"ltr">The license is open source vi= a the Apache license at all times - the only difference with an official re= lease of 1.8.3 is binaries that can be loaded via Maven and direct links. <= br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_att= r">On Sun, May 26, 2024 at 12:06=E2=80=AFPM robertlazarski <<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]<= /a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0= px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><= div dir=3D"ltr"><div>This is the repo - only missing feature is OSGI as it = may get dropped if we don't get a volunteer. <br></div><div><br></div><= div>Beyond that, the only expected difference is httpclient4 instead of htt= pclient5 ... which is going to be more stable for the next month or two. <b= r></div><div><br></div><div><a href=3D"https://github.com/apache/axis-axis2= -java-core" target=3D"_blank">https://github.com/apache/axis-axis2-java-cor= e</a></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g= mail_attr">On Sun, May 26, 2024 at 11:52=E2=80=AFAM Amit Patil <<a href= =3D"mailto:[email protected]" target=3D"_blank">amitpatil12.ap67@g= mail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex"><div dir=3D"ltr">Hi,<div>Thank you so much for the response. Can yo= u please provide me with the link to the right branch or tag? I will try to= compile from source as of now. But we are not authorized to use the produc= t=C2=A0which has not been released yet with=C2=A0a licence. Although=C2=A0i= t will be good for testing for now and communicating with the customer for = future=C2=A0roadmap.=C2=A0<br>Also is there any other workaround for this?= =C2=A0<br><br>Thanks for the=C2=A0help,<br>Amit Patil</div></div><br><div c= lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 27 May 2= 024 at 03:06, robertlazarski <<a href=3D"mailto:[email protected]= " target=3D"_blank">[email protected]</a>> wrote:<br></div><block= quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1= px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Tomcat 10= supports axis2 via the <span style=3D"font-family:monospace"><span style= =3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">legacyAppBase folde= r - see the Tomcat 10 docs for details. <br></span></span></div><div><span = style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);background-= color:rgb(255,255,255)"><br></span></span></div><div><span style=3D"font-fa= mily:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,25= 5,255)">Axis 1.8.3 will support jakarta and the only thing holding up the r= elease is httpclient5 which isn't related to jakarta at all ... you can= check out the Axis2 github repo and compile from source now if you are so = inclined. <br></span></span></div><div><span style=3D"font-family:monospace= "><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></= span></span></div><div><span style=3D"font-family:monospace"><span style=3D= "color:rgb(0,0,0);background-color:rgb(255,255,255)">The httpclient5 upgrad= e ended up being harder than expected due to some Axis2 quirks that goes de= ep into the architecture and the classic API changing more that it would ap= pear. <br></span></span></div><div><span style=3D"font-family:monospace"><s= pan style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span= ></span></div><div><span style=3D"font-family:monospace"><span style=3D"col= or:rgb(0,0,0);background-color:rgb(255,255,255)">Nevertheless, progress con= tinues. <br></span></span></div><div><span style=3D"font-family:monospace">= </span></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D= "gmail_attr">On Sun, May 26, 2024 at 11:21=E2=80=AFAM Amit Patil <<a hre= f=3D"mailto:[email protected]" target=3D"_blank">amitpatil12.ap67@= gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"ltr">Hello,=C2=A0<br><div>I am a software developer = in a MNC working on developing web applications in java. Currently I am in = the middle of a task of migrating my code from javax to jakarta because we = are upgrading to tomcat 10. We use=C2=A0<b>axis2 1.8.2=C2=A0</b>in our code= which consists of some javax jars and code snippets with javax use in it.= =C2=A0<br>I want to know whether to upgrade the binaries used in axis2-1.8.= 2 manually or is there any other way of doing it? Does tomcat 10 support ax= is2-1.8.2?=C2=A0<br>Can you please guide me what I should do in this situat= ion?<br><br><br>Kind regards,<br>Amit Patil</div><div></div></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> </blockquote></div> --000000000000771699061964364a--