Skip to content

[问题反馈] Linux x64 发行版开启 Web 服务,运行报错:Provider "jar" not found #281

@yanquan2020

Description

@yanquan2020

先决条件

  • 我已下载最新版本测试,问题依然存在
  • 我已认真查阅 使用说明 以及 常见问题
  • 我已确保 已有问题 中无类似 issue,否则请在已有的 issue 内进行讨论
  • 我已开启&关闭所有代理软件后测试,问题依然存在
  • 我已填写一个简洁明了的标题,以便他人快速检索

操作系统名称及版本号 (在终端执行命令以查看,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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions