My apologies if this has been reported before. When I tried building the h2console.war file using the build.sh script as described in "Using the H2 Console Servlet" I got the following exception:
Downloading http://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar Exception in thread "main" java.lang.RuntimeException: Error downloading http://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar to ext/servlet-api-3.1.0.jar at org.h2.build.BuildBase.download(BuildBase.java:680) at org.h2.build.BuildBase.downloadUsingMaven(BuildBase.java:636) at org.h2.build.Build.downloadOrVerify(Build.java:405) at org.h2.build.Build.downloadOrVerify(Build.java:363) at org.h2.build.Build.download(Build.java:359) at org.h2.build.Build.compile(Build.java:263) at org.h2.build.Build.compile(Build.java:108) at org.h2.build.Build.jar(Build.java:536) at org.h2.build.Build.warConsole(Build.java:1162) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMe thodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Dele gatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.h2.build.BuildBase.invoke(BuildBase.java:273) at org.h2.build.BuildBase.runTarget(BuildBase.java:238) at org.h2.build.BuildBase.run(BuildBase.java:219) at org.h2.build.Build.main(Build.java:42) Caused by: java.io.IOException: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar at java.base/sun.net. www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) at java.base/sun.net. www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at java.base/java.net.URL.openStream(URL.java:1165) at org.h2.build.BuildBase.download(BuildBase.java:662) ... 16 more I was able to correct the problem by editing the file: h2/src/tools/org/h2/build/BuildBase.java In the downloadUsingMaven method, I changed the 'http' to 'https'. That said, I got a lot of deprecation warnings when using JDK11, so I'm not sure how long this fix is going to work. Bruce -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/83a559df1a1cafac46948e8ba1c32355190da408.camel%40gmail.com.
