You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Windows 10
Java: AdoptOpenJDK (build 11.0.6+10 on 2020-01-14)
Spring Boot: 2.2.6
Tomcat: 9.0.31
Stacktrace:
java.nio.file.InvalidPathException: Illegal char <*> at index 42: c:\Temp\Projects\testt\distrib\lib\custom\*
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.io.File.toPath(File.java:2290)
at java.util.zip.ZipFile$Source.get(ZipFile.java:1222)
at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
at java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
at java.util.zip.ZipFile.<init>(ZipFile.java:246)
at java.util.zip.ZipFile.<init>(ZipFile.java:176)
at java.util.jar.JarFile.<init>(JarFile.java:346)
at java.util.jar.JarFile.<init>(JarFile.java:317)
at java.util.jar.JarFile.<init>(JarFile.java:283)
at org.springframework.boot.web.servlet.server.StaticResourceJars.isResourcesJar(StaticResourceJars.java:125)
at org.springframework.boot.web.servlet.server.StaticResourceJars.addUrlFile(StaticResourceJars.java:103)
at org.springframework.boot.web.servlet.server.StaticResourceJars.addUrl(StaticResourceJars.java:90)
at org.springframework.boot.web.servlet.server.StaticResourceJars.getUrlsFrom(StaticResourceJars.java:56)
at org.springframework.boot.web.servlet.server.StaticResourceJars.getUrls(StaticResourceJars.java:48)
at org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory.getUrlsOfJarsWithMetaInfResources(AbstractServletWebServerFactory.java:275)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.access$300(TomcatServletWebServerFactory.java:101)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory$StaticResourceConfigurer.lifecycleEvent(TomcatServletWebServerFactory.java:733)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5051)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:467)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:88)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:438)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:191)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
Under java 8 a different exception is thrown from JarFile constructor so that the exception goes into catch block:
philwebb
changed the title
Spring Boot fails with a wildcard in the classpath under java 11
Classpath wildcards cannot be used with Java 11
May 5, 2020
philwebb
changed the title
Classpath wildcards cannot be used with Java 11
Classpath wildcards cannot be used with Java 11 or above
May 5, 2020
OS: Windows 10
Java: AdoptOpenJDK (build 11.0.6+10 on 2020-01-14)
Spring Boot: 2.2.6
Tomcat: 9.0.31
Stacktrace:
Under java 8 a different exception is thrown from JarFile constructor so that the exception goes into catch block:
Thanks
The text was updated successfully, but these errors were encountered: