You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by Gary Gregory <ga...@gmail.com> on 2022/10/07 13:51:27 UTC
Jetty 10 and 11
Hi All,
I am migrating one of our product stacks to Java 11, so far, so good, no
test failures with Juneau 8.2.0. But I am seeing runtime failures when I
change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
EOL version of Jetty? I did not try Jetty 11 yet.
Gary
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Excellent, that help a lot :-)
On 2022/10/08 19:22:27 James Bognar wrote:
> PropertyStores are completely gone in Juneau 9. They've been replaced
> by standard builders for all serializers and parsers. You should be
> able to eliminate that method call.
>
> I've started a migration guide here:
> https://juneau.apache.org/site/apidocs-9.0.0/overview-summary.html#v9.0-migration-guide
>
> On Sat, Oct 8, 2022 at 3:13 PM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > In order to clean things up between test methods within a test class, some of our tests do this:
> >
> > PropertyStoreBuilder.clearCache();
> >
> > Is there an equivalent in Juneau 9?
> >
> > Gary
> >
> > On 2022/10/08 18:57:57 "Gary D. Gregory" wrote:
> > > Here is PR that bumps some jars to their current maintenance level:
> > > https://github.com/apache/juneau/pull/62
> > >
> > > I got 'mvn clean verify' to build on Windows all the way through.
> > >
> > > Gary
> > >
> > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > >
> > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > >
> > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > >
> > > > Description Resource Path Location Type
> > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > >
> > > > Gary
> > > >
> > > >
> > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > >
> > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > >
> > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > change...can you try again?
> > > > > >
> > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > >
> > > > > > > Hm,
> > > > > > >
> > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > For example:
> > > > > > > >
> > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > >
> > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > Hi All,
> > > > > > > > >
> > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > >
> > > > >
> > > >
> > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@apache.org>.
PropertyStores are completely gone in Juneau 9. They've been replaced
by standard builders for all serializers and parsers. You should be
able to eliminate that method call.
I've started a migration guide here:
https://juneau.apache.org/site/apidocs-9.0.0/overview-summary.html#v9.0-migration-guide
On Sat, Oct 8, 2022 at 3:13 PM Gary D. Gregory <gg...@apache.org> wrote:
>
> In order to clean things up between test methods within a test class, some of our tests do this:
>
> PropertyStoreBuilder.clearCache();
>
> Is there an equivalent in Juneau 9?
>
> Gary
>
> On 2022/10/08 18:57:57 "Gary D. Gregory" wrote:
> > Here is PR that bumps some jars to their current maintenance level:
> > https://github.com/apache/juneau/pull/62
> >
> > I got 'mvn clean verify' to build on Windows all the way through.
> >
> > Gary
> >
> > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > >
> > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > >
> > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > >
> > > Description Resource Path Location Type
> > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > >
> > > Gary
> > >
> > >
> > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > >
> > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > >
> > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > change...can you try again?
> > > > >
> > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > >
> > > > > > Hm,
> > > > > >
> > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > For example:
> > > > > > >
> > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > >
> > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > >
> > > >
> > >
> >
Re: Jetty 10 and 11
Posted by James Bognar <ja...@gmail.com>.
PropertyStores are completely gone in Juneau 9. They've been replaced
by standard builders for all serializers and parsers. You should be
able to eliminate that method call.
I've started a migration guide here:
https://juneau.apache.org/site/apidocs-9.0.0/overview-summary.html#v9.0-migration-guide
On Sat, Oct 8, 2022 at 3:13 PM Gary D. Gregory <gg...@apache.org> wrote:
>
> In order to clean things up between test methods within a test class, some of our tests do this:
>
> PropertyStoreBuilder.clearCache();
>
> Is there an equivalent in Juneau 9?
>
> Gary
>
> On 2022/10/08 18:57:57 "Gary D. Gregory" wrote:
> > Here is PR that bumps some jars to their current maintenance level:
> > https://github.com/apache/juneau/pull/62
> >
> > I got 'mvn clean verify' to build on Windows all the way through.
> >
> > Gary
> >
> > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > >
> > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > >
> > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > >
> > > Description Resource Path Location Type
> > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > >
> > > Gary
> > >
> > >
> > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > >
> > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > >
> > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > change...can you try again?
> > > > >
> > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > >
> > > > > > Hm,
> > > > > >
> > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > For example:
> > > > > > >
> > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > >
> > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > >
> > > >
> > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
In order to clean things up between test methods within a test class, some of our tests do this:
PropertyStoreBuilder.clearCache();
Is there an equivalent in Juneau 9?
Gary
On 2022/10/08 18:57:57 "Gary D. Gregory" wrote:
> Here is PR that bumps some jars to their current maintenance level:
> https://github.com/apache/juneau/pull/62
>
> I got 'mvn clean verify' to build on Windows all the way through.
>
> Gary
>
> On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> >
> > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> >
> > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> >
> > Description Resource Path Location Type
> > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> >
> > Gary
> >
> >
> > On 2022/10/08 15:06:27 James Bognar wrote:
> > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > >
> > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > >
> > > > Sorry, I don't have a windows machine to test. I just made another
> > > > change...can you try again?
> > > >
> > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > >
> > > > > Hm,
> > > > >
> > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > For example:
> > > > > >
> > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > >
> > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > Hi All,
> > > > > > >
> > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
YW. This next one just pickupd the latest Java 8 compatible version of Hibernate 5 (Hibernate 6 requires Java 11): https://github.com/apache/juneau/pull/63
I've updated a different one of our stacks from various Hibernate 5 versions in the past without problems so I do not expect any here since a local build passed for me. I'm not sure what kind of coverage you have though.
Gary
On 2022/10/08 19:22:59 James Bognar wrote:
> I've merged the PR to master. Thanks!
>
> On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > Here is PR that bumps some jars to their current maintenance level:
> > https://github.com/apache/juneau/pull/62
> >
> > I got 'mvn clean verify' to build on Windows all the way through.
> >
> > Gary
> >
> > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > >
> > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > >
> > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > >
> > > Description Resource Path Location Type
> > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > >
> > > Gary
> > >
> > >
> > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > >
> > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > >
> > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > change...can you try again?
> > > > >
> > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > >
> > > > > > Hm,
> > > > > >
> > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > For example:
> > > > > > >
> > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > >
> > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > >
> > > >
> > >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
The files that need updates are:
* /juneau/juneau-doc/docs/Topics/14.my-jetty-microservice/01.mjm.Installing.html
* /juneau/juneau-doc/src/main/javadoc/overview.html
Thanks James!
Gary
On 2022/10/09 15:29:40 James Bognar wrote:
> I'll take care of the documentation if you just point me to it. It's
> hand-edited.
>
> The org.apache.juneau.doc.internal.DocGenerator class takes all those
> individual Topic docs and generates an uber overview.html file for the
> Javadocs (https://juneau.apache.org/site/apidocs-9.0.0/overview-summary.html#overview.description).
> The overview is quite large so I broke it into pieces to make the
> documentation manageable.
>
> The documentation is truly my only concern with upgrading to Java 11.
> I use a custom taglet {@doc ...} in the documentation to help me link
> to topics in the overview page. They completely revamped Javadoc
> generation in Java 9 and I haven't found any good documentation on
> creating custom taglets. It's going to be a pain to get rid of these
> doc taglets but I see no other choice if we want to upgrade to Java
> 11.
>
> On Sun, Oct 9, 2022 at 11:16 AM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > It looks like there are now misleading docs that still refer to the deprecated NCSARequestLog. I see 2 wild-looking HTML files that need updating. Is there some special editor to deal with this special kind of HTML or is this a hand-edit situation?
> >
> > Gary
> >
> > On 2022/10/09 15:00:02 "Gary D. Gregory" wrote:
> > > Unless JettyMicroservice becomes an abstract class with Jetty9Microservice and Jetty11Microservice subclasses, but it might be simpler to just go to Jetty 11 period.
> > >
> > > Thoughts?
> > >
> > > Gary
> > >
> > > On 2022/10/09 14:57:36 "Gary D. Gregory" wrote:
> > > > Looking at Jetty 11, the Jakata name change might be a one-way street:
> > > >
> > > > mvn clean verify -Djetty.version=11.0.12
> > > >
> > > > [INFO] -------------------------------------------------------------
> > > > [ERROR] COMPILATION ERROR :
> > > > [INFO] -------------------------------------------------------------
> > > > [ERROR] /C:/Users/ggregory/git/g/juneau/juneau-microservice/juneau-microservice-jetty/src/main/java/org/apache/juneau/microservice/jetty/JettyMicroservice.java:[755,36] no suitable constructor found for ServletHolder(javax.servlet.Servlet)
> > > > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(org.eclipse.jetty.servlet.Source) is not applicable
> > > > (argument mismatch; javax.servlet.Servlet cannot be converted to org.eclipse.jetty.servlet.Source)
> > > > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(jakarta.servlet.Servlet) is not applicable
> > > > (argument mismatch; javax.servlet.Servlet cannot be converted to jakarta.servlet.Servlet)
> > > > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(java.lang.Class<? extends jakarta.servlet.Servlet>) is not applicable
> > > > (argument mismatch; javax.servlet.Servlet cannot be converted to java.lang.Class<? extends jakarta.servlet.Servlet>)
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/09 14:48:51 "Gary D. Gregory" wrote:
> > > > > I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way through. You'll need to run under Java 11 (for Jetty 10) obv.
> > > > >
> > > > > I also did some minor refactoring for jacoco-maven-plugin in https://github.com/apache/juneau/pull/66
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> > > > > > Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> > > > > > https://github.com/apache/juneau/pull/65
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > > > > > > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> > > > > > >
> > > > > > > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> > > > > > >
> > > > > > > TY,
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > > > > > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > > > > > > I've merged the PR for Hibernate.
> > > > > > > > >
> > > > > > > > > If necessary, I think we can just remove the
> > > > > > > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > > > > > > just rely on the existing Jetty logging capabilities.
> > > > > > > > >
> > > > > > > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > >
> > > > > > > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > > > > > > >
> > > > > > > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > > > > > > I've merged the PR to master. Thanks!
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > > > > > > >
> > > > > > > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Description Resource Path Location Type
> > > > > > > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > > > > > > change...can you try again?
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Hm,
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > > > > > > For example:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@apache.org>.
I'll take care of the documentation if you just point me to it. It's
hand-edited.
The org.apache.juneau.doc.internal.DocGenerator class takes all those
individual Topic docs and generates an uber overview.html file for the
Javadocs (https://juneau.apache.org/site/apidocs-9.0.0/overview-summary.html#overview.description).
The overview is quite large so I broke it into pieces to make the
documentation manageable.
The documentation is truly my only concern with upgrading to Java 11.
I use a custom taglet {@doc ...} in the documentation to help me link
to topics in the overview page. They completely revamped Javadoc
generation in Java 9 and I haven't found any good documentation on
creating custom taglets. It's going to be a pain to get rid of these
doc taglets but I see no other choice if we want to upgrade to Java
11.
On Sun, Oct 9, 2022 at 11:16 AM Gary D. Gregory <gg...@apache.org> wrote:
>
> It looks like there are now misleading docs that still refer to the deprecated NCSARequestLog. I see 2 wild-looking HTML files that need updating. Is there some special editor to deal with this special kind of HTML or is this a hand-edit situation?
>
> Gary
>
> On 2022/10/09 15:00:02 "Gary D. Gregory" wrote:
> > Unless JettyMicroservice becomes an abstract class with Jetty9Microservice and Jetty11Microservice subclasses, but it might be simpler to just go to Jetty 11 period.
> >
> > Thoughts?
> >
> > Gary
> >
> > On 2022/10/09 14:57:36 "Gary D. Gregory" wrote:
> > > Looking at Jetty 11, the Jakata name change might be a one-way street:
> > >
> > > mvn clean verify -Djetty.version=11.0.12
> > >
> > > [INFO] -------------------------------------------------------------
> > > [ERROR] COMPILATION ERROR :
> > > [INFO] -------------------------------------------------------------
> > > [ERROR] /C:/Users/ggregory/git/g/juneau/juneau-microservice/juneau-microservice-jetty/src/main/java/org/apache/juneau/microservice/jetty/JettyMicroservice.java:[755,36] no suitable constructor found for ServletHolder(javax.servlet.Servlet)
> > > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(org.eclipse.jetty.servlet.Source) is not applicable
> > > (argument mismatch; javax.servlet.Servlet cannot be converted to org.eclipse.jetty.servlet.Source)
> > > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(jakarta.servlet.Servlet) is not applicable
> > > (argument mismatch; javax.servlet.Servlet cannot be converted to jakarta.servlet.Servlet)
> > > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(java.lang.Class<? extends jakarta.servlet.Servlet>) is not applicable
> > > (argument mismatch; javax.servlet.Servlet cannot be converted to java.lang.Class<? extends jakarta.servlet.Servlet>)
> > >
> > > Gary
> > >
> > > On 2022/10/09 14:48:51 "Gary D. Gregory" wrote:
> > > > I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way through. You'll need to run under Java 11 (for Jetty 10) obv.
> > > >
> > > > I also did some minor refactoring for jacoco-maven-plugin in https://github.com/apache/juneau/pull/66
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> > > > > Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> > > > > https://github.com/apache/juneau/pull/65
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > > > > > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> > > > > >
> > > > > > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> > > > > >
> > > > > > TY,
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > > > > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > > > > > I've merged the PR for Hibernate.
> > > > > > > >
> > > > > > > > If necessary, I think we can just remove the
> > > > > > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > > > > > just rely on the existing Jetty logging capabilities.
> > > > > > > >
> > > > > > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > >
> > > > > > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > > > > > >
> > > > > > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > > > > > I've merged the PR to master. Thanks!
> > > > > > > > > >
> > > > > > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > > > > > >
> > > > > > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > > > > > >
> > > > > > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > > > > > >
> > > > > > > > > > > > Description Resource Path Location Type
> > > > > > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > > > > > change...can you try again?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Hm,
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > > > > > For example:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
It looks like there are now misleading docs that still refer to the deprecated NCSARequestLog. I see 2 wild-looking HTML files that need updating. Is there some special editor to deal with this special kind of HTML or is this a hand-edit situation?
Gary
On 2022/10/09 15:00:02 "Gary D. Gregory" wrote:
> Unless JettyMicroservice becomes an abstract class with Jetty9Microservice and Jetty11Microservice subclasses, but it might be simpler to just go to Jetty 11 period.
>
> Thoughts?
>
> Gary
>
> On 2022/10/09 14:57:36 "Gary D. Gregory" wrote:
> > Looking at Jetty 11, the Jakata name change might be a one-way street:
> >
> > mvn clean verify -Djetty.version=11.0.12
> >
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR] /C:/Users/ggregory/git/g/juneau/juneau-microservice/juneau-microservice-jetty/src/main/java/org/apache/juneau/microservice/jetty/JettyMicroservice.java:[755,36] no suitable constructor found for ServletHolder(javax.servlet.Servlet)
> > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(org.eclipse.jetty.servlet.Source) is not applicable
> > (argument mismatch; javax.servlet.Servlet cannot be converted to org.eclipse.jetty.servlet.Source)
> > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(jakarta.servlet.Servlet) is not applicable
> > (argument mismatch; javax.servlet.Servlet cannot be converted to jakarta.servlet.Servlet)
> > constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(java.lang.Class<? extends jakarta.servlet.Servlet>) is not applicable
> > (argument mismatch; javax.servlet.Servlet cannot be converted to java.lang.Class<? extends jakarta.servlet.Servlet>)
> >
> > Gary
> >
> > On 2022/10/09 14:48:51 "Gary D. Gregory" wrote:
> > > I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way through. You'll need to run under Java 11 (for Jetty 10) obv.
> > >
> > > I also did some minor refactoring for jacoco-maven-plugin in https://github.com/apache/juneau/pull/66
> > >
> > > Gary
> > >
> > > On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> > > > Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> > > > https://github.com/apache/juneau/pull/65
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > > > > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> > > > >
> > > > > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> > > > >
> > > > > TY,
> > > > > Gary
> > > > >
> > > > > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > > > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > > > > I've merged the PR for Hibernate.
> > > > > > >
> > > > > > > If necessary, I think we can just remove the
> > > > > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > > > > just rely on the existing Jetty logging capabilities.
> > > > > > >
> > > > > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > >
> > > > > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > > > > >
> > > > > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > > > > I've merged the PR to master. Thanks!
> > > > > > > > >
> > > > > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > >
> > > > > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > > > > >
> > > > > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > > > > >
> > > > > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > > > > >
> > > > > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > > > > >
> > > > > > > > > > > Description Resource Path Location Type
> > > > > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > > > > change...can you try again?
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Hm,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > > > > For example:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@apache.org>.
Let’s try for jetty 11 :)
On Sun, Oct 9, 2022 at 11:00 AM Gary D. Gregory <gg...@apache.org> wrote:
> Unless JettyMicroservice becomes an abstract class with Jetty9Microservice
> and Jetty11Microservice subclasses, but it might be simpler to just go to
> Jetty 11 period.
>
> Thoughts?
>
> Gary
>
> On 2022/10/09 14:57:36 "Gary D. Gregory" wrote:
> > Looking at Jetty 11, the Jakata name change might be a one-way street:
> >
> > mvn clean verify -Djetty.version=11.0.12
> >
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR]
> /C:/Users/ggregory/git/g/juneau/juneau-microservice/juneau-microservice-jetty/src/main/java/org/apache/juneau/microservice/jetty/JettyMicroservice.java:[755,36]
> no suitable constructor found for ServletHolder(javax.servlet.Servlet)
> > constructor
> org.eclipse.jetty.servlet.ServletHolder.ServletHolder(org.eclipse.jetty.servlet.Source)
> is not applicable
> > (argument mismatch; javax.servlet.Servlet cannot be converted to
> org.eclipse.jetty.servlet.Source)
> > constructor
> org.eclipse.jetty.servlet.ServletHolder.ServletHolder(jakarta.servlet.Servlet)
> is not applicable
> > (argument mismatch; javax.servlet.Servlet cannot be converted to
> jakarta.servlet.Servlet)
> > constructor
> org.eclipse.jetty.servlet.ServletHolder.ServletHolder(java.lang.Class<?
> extends jakarta.servlet.Servlet>) is not applicable
> > (argument mismatch; javax.servlet.Servlet cannot be converted to
> java.lang.Class<? extends jakarta.servlet.Servlet>)
> >
> > Gary
> >
> > On 2022/10/09 14:48:51 "Gary D. Gregory" wrote:
> > > I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way
> through. You'll need to run under Java 11 (for Jetty 10) obv.
> > >
> > > I also did some minor refactoring for jacoco-maven-plugin in
> https://github.com/apache/juneau/pull/66
> > >
> > > Gary
> > >
> > > On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> > > > Here is a PR that should remove the last obvious hurdle to Jetty 10,
> at least at the binary level:
> > > > https://github.com/apache/juneau/pull/65
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > > > > OK, here is a PR -- https://github.com/apache/juneau/pull/64 --
> that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10
> (with Java 11).
> > > > >
> > > > > Note that the current superclass of JettyLogger is gone from Jetty
> 10 but there is a Jetty interface to implement in both Jetty versions. I
> also updated the POMs to make it simpler to compile on Java 11. You still
> need to make a small edit in the parent POM to compile on Java 11 but I did
> not want to create a profile for Java 11 and make the parent POM bigger and
> more complicated. See the PR commit comment for details.
> > > > >
> > > > > TY,
> > > > > Gary
> > > > >
> > > > > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > > > > I'm attempting a PR that would be nicer for compatibility...
> removing the class is simpler of course ;-)
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > > > > I've merged the PR for Hibernate.
> > > > > > >
> > > > > > > If necessary, I think we can just remove the
> > > > > > > org.apache.juneau.microservice.jetty.JettyLogger class
> entirely and
> > > > > > > just rely on the existing Jetty logging capabilities.
> > > > > > >
> > > > > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <
> ggregory@apache.org> wrote:
> > > > > > > >
> > > > > > > > Here is another speed bump: I do not think
> org.apache.juneau.microservice.jetty.JettyLogger is going to work because
> it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in
> Jetty 10.
> > > > > > > >
> > > > > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > > > > I've merged the PR to master. Thanks!
> > > > > > > > >
> > > > > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <
> ggregory@apache.org> wrote:
> > > > > > > > > >
> > > > > > > > > > Here is PR that bumps some jars to their current
> maintenance level:
> > > > > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > > > > >
> > > > > > > > > > I got 'mvn clean verify' to build on Windows all the way
> through.
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > > > > >
> > > > > > > > > > > Thanks James. I got a full build to pass from git
> master on Windows! Thanks.
> > > > > > > > > > >
> > > > > > > > > > > Now it's not going to be that simple, because I now
> need migration guidance to resolve compile errors:
> > > > > > > > > > >
> > > > > > > > > > > Description Resource Path Location
> Type
> > > > > > > > > > > BasicRestServletJenaGroup cannot be resolved to a
> type AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152
> Java Problem
> > > > > > > > > > > Body cannot be resolved to a type
> AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605
> Java Problem
> > > > > > > > > > > RestMethod cannot be resolved to a type
> AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313
> Java Problem
> > > > > > > > > > > The attribute _default is undefined for the annotation
> type Query AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408
> Java Problem
> > > > > > > > > > > The attribute reqHeaders is undefined for the
> annotation type Rest AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108
> Java Problem
> > > > > > > > > > > The import org.apache.juneau.http.annotation.Body
> cannot be resolved AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58
> Java Problem
> > > > > > > > > > > The import
> org.apache.juneau.rest.annotation.RestMethod cannot be resolved
> AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65
> Java Problem
> > > > > > > > > > > The import
> org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved
> AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63
> Java Problem
> > > > > > > > > > > Type mismatch: cannot convert from String[] to Class<?
> extends StaticFiles> AdminRootResources.java
> /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111
> Java Problem
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the
> constructor used.
> > > > > > > > > > > > Hopefully that allows you to make more progress
> testing Jetty 10/11.
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <
> jamesbognar@gmail.com> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Sorry, I don't have a windows machine to test. I
> just made another
> > > > > > > > > > > > > change...can you try again?
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <
> ggregory@apache.org> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Hm,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49),
> the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10
> there is a constructor XmlConfiguration(Resource) that could be used
> instead but... a Jetty Resource cannot be built from its actual content,
> instead it looks like it is only useable with references to content like a
> URL, a Path, a String URL and a String Path, and so on. That might be a
> good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > > > > For example:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN
> [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all
> certificates configured for Client@5bb3131b
> [provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > > > > java.lang.NoSuchMethodError: 'void
> org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > > > > at
> org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > > > > at
> org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > > > > at
> org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > > > > at
> com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > > > > at
> com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > > > > at
> com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > > > > at
> java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's
> changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > I am migrating one of our product stacks to
> Java 11, so far, so good, no
> > > > > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am
> seeing runtime failures when I
> > > > > > > > > > > > > > > > change Jetty from 9 which is EOL to 10,
> maybe Juneau 9 should not use an
> > > > > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11
> yet.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Unless JettyMicroservice becomes an abstract class with Jetty9Microservice and Jetty11Microservice subclasses, but it might be simpler to just go to Jetty 11 period.
Thoughts?
Gary
On 2022/10/09 14:57:36 "Gary D. Gregory" wrote:
> Looking at Jetty 11, the Jakata name change might be a one-way street:
>
> mvn clean verify -Djetty.version=11.0.12
>
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /C:/Users/ggregory/git/g/juneau/juneau-microservice/juneau-microservice-jetty/src/main/java/org/apache/juneau/microservice/jetty/JettyMicroservice.java:[755,36] no suitable constructor found for ServletHolder(javax.servlet.Servlet)
> constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(org.eclipse.jetty.servlet.Source) is not applicable
> (argument mismatch; javax.servlet.Servlet cannot be converted to org.eclipse.jetty.servlet.Source)
> constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(jakarta.servlet.Servlet) is not applicable
> (argument mismatch; javax.servlet.Servlet cannot be converted to jakarta.servlet.Servlet)
> constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(java.lang.Class<? extends jakarta.servlet.Servlet>) is not applicable
> (argument mismatch; javax.servlet.Servlet cannot be converted to java.lang.Class<? extends jakarta.servlet.Servlet>)
>
> Gary
>
> On 2022/10/09 14:48:51 "Gary D. Gregory" wrote:
> > I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way through. You'll need to run under Java 11 (for Jetty 10) obv.
> >
> > I also did some minor refactoring for jacoco-maven-plugin in https://github.com/apache/juneau/pull/66
> >
> > Gary
> >
> > On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> > > Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> > > https://github.com/apache/juneau/pull/65
> > >
> > > Gary
> > >
> > > On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > > > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> > > >
> > > > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> > > >
> > > > TY,
> > > > Gary
> > > >
> > > > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > > > I've merged the PR for Hibernate.
> > > > > >
> > > > > > If necessary, I think we can just remove the
> > > > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > > > just rely on the existing Jetty logging capabilities.
> > > > > >
> > > > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > >
> > > > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > > > >
> > > > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > > > I've merged the PR to master. Thanks!
> > > > > > > >
> > > > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > >
> > > > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > > > >
> > > > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > > > >
> > > > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > > > >
> > > > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > > > >
> > > > > > > > > > Description Resource Path Location Type
> > > > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > > > change...can you try again?
> > > > > > > > > > > >
> > > > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hm,
> > > > > > > > > > > > >
> > > > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > > > For example:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Looking at Jetty 11, the Jakata name change might be a one-way street:
mvn clean verify -Djetty.version=11.0.12
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/ggregory/git/g/juneau/juneau-microservice/juneau-microservice-jetty/src/main/java/org/apache/juneau/microservice/jetty/JettyMicroservice.java:[755,36] no suitable constructor found for ServletHolder(javax.servlet.Servlet)
constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(org.eclipse.jetty.servlet.Source) is not applicable
(argument mismatch; javax.servlet.Servlet cannot be converted to org.eclipse.jetty.servlet.Source)
constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(jakarta.servlet.Servlet) is not applicable
(argument mismatch; javax.servlet.Servlet cannot be converted to jakarta.servlet.Servlet)
constructor org.eclipse.jetty.servlet.ServletHolder.ServletHolder(java.lang.Class<? extends jakarta.servlet.Servlet>) is not applicable
(argument mismatch; javax.servlet.Servlet cannot be converted to java.lang.Class<? extends jakarta.servlet.Servlet>)
Gary
On 2022/10/09 14:48:51 "Gary D. Gregory" wrote:
> I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way through. You'll need to run under Java 11 (for Jetty 10) obv.
>
> I also did some minor refactoring for jacoco-maven-plugin in https://github.com/apache/juneau/pull/66
>
> Gary
>
> On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> > Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> > https://github.com/apache/juneau/pull/65
> >
> > Gary
> >
> > On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> > >
> > > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> > >
> > > TY,
> > > Gary
> > >
> > > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > > I've merged the PR for Hibernate.
> > > > >
> > > > > If necessary, I think we can just remove the
> > > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > > just rely on the existing Jetty logging capabilities.
> > > > >
> > > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > >
> > > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > > >
> > > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > > I've merged the PR to master. Thanks!
> > > > > > >
> > > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > >
> > > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > > >
> > > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > > >
> > > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > > >
> > > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > > >
> > > > > > > > > Description Resource Path Location Type
> > > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > > >
> > > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > > change...can you try again?
> > > > > > > > > > >
> > > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hm,
> > > > > > > > > > > >
> > > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > > For example:
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > > >
> > > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Gary
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
I can now run 'mvn clean verify -Djetty.version=10.0.12' all the way through. You'll need to run under Java 11 (for Jetty 10) obv.
I also did some minor refactoring for jacoco-maven-plugin in https://github.com/apache/juneau/pull/66
Gary
On 2022/10/09 13:36:48 "Gary D. Gregory" wrote:
> Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> https://github.com/apache/juneau/pull/65
>
> Gary
>
> On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> >
> > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> >
> > TY,
> > Gary
> >
> > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > >
> > > Gary
> > >
> > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > I've merged the PR for Hibernate.
> > > >
> > > > If necessary, I think we can just remove the
> > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > just rely on the existing Jetty logging capabilities.
> > > >
> > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > >
> > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > >
> > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > I've merged the PR to master. Thanks!
> > > > > >
> > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > >
> > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > >
> > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > >
> > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > >
> > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > >
> > > > > > > > Description Resource Path Location Type
> > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > >
> > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > >
> > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > >
> > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > change...can you try again?
> > > > > > > > > >
> > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hm,
> > > > > > > > > > >
> > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > For example:
> > > > > > > > > > > >
> > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > >
> > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@gmail.com>.
PRs have been merged. Thanks!
On Sun, Oct 9, 2022 at 9:36 AM Gary D. Gregory <gg...@apache.org> wrote:
>
> Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
> https://github.com/apache/juneau/pull/65
>
> Gary
>
> On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> > OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
> >
> > Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
> >
> > TY,
> > Gary
> >
> > On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> > >
> > > Gary
> > >
> > > On 2022/10/08 21:48:41 James Bognar wrote:
> > > > I've merged the PR for Hibernate.
> > > >
> > > > If necessary, I think we can just remove the
> > > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > > just rely on the existing Jetty logging capabilities.
> > > >
> > > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > >
> > > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > > >
> > > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > > I've merged the PR to master. Thanks!
> > > > > >
> > > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > >
> > > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > > https://github.com/apache/juneau/pull/62
> > > > > > >
> > > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > > >
> > > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > > >
> > > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > > >
> > > > > > > > Description Resource Path Location Type
> > > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > >
> > > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > > >
> > > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > > >
> > > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > > change...can you try again?
> > > > > > > > > >
> > > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hm,
> > > > > > > > > > >
> > > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > > For example:
> > > > > > > > > > > >
> > > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > > >
> > > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Gary
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Here is a PR that should remove the last obvious hurdle to Jetty 10, at least at the binary level:
https://github.com/apache/juneau/pull/65
Gary
On 2022/10/09 01:18:50 "Gary D. Gregory" wrote:
> OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
>
> Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
>
> TY,
> Gary
>
> On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> > I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
> >
> > Gary
> >
> > On 2022/10/08 21:48:41 James Bognar wrote:
> > > I've merged the PR for Hibernate.
> > >
> > > If necessary, I think we can just remove the
> > > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > > just rely on the existing Jetty logging capabilities.
> > >
> > > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > >
> > > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > > >
> > > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > > I've merged the PR to master. Thanks!
> > > > >
> > > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > >
> > > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > > https://github.com/apache/juneau/pull/62
> > > > > >
> > > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > > >
> > > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > > >
> > > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > > >
> > > > > > > Description Resource Path Location Type
> > > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > >
> > > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > > >
> > > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > > >
> > > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > > change...can you try again?
> > > > > > > > >
> > > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > > >
> > > > > > > > > > Hm,
> > > > > > > > > >
> > > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > > For example:
> > > > > > > > > > >
> > > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > > >
> > > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > > Hi All,
> > > > > > > > > > > >
> > > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > > >
> > > > > > > > > > > > Gary
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > >
> > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
OK, here is a PR -- https://github.com/apache/juneau/pull/64 -- that converts the JettyLogger to run on Jetty 9 (with Java 8) and Jetty 10 (with Java 11).
Note that the current superclass of JettyLogger is gone from Jetty 10 but there is a Jetty interface to implement in both Jetty versions. I also updated the POMs to make it simpler to compile on Java 11. You still need to make a small edit in the parent POM to compile on Java 11 but I did not want to create a profile for Java 11 and make the parent POM bigger and more complicated. See the PR commit comment for details.
TY,
Gary
On 2022/10/08 21:57:23 "Gary D. Gregory" wrote:
> I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
>
> Gary
>
> On 2022/10/08 21:48:41 James Bognar wrote:
> > I've merged the PR for Hibernate.
> >
> > If necessary, I think we can just remove the
> > org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> > just rely on the existing Jetty logging capabilities.
> >
> > On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> > >
> > > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> > >
> > > On 2022/10/08 19:22:59 James Bognar wrote:
> > > > I've merged the PR to master. Thanks!
> > > >
> > > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > > >
> > > > > Here is PR that bumps some jars to their current maintenance level:
> > > > > https://github.com/apache/juneau/pull/62
> > > > >
> > > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > > >
> > > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > > >
> > > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > > >
> > > > > > Description Resource Path Location Type
> > > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > >
> > > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > > >
> > > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > > >
> > > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > > change...can you try again?
> > > > > > > >
> > > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > > >
> > > > > > > > > Hm,
> > > > > > > > >
> > > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > > For example:
> > > > > > > > > >
> > > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > > >
> > > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > > Hi All,
> > > > > > > > > > >
> > > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > > >
> > > > > > > > > > > Gary
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> > > > > >
> > > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
I'm attempting a PR that would be nicer for compatibility... removing the class is simpler of course ;-)
Gary
On 2022/10/08 21:48:41 James Bognar wrote:
> I've merged the PR for Hibernate.
>
> If necessary, I think we can just remove the
> org.apache.juneau.microservice.jetty.JettyLogger class entirely and
> just rely on the existing Jetty logging capabilities.
>
> On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
> >
> > On 2022/10/08 19:22:59 James Bognar wrote:
> > > I've merged the PR to master. Thanks!
> > >
> > > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > > >
> > > > Here is PR that bumps some jars to their current maintenance level:
> > > > https://github.com/apache/juneau/pull/62
> > > >
> > > > I got 'mvn clean verify' to build on Windows all the way through.
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > > >
> > > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > > >
> > > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > > >
> > > > > Description Resource Path Location Type
> > > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > > >
> > > > > Gary
> > > > >
> > > > >
> > > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > > >
> > > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > > >
> > > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > > change...can you try again?
> > > > > > >
> > > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > > >
> > > > > > > > Hm,
> > > > > > > >
> > > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > > For example:
> > > > > > > > >
> > > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > > >
> > > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > > Hi All,
> > > > > > > > > >
> > > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > > >
> > > > > > > > > > Gary
> > > > > > > > > >
> > > > > > > > >
> > > > > >
> > > > >
> > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@gmail.com>.
I've merged the PR for Hibernate.
If necessary, I think we can just remove the
org.apache.juneau.microservice.jetty.JettyLogger class entirely and
just rely on the existing Jetty logging capabilities.
On Sat, Oct 8, 2022 at 5:30 PM Gary D. Gregory <gg...@apache.org> wrote:
>
> Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
>
> On 2022/10/08 19:22:59 James Bognar wrote:
> > I've merged the PR to master. Thanks!
> >
> > On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> > >
> > > Here is PR that bumps some jars to their current maintenance level:
> > > https://github.com/apache/juneau/pull/62
> > >
> > > I got 'mvn clean verify' to build on Windows all the way through.
> > >
> > > Gary
> > >
> > > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > > >
> > > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > > >
> > > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > > >
> > > > Description Resource Path Location Type
> > > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > > >
> > > > Gary
> > > >
> > > >
> > > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > > >
> > > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > > >
> > > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > > change...can you try again?
> > > > > >
> > > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > > >
> > > > > > > Hm,
> > > > > > >
> > > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > > For example:
> > > > > > > >
> > > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > > >
> > > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > > Hi All,
> > > > > > > > >
> > > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > > >
> > > > > > > > > Gary
> > > > > > > > >
> > > > > > > >
> > > > >
> > > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Here is another speed bump: I do not think org.apache.juneau.microservice.jetty.JettyLogger is going to work because it subclasses org.eclipse.jetty.util.log.AbstractLogger which is not in Jetty 10.
On 2022/10/08 19:22:59 James Bognar wrote:
> I've merged the PR to master. Thanks!
>
> On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > Here is PR that bumps some jars to their current maintenance level:
> > https://github.com/apache/juneau/pull/62
> >
> > I got 'mvn clean verify' to build on Windows all the way through.
> >
> > Gary
> >
> > On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> > >
> > > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> > >
> > > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> > >
> > > Description Resource Path Location Type
> > > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> > >
> > > Gary
> > >
> > >
> > > On 2022/10/08 15:06:27 James Bognar wrote:
> > > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > > >
> > > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > > >
> > > > > Sorry, I don't have a windows machine to test. I just made another
> > > > > change...can you try again?
> > > > >
> > > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > > >
> > > > > > Hm,
> > > > > >
> > > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > > For example:
> > > > > > >
> > > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > > >
> > > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > > >
> > > > > > > > Gary
> > > > > > > >
> > > > > > >
> > > >
> > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@apache.org>.
I've merged the PR to master. Thanks!
On Sat, Oct 8, 2022 at 2:58 PM Gary D. Gregory <gg...@apache.org> wrote:
>
> Here is PR that bumps some jars to their current maintenance level:
> https://github.com/apache/juneau/pull/62
>
> I got 'mvn clean verify' to build on Windows all the way through.
>
> Gary
>
> On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
> >
> > Thanks James. I got a full build to pass from git master on Windows! Thanks.
> >
> > Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
> >
> > Description Resource Path Location Type
> > BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> > Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> > RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> > The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> > The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> > The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> > The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> > The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> > Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
> >
> > Gary
> >
> >
> > On 2022/10/08 15:06:27 James Bognar wrote:
> > > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > > Hopefully that allows you to make more progress testing Jetty 10/11.
> > >
> > > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > > >
> > > > Sorry, I don't have a windows machine to test. I just made another
> > > > change...can you try again?
> > > >
> > > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > >
> > > > > Hm,
> > > > >
> > > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > > For example:
> > > > > >
> > > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > > >
> > > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > > Hi All,
> > > > > > >
> > > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > >
> > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Here is PR that bumps some jars to their current maintenance level:
https://github.com/apache/juneau/pull/62
I got 'mvn clean verify' to build on Windows all the way through.
Gary
On 2022/10/08 16:15:57 "Gary D. Gregory" wrote:
>
> Thanks James. I got a full build to pass from git master on Windows! Thanks.
>
> Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
>
> Description Resource Path Location Type
> BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
> Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
> RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
> The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
> The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
> The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
> The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
> The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
> Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
>
> Gary
>
>
> On 2022/10/08 15:06:27 James Bognar wrote:
> > I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> > Hopefully that allows you to make more progress testing Jetty 10/11.
> >
> > On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> > >
> > > Sorry, I don't have a windows machine to test. I just made another
> > > change...can you try again?
> > >
> > > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > >
> > > > Hm,
> > > >
> > > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > > For example:
> > > > >
> > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > >
> > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > Hi All,
> > > > > >
> > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > >
> > > > > > Gary
> > > > > >
> > > > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Thanks James. I got a full build to pass from git master on Windows! Thanks.
Now it's not going to be that simple, because I now need migration guidance to resolve compile errors:
Description Resource Path Location Type
BasicRestServletJenaGroup cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 152 Java Problem
Body cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 605 Java Problem
RestMethod cannot be resolved to a type AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 313 Java Problem
The attribute _default is undefined for the annotation type Query AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 408 Java Problem
The attribute reqHeaders is undefined for the annotation type Rest AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 108 Java Problem
The import org.apache.juneau.http.annotation.Body cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 58 Java Problem
The import org.apache.juneau.rest.annotation.RestMethod cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 65 Java Problem
The import org.apache.juneau.rest.BasicRestServletJenaGroup cannot be resolved AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 63 Java Problem
Type mismatch: cannot convert from String[] to Class<? extends StaticFiles> AdminRootResources.java /http-monitor/src/main/java/com/rs/seagull/httpmonitor/admin line 111 Java Problem
Gary
On 2022/10/08 15:06:27 James Bognar wrote:
> I've upgraded to Jetty 9.4.49 and replaced the constructor used.
> Hopefully that allows you to make more progress testing Jetty 10/11.
>
> On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
> >
> > Sorry, I don't have a windows machine to test. I just made another
> > change...can you try again?
> >
> > On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> > >
> > > Hm,
> > >
> > > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> > >
> > > Gary
> > >
> > > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > > For example:
> > > >
> > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > >
> > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > Hi All,
> > > > >
> > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > >
> > > > > Gary
> > > > >
> > > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@gmail.com>.
I've upgraded to Jetty 9.4.49 and replaced the constructor used.
Hopefully that allows you to make more progress testing Jetty 10/11.
On Sat, Oct 8, 2022 at 10:37 AM James Bognar <ja...@gmail.com> wrote:
>
> Sorry, I don't have a windows machine to test. I just made another
> change...can you try again?
>
> On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > Hm,
> >
> > In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
> >
> > Gary
> >
> > On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > > For example:
> > >
> > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > at java.base/java.lang.Thread.run(Thread.java:829)
> > >
> > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > >
> > > Gary
> > >
> > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > Hi All,
> > > >
> > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > >
> > > > Gary
> > > >
> > >
Re: Jetty 10 and 11
Posted by James Bognar <ja...@gmail.com>.
Sorry, I don't have a windows machine to test. I just made another
change...can you try again?
On Sat, Oct 8, 2022 at 10:18 AM Gary D. Gregory <gg...@apache.org> wrote:
>
> Hm,
>
> In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
>
> Gary
>
> On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> > For example:
> >
> > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > at java.base/java.lang.Thread.run(Thread.java:829)
> >
> > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> >
> > Gary
> >
> > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > Hi All,
> > >
> > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > EOL version of Jetty? I did not try Jetty 11 yet.
> > >
> > > Gary
> > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Hm,
In the current version of Jetty 9.4 (9.4.49), the constructor XmlConfiguration(InputStream) deprecated. In 9.4.49 and 10 there is a constructor XmlConfiguration(Resource) that could be used instead but... a Jetty Resource cannot be built from its actual content, instead it looks like it is only useable with references to content like a URL, a Path, a String URL and a String Path, and so on. That might be a good time, before 9.0 is out, to refactor, I hope.
Gary
On 2022/10/07 14:03:46 "Gary D. Gregory" wrote:
> For example:
>
> 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> at java.base/java.lang.Thread.run(Thread.java:829)
>
> Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
>
> Gary
>
> On 2022/10/07 13:51:27 Gary Gregory wrote:
> > Hi All,
> >
> > I am migrating one of our product stacks to Java 11, so far, so good, no
> > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > EOL version of Jetty? I did not try Jetty 11 yet.
> >
> > Gary
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Yes:
>ver && mvn -version
Microsoft Windows [Version 10.0.19043.2006]
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\java\apache-maven-3.8.6
Java version: 1.8.0_345, vendor: Temurin, runtime: C:\Program Files\Eclipse Adoptium\jdk-8.0.345.1-hotspot\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I pulled the latest from git master and I now get:
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] RestClient_Logging_Test.a01_logToConsole:74 String differed at position 461.
Expect='
=== HTTP Call (outgoing) ======================================================
=== REQUEST ===
POST http://localhost/bean
---request headers---
Accept: application/json+simple
---request entity---
Content-Type: application/json+simple
---request content---
{f:1}
=== RESPONSE ===
HTTP/1.1 200
---response headers---
Content-Type: application/json
---response content---
{f:1}
=== END =======================================================================
'.
Actual='
=== HTTP Call (outgoing) ======================================================
=== REQUEST ===
POST http://localhost/bean
---request headers---
Accept: application/json+simple
---request entity---
Content-Type: application/json+simple
---request content---
{f:1}
=== RESPONSE ===
HTTP/1.1 200
---response headers---
Content-Type: application/json
---response content---
{f:1}
=== END =======================================================================
'.
[INFO]
[ERROR] Tests run: 21607, Failures: 1, Errors: 0, Skipped: 3
Gary
On 2022/10/08 13:31:28 James Bognar wrote:
> @Gary - Are you building with Windows? If so, it's probably an issue
> with a newline. I've updated the test, can you try again?
>
> On Fri, Oct 7, 2022 at 4:13 PM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > I was going to try to build Juneau with Java 11 just to see what happens but I can't get all the tests to pass on Java 8 in git master. Does the following ring a bell?
> >
> > [INFO]
> > [INFO] Results:
> > [INFO]
> > [ERROR] Failures:
> > [ERROR] RestClient_Logging_Test.a01_logToConsole:70 String differed at position 46.
> > Expect='HTTP POST http://localhost/bean, HTTP/1.1 200
> > '.
> > Actual='HTTP POST http://localhost/bean, HTTP/1.1 200
> > '.
> > [ERROR] RestClient_Logging_Test.a02_logTo:151 String did not contain expected substring.
> > Substring='WARNING: HTTP POST http://localhost/bean, HTTP/1.1 200
> > '.
> > Value='Oct 07, 2022 3:56:34 PM org.apache.juneau.rest.client.RestClient log
> > WARNING: HTTP POST http://localhost/bean, HTTP/1.1 200
> > '.
> > [INFO]
> > [ERROR] Tests run: 21607, Failures: 2, Errors: 0, Skipped: 3
> >
> > Thanks,
> > Gary
> >
> >
> > On 2022/10/07 14:59:14 "Gary D. Gregory" wrote:
> > > Right, Jetty 10 and up require Java 11, which is fine with me FWIW.
> > >
> > > Gary
> > >
> > > On 2022/10/07 14:25:38 James Bognar wrote:
> > > > I'll look into this this weekend. My concern with upgrading Jetty is
> > > > that it may not be possible without upgrading the Juneau prereq to
> > > > Java 11. I'll see what I can figure out though.
> > > >
> > > > On Fri, Oct 7, 2022 at 10:04 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > > >
> > > > > For example:
> > > > >
> > > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > > >
> > > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > > >
> > > > > Gary
> > > > >
> > > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > > Hi All,
> > > > > >
> > > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > > >
> > > > > > Gary
> > > > > >
> > > >
> > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@apache.org>.
@Gary - Are you building with Windows? If so, it's probably an issue
with a newline. I've updated the test, can you try again?
On Fri, Oct 7, 2022 at 4:13 PM Gary D. Gregory <gg...@apache.org> wrote:
>
> I was going to try to build Juneau with Java 11 just to see what happens but I can't get all the tests to pass on Java 8 in git master. Does the following ring a bell?
>
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Failures:
> [ERROR] RestClient_Logging_Test.a01_logToConsole:70 String differed at position 46.
> Expect='HTTP POST http://localhost/bean, HTTP/1.1 200
> '.
> Actual='HTTP POST http://localhost/bean, HTTP/1.1 200
> '.
> [ERROR] RestClient_Logging_Test.a02_logTo:151 String did not contain expected substring.
> Substring='WARNING: HTTP POST http://localhost/bean, HTTP/1.1 200
> '.
> Value='Oct 07, 2022 3:56:34 PM org.apache.juneau.rest.client.RestClient log
> WARNING: HTTP POST http://localhost/bean, HTTP/1.1 200
> '.
> [INFO]
> [ERROR] Tests run: 21607, Failures: 2, Errors: 0, Skipped: 3
>
> Thanks,
> Gary
>
>
> On 2022/10/07 14:59:14 "Gary D. Gregory" wrote:
> > Right, Jetty 10 and up require Java 11, which is fine with me FWIW.
> >
> > Gary
> >
> > On 2022/10/07 14:25:38 James Bognar wrote:
> > > I'll look into this this weekend. My concern with upgrading Jetty is
> > > that it may not be possible without upgrading the Juneau prereq to
> > > Java 11. I'll see what I can figure out though.
> > >
> > > On Fri, Oct 7, 2022 at 10:04 AM Gary D. Gregory <gg...@apache.org> wrote:
> > > >
> > > > For example:
> > > >
> > > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > > at java.base/java.lang.Thread.run(Thread.java:829)
> > > >
> > > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > > >
> > > > Gary
> > > >
> > > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > > Hi All,
> > > > >
> > > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > > >
> > > > > Gary
> > > > >
> > >
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
I was going to try to build Juneau with Java 11 just to see what happens but I can't get all the tests to pass on Java 8 in git master. Does the following ring a bell?
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] RestClient_Logging_Test.a01_logToConsole:70 String differed at position 46.
Expect='HTTP POST http://localhost/bean, HTTP/1.1 200
'.
Actual='HTTP POST http://localhost/bean, HTTP/1.1 200
'.
[ERROR] RestClient_Logging_Test.a02_logTo:151 String did not contain expected substring.
Substring='WARNING: HTTP POST http://localhost/bean, HTTP/1.1 200
'.
Value='Oct 07, 2022 3:56:34 PM org.apache.juneau.rest.client.RestClient log
WARNING: HTTP POST http://localhost/bean, HTTP/1.1 200
'.
[INFO]
[ERROR] Tests run: 21607, Failures: 2, Errors: 0, Skipped: 3
Thanks,
Gary
On 2022/10/07 14:59:14 "Gary D. Gregory" wrote:
> Right, Jetty 10 and up require Java 11, which is fine with me FWIW.
>
> Gary
>
> On 2022/10/07 14:25:38 James Bognar wrote:
> > I'll look into this this weekend. My concern with upgrading Jetty is
> > that it may not be possible without upgrading the Juneau prereq to
> > Java 11. I'll see what I can figure out though.
> >
> > On Fri, Oct 7, 2022 at 10:04 AM Gary D. Gregory <gg...@apache.org> wrote:
> > >
> > > For example:
> > >
> > > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > > at java.base/java.lang.Thread.run(Thread.java:829)
> > >
> > > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> > >
> > > Gary
> > >
> > > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > > Hi All,
> > > >
> > > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > > EOL version of Jetty? I did not try Jetty 11 yet.
> > > >
> > > > Gary
> > > >
> >
>
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
Right, Jetty 10 and up require Java 11, which is fine with me FWIW.
Gary
On 2022/10/07 14:25:38 James Bognar wrote:
> I'll look into this this weekend. My concern with upgrading Jetty is
> that it may not be possible without upgrading the Juneau prereq to
> Java 11. I'll see what I can figure out though.
>
> On Fri, Oct 7, 2022 at 10:04 AM Gary D. Gregory <gg...@apache.org> wrote:
> >
> > For example:
> >
> > 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> > java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> > at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> > at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> > at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> > at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> > at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> > at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> > at java.base/java.lang.Thread.run(Thread.java:829)
> >
> > Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
> >
> > Gary
> >
> > On 2022/10/07 13:51:27 Gary Gregory wrote:
> > > Hi All,
> > >
> > > I am migrating one of our product stacks to Java 11, so far, so good, no
> > > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > > EOL version of Jetty? I did not try Jetty 11 yet.
> > >
> > > Gary
> > >
>
Re: Jetty 10 and 11
Posted by James Bognar <ja...@apache.org>.
I'll look into this this weekend. My concern with upgrading Jetty is
that it may not be possible without upgrading the Juneau prereq to
Java 11. I'll see what I can figure out though.
On Fri, Oct 7, 2022 at 10:04 AM Gary D. Gregory <gg...@apache.org> wrote:
>
> For example:
>
> 2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
> java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
> at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
> at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
> at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
> at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
> at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
> at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
> at java.base/java.lang.Thread.run(Thread.java:829)
>
> Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
>
> Gary
>
> On 2022/10/07 13:51:27 Gary Gregory wrote:
> > Hi All,
> >
> > I am migrating one of our product stacks to Java 11, so far, so good, no
> > test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> > change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> > EOL version of Jetty? I did not try Jetty 11 yet.
> >
> > Gary
> >
Re: Jetty 10 and 11
Posted by "Gary D. Gregory" <gg...@apache.org>.
For example:
2022-10-07 09:42:35,328 WARN [main][org.eclipse.jetty.util.ssl.SslContextFactory.config] Trusting all certificates configured for Client@5bb3131b[provider=null,keyStore=null,trustStore=null]
java.lang.NoSuchMethodError: 'void org.eclipse.jetty.xml.XmlConfiguration.<init>(java.io.InputStream)'
at org.apache.juneau.microservice.jetty.BasicJettyServerFactory.create(BasicJettyServerFactory.java:30)
at org.apache.juneau.microservice.jetty.JettyMicroservice.createServer(JettyMicroservice.java:342)
at org.apache.juneau.microservice.jetty.JettyMicroservice.start(JettyMicroservice.java:154)
at com.rs.seagull.httpmonitor.NHttpReverseProxy.startRestMicroservice(NHttpReverseProxy.java:1197)
at com.rs.seagull.httpmonitor.NHttpReverseProxy.goLoop(NHttpReverseProxy.java:833)
at com.rs.seagull.httpmonitor.test.NHttpReverseProxyTestRule$1.lambda$0(NHttpReverseProxyTestRule.java:225)
at java.base/java.lang.Thread.run(Thread.java:829)
Obviously, this is not Juneau's fault, Jetty's changes from 9.4.49 to 10.0.12 are not binary-compatible.
Gary
On 2022/10/07 13:51:27 Gary Gregory wrote:
> Hi All,
>
> I am migrating one of our product stacks to Java 11, so far, so good, no
> test failures with Juneau 8.2.0. But I am seeing runtime failures when I
> change Jetty from 9 which is EOL to 10, maybe Juneau 9 should not use an
> EOL version of Jetty? I did not try Jetty 11 yet.
>
> Gary
>