Jenkins setup:
Operating System: 64-bit Windows 10
Adoptium JDK: OpenJDK11U-jdk_x64_windows_hotspot_11.0.22_7
Cannot run the snippet, because Jenkins does not start, so I cannot access the Script Console
I’m running Jenkins directly
Not accessing Jenkins through a reverse proxy
How I installed Jenkins: Windows installer - Not launching any involved agents
Web browser: Version 122.0.6261.70 (Official Build) (64-bit)
Jenkins fails to start and generates the following Java stack trace:
2024-02-27 01:58:21.957+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
2024-02-27 01:58:22.004+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to delete dirs C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:341)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:264)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
2024-02-27 01:58:22.004+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to recreate dirs C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:266)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
2024-02-27 01:58:22.004+0000 [id=1] INFO winstone.Logger#logInternal: Jetty shutdown successfully
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins\META-INF\MANIFEST.MF
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:287)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
2024-02-27 01:58:22.004+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins\META-INF\MANIFEST.MF
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:287)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
Any suggestions? Thanks!