先决条件
操作系统名称及版本号 (在终端执行命令以查看,Windows:winver,Linux:lsb_release -a,macOS:sw_vers)
Debian GNU/Linux 12 (bookworm)
配置信息
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
问题描述
/SoNovel-Linux_x64# ./run-linux.sh
Exception in thread "main" java.lang.IllegalArgumentException: Unable to mount FileSystem from unsupported URI: jar:file:///opt/SoNovel-Linux_x64/app.jar!/
at org.eclipse.jetty.util.resource.FileSystemPool.mount(FileSystemPool.java:136)
at org.eclipse.jetty.util.resource.ResourceFactoryInternals$CompositeResourceFactory.mountIfNeeded(ResourceFactoryInternals.java:268)
at org.eclipse.jetty.util.resource.ResourceFactoryInternals$CompositeResourceFactory.newResource(ResourceFactoryInternals.java:225)
at org.eclipse.jetty.util.resource.ResourceFactoryInternals$LifeCycle.newResource(ResourceFactoryInternals.java:171)
at org.eclipse.jetty.util.resource.ResourceFactory.newResource(ResourceFactory.java:426)
at com.pcdd.sonovel.web.WebServer.createServletContext(WebServer.java:34)
at com.pcdd.sonovel.web.WebServer.start(WebServer.java:18)
at com.pcdd.sonovel.Main.main(Main.java:56)
Caused by: java.nio.file.ProviderNotFoundException: Provider "jar" not found
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
at org.eclipse.jetty.util.resource.FileSystemPool.mount(FileSystemPool.java:117)
... 7 more
fnos x64 linux 二进制版本,运行报错,开启web服务的时候会报错。
复现步骤
[web]
# 是否开启 Web 服务 (1 是,0 否)
enabled = 1
# Web 服务端口
port = 7765
先决条件
操作系统名称及版本号 (在终端执行命令以查看,Windows:winver,Linux:lsb_release -a,macOS:sw_vers)
Debian GNU/Linux 12 (bookworm)
配置信息
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
问题描述
/SoNovel-Linux_x64# ./run-linux.sh
Exception in thread "main" java.lang.IllegalArgumentException: Unable to mount FileSystem from unsupported URI: jar:file:///opt/SoNovel-Linux_x64/app.jar!/
at org.eclipse.jetty.util.resource.FileSystemPool.mount(FileSystemPool.java:136)
at org.eclipse.jetty.util.resource.ResourceFactoryInternals$CompositeResourceFactory.mountIfNeeded(ResourceFactoryInternals.java:268)
at org.eclipse.jetty.util.resource.ResourceFactoryInternals$CompositeResourceFactory.newResource(ResourceFactoryInternals.java:225)
at org.eclipse.jetty.util.resource.ResourceFactoryInternals$LifeCycle.newResource(ResourceFactoryInternals.java:171)
at org.eclipse.jetty.util.resource.ResourceFactory.newResource(ResourceFactory.java:426)
at com.pcdd.sonovel.web.WebServer.createServletContext(WebServer.java:34)
at com.pcdd.sonovel.web.WebServer.start(WebServer.java:18)
at com.pcdd.sonovel.Main.main(Main.java:56)
Caused by: java.nio.file.ProviderNotFoundException: Provider "jar" not found
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
at org.eclipse.jetty.util.resource.FileSystemPool.mount(FileSystemPool.java:117)
... 7 more
fnos x64 linux 二进制版本,运行报错,开启web服务的时候会报错。
复现步骤