AW: Quickstart Problems
Dear Maxim, thank you. I tested 9.15.0-SNAPSHOT and it works like charm (Start.java and Jetty Version). Non errors no complains. (Http and Https). Best Janko -Ursprüngliche Nachricht- Von: Maxim Solodovnik Gesendet: Samstag, 26. August 2023 09:01 An: users@wicket.apache.org Betreff: Re: Quickstart Problems On Sat, 26 Aug 2023 at 01:12, Dr. Janko Jochimsen wrote: > > Hi Maxim, > > your response is great. > > I am a little bit lost with installing this quickstart (very much my fault as > I am using maven 99% within eclipse). > No problem at all :) The code is commited and fresh SNAPSHOT should be available via maven :) So if you have SNAPSHOTS enabled for https://repository.apache.org you can just use it :) Select "9.15.0-SNAPSHOT" at this page https://wicket.apache.org/start/quickstart.html Fix for 10.0 is here: https://github.com/apache/wicket/pull/605 > I cloned the git repro and tried to start building in the main > directory as well as in the quickstart dir. Both worked for a while > and downloaded but then I got a BUILD FAILURE Could not find goal > 'create' in plugin > org.apache.maven.plugins:maven-archetype-plugin:3.2.1 > I know that is my problem and has probably nothing to do with wicket, however > I am stuck somehow... The steps should be: 1) git clone g...@github.com:apache/wicket.git 2) cd wicket 3) mvn clean install [-DskipTests] (you can skip tests to speed up the build :))) > > Best > > Janko > > > -Ursprüngliche Nachricht- > Von: Maxim Solodovnik > Gesendet: Freitag, 25. August 2023 18:40 > Cc: users@wicket.apache.org > Betreff: Re: Quickstart Problems > > Can you please try to use quickstart from this branch: > https://github.com/apache/wicket/tree/quickstart-fix ? > (9.15.0-SNAPSHOT so far :))) > > On Fri, 25 Aug 2023 at 23:34, Maxim Solodovnik wrote: > > > > On Fri, 25 Aug 2023 at 22:20, Dr. Janko Jochimsen > > wrote: > > > > > > Hi, > > > > > > I am new to Wicket but have some experience with Java and Tapestry. > > > Installing the quickstarts I have run into some problems that make me > > > wonder how many people are starting with this platform as of 2023? > > > > > > First the facts: > > > I installed the default quickstart 9.14.0 from the > > > https://wicket.apache.org/start/quickstart.html as well as the 10.0.0.M1 > > > directly via eclipse both into a completely fresh eclipse Version: > > > 2023-06 (4.28.0) running under Java 17.0.8.7 from Openlogic. In both > > > versions I have got problem 1. and 2. Problem 3. is exclusive on > > > 10.0.0-M1 but this is due to the enforcement of Java 17 in Version 10. > > > > > > Now the problems: > > > 1.) There is a simple problem with the keystore > > > > > > In Line 46 of the Start.java the keystore (keystore.p12) is supposed to > > > be read. However in the path "\src\test\resources" you will find only a > > > file keystore (without the .p12 suffix). That can not work and therefore > > > the switch to https breaks if that file is not renamed. After renaming > > > the keystore file it worked and I can change to https (at least in 9.14.0 > > > under Java 11. > > > > > > 2.) > > > In the path "\src\test\jetty" are four xml definition file how all > > > get a > > > > > > Referenced file contains errors > > > (http://www.eclipse.org/jetty/configure_9_0.dtd). > > > > > > error. > > > > > > I didn't managed to switch this off but it seems to be irrelevant > > > at least for the development system > > > > According to > > https://eclipse.dev/jetty/documentation/jetty-9/index.html#jetty-web > > -x > > ml-config > > > > correct URL is http://www.eclipse.org/jetty/configure_9_3.dtd > > > > I'll update it :) > > > > > > > > > > > 3.) > > > > > > It looks as if the usage of org.eclipse.jetty.util.ssl.SslContextFactory > > > is outdated and for Java 17 broken. > > > > > > a.) > > > In Line 58 of the Start.java a SslContextFactory is created by this > > > command: > > > > > > SslContextFactory sslContextFactory = new SslContextFactory(); > > > > > > This call is deprecated in Java 11 and causes an error in Java 17. It > > > should read: > > > > > > SslContextFactory sslContextFactory = new > > > SslContextFactory.Server(); > > > > > > > > > b.) > > > > > > A little bit more complicated is the problem in line 64 ff > > > > > > It states: > > > ServerConnector https = new ServerConnector(server, new > > > SslConnectionFactory( sslContextFactory, "http/1.1"), new > > > HttpConnectionFactory(https_config)); > > > > > > While this is legal in Java 11 but not in Java 17. With 17 you > > > get a > > > > > > The constructor SslConnectionFactory(SslContextFactory, String) is > > > undefined > > > > > > error. > > > > > > You can kind of work around it by making an explicit cast > > > > > > ServerConnector https = new ServerConnector(server, new > > > SslConnectionFactory( > > > (org.eclipse.jetty.util.ssl.SslContextFactory.Server) > > > sslContextFactory, "http/1.1"), new > > > HttpConn
Re: Quickstart Problems
On Sat, 26 Aug 2023 at 01:12, Dr. Janko Jochimsen wrote: > > Hi Maxim, > > your response is great. > > I am a little bit lost with installing this quickstart (very much my fault as > I am using maven 99% within eclipse). > No problem at all :) The code is commited and fresh SNAPSHOT should be available via maven :) So if you have SNAPSHOTS enabled for https://repository.apache.org you can just use it :) Select "9.15.0-SNAPSHOT" at this page https://wicket.apache.org/start/quickstart.html Fix for 10.0 is here: https://github.com/apache/wicket/pull/605 > I cloned the git repro and tried to start building in the main directory as > well as in the quickstart dir. Both worked for a while and downloaded but > then I got a BUILD FAILURE Could not find goal 'create' in plugin > org.apache.maven.plugins:maven-archetype-plugin:3.2.1 > I know that is my problem and has probably nothing to do with wicket, however > I am stuck somehow... The steps should be: 1) git clone g...@github.com:apache/wicket.git 2) cd wicket 3) mvn clean install [-DskipTests] (you can skip tests to speed up the build :))) > > Best > > Janko > > > -Ursprüngliche Nachricht- > Von: Maxim Solodovnik > Gesendet: Freitag, 25. August 2023 18:40 > Cc: users@wicket.apache.org > Betreff: Re: Quickstart Problems > > Can you please try to use quickstart from this branch: > https://github.com/apache/wicket/tree/quickstart-fix ? > (9.15.0-SNAPSHOT so far :))) > > On Fri, 25 Aug 2023 at 23:34, Maxim Solodovnik wrote: > > > > On Fri, 25 Aug 2023 at 22:20, Dr. Janko Jochimsen > > wrote: > > > > > > Hi, > > > > > > I am new to Wicket but have some experience with Java and Tapestry. > > > Installing the quickstarts I have run into some problems that make me > > > wonder how many people are starting with this platform as of 2023? > > > > > > First the facts: > > > I installed the default quickstart 9.14.0 from the > > > https://wicket.apache.org/start/quickstart.html as well as the 10.0.0.M1 > > > directly via eclipse both into a completely fresh eclipse Version: > > > 2023-06 (4.28.0) running under Java 17.0.8.7 from Openlogic. In both > > > versions I have got problem 1. and 2. Problem 3. is exclusive on > > > 10.0.0-M1 but this is due to the enforcement of Java 17 in Version 10. > > > > > > Now the problems: > > > 1.) There is a simple problem with the keystore > > > > > > In Line 46 of the Start.java the keystore (keystore.p12) is supposed to > > > be read. However in the path "\src\test\resources" you will find only a > > > file keystore (without the .p12 suffix). That can not work and therefore > > > the switch to https breaks if that file is not renamed. After renaming > > > the keystore file it worked and I can change to https (at least in 9.14.0 > > > under Java 11. > > > > > > 2.) > > > In the path "\src\test\jetty" are four xml definition file how all > > > get a > > > > > > Referenced file contains errors > > > (http://www.eclipse.org/jetty/configure_9_0.dtd). > > > > > > error. > > > > > > I didn't managed to switch this off but it seems to be irrelevant at > > > least for the development system > > > > According to > > https://eclipse.dev/jetty/documentation/jetty-9/index.html#jetty-web-x > > ml-config > > > > correct URL is http://www.eclipse.org/jetty/configure_9_3.dtd > > > > I'll update it :) > > > > > > > > > > > 3.) > > > > > > It looks as if the usage of org.eclipse.jetty.util.ssl.SslContextFactory > > > is outdated and for Java 17 broken. > > > > > > a.) > > > In Line 58 of the Start.java a SslContextFactory is created by this > > > command: > > > > > > SslContextFactory sslContextFactory = new SslContextFactory(); > > > > > > This call is deprecated in Java 11 and causes an error in Java 17. It > > > should read: > > > > > > SslContextFactory sslContextFactory = new > > > SslContextFactory.Server(); > > > > > > > > > b.) > > > > > > A little bit more complicated is the problem in line 64 ff > > > > > > It states: > > > ServerConnector https = new ServerConnector(server, new > > > SslConnectionFactory( sslContextFactory, "http/1.1"), new > > > HttpConnectionFactory(https_config)); > > > > > > While this is legal in Java 11 but not in Java 17. With 17 you get > > > a > > > > > > The constructor SslConnectionFactory(SslContextFactory, String) is > > > undefined > > > > > > error. > > > > > > You can kind of work around it by making an explicit cast > > > > > > ServerConnector https = new ServerConnector(server, new > > > SslConnectionFactory( > > > (org.eclipse.jetty.util.ssl.SslContextFactory.Server) > > > sslContextFactory, "http/1.1"), new > > > HttpConnectionFactory(https_config)); > > > > > > That works for the http side but it will break if you change to https > > > with the following error. > > > > > > [qtp2009787198-27] WARN org.eclipse.jetty.server.HttpChannel - > > > handleException / org.eclipse.jetty.http.BadMessageException: 400: > > > Invalid SNI > > > > > > > > > I understand that