私のネットワーク共有フォルダをWeb URLから利用できるようにする必要があります。私はディレクトリを提供するために桟橋ランナーを使用しています。jetty-runnerとネットワーク共有ディレクトリを提供
私のネットワーク共有は\\nas01.internal.local
です。このパスはファイルエクスプローラで\ copy \ deleteファイルを参照するために使用できます。ウェブURlからアクセスできるようにする必要があります。
http://localhost:8080
経由
d:\
が利用可能
java -jar jetty-runner.jar d:\
を作ることができる桟橋ランナーで
しかし、私はエラーを次取得ネットワーク共有
java -jar jetty-runner.jar \\nas01.internal.local
と同じことを行うことができない、
2016-05-18 08:18:47.530:INFO::main: Logging initialized @228ms
2016-05-18 08:18:47.561:INFO:oejr.Runner:main: Runner
java.net.MalformedURLException: no protocol: \\nas01.internal.local
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.eclipse.jetty.util.resource.Resource.newResource(Resource.java:16
2)
at org.eclipse.jetty.util.resource.Resource.newResource(Resource.java:14
6)
at org.eclipse.jetty.runner.Runner.configure(Runner.java:418)
at org.eclipse.jetty.runner.Runner.main(Runner.java:556)
Usage: java [-Djetty.home=dir] -jar jetty-runner.jar [--help|--version] [ server
opts] [[ context opts] context ...]
Server opts:
--version - display version and exit
--log file - request log filename (with optional 'yyyy
_mm_dd' wildcard
--out file - info/warn/debug log filename (with option
al 'yyyy_mm_dd' wildcard
--host name|ip - interface to listen on (default is all in
terfaces)
--port n - port to listen on (default 8080)
--stop-port n - port to listen for stop command
--stop-key n - security string for stop command (require
d if --stop-port is present)
[--jar file]*n - each tuple specifies an extra jar to be a
dded to the classloader
[--lib dir]*n - each tuple specifies an extra directory o
f jars to be added to the classloader
[--classes dir]*n - each tuple specifies an extra directory o
f classes to be added to the classloader
--stats [unsecure|realm.properties] - enable stats gathering servlet context
[--config file]*n - each tuple specifies the name of a jetty
xml config file to apply (in the order defined)
Context opts:
[[--path /path] context]*n - WAR file, web app dir or context xml file
, optionally with a context path
これは桟橋で可能ですか?
おかげで@マーク。それをローカルフォルダにマウントした後で動作します –