一旦我将KeyClope适配器应用到我的Jetty_基座上,Jetty 9.3和9.4就无法启动
我正在按照基本步骤使用KeyClope jetty适配器(经过9.3和9.4测试)为我的应用程序添加安全性,但我遇到了一个错误。问题在于keydepot适配器,因为我的jetty服务器从另一个jetty_基地(没有keydepot适配器的基地)启动时没有问题 Tomas@DESIGNMINGW64${JETTY_HOME}/JETTY_base java-jar../start.jar--create startd--add to start=keydove Tomas@DESIGNMINGW64${JETTY_HOME}/JETTY_基地 $java-jar…/start.jar一旦我将KeyClope适配器应用到我的Jetty_基座上,Jetty 9.3和9.4就无法启动,jetty,keycloak,Jetty,Keycloak,我正在按照基本步骤使用KeyClope jetty适配器(经过9.3和9.4测试)为我的应用程序添加安全性,但我遇到了一个错误。问题在于keydepot适配器,因为我的jetty服务器从另一个jetty_基地(没有keydepot适配器的基地)启动时没有问题 Tomas@DESIGNMINGW64${JETTY_HOME}/JETTY_base java-jar../start.jar--create startd--add to start=keydove Tomas@DESIGNMINGW6
java.nio.file.InvalidPathException:索引6处的非法字符:~http:\www.apache.org\licenses
位于sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
位于sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
位于sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
位于sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
位于sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
位于java.io.File.toPath(File.java:2234)
位于org.eclipse.jetty.start.PathMatchers.asPath(PathMatchers.java:73)
位于org.eclipse.jetty.start.PathMatchers.getSearchRoot(PathMatchers.java:191)
位于org.eclipse.jetty.start.PathMatchers.isAbsolute(PathMatchers.java:221)
位于org.eclipse.jetty.start.BaseHome.getpath(BaseHome.java:356)
位于org.eclipse.jetty.start.StartArgs.expandModules(StartArgs.java:485)
位于org.eclipse.jetty.start.Main.processCommandLine(Main.java:333)
位于org.eclipse.jetty.start.Main.Main(Main.java:75)
用法:java-jar start.jar[options][properties][configs]
java-jar start.jar——帮助#获取更多信息
您的keydape.mod
有打字错误和/或语法错误
它似乎正在搜索一个名为
http:\www.apache.org\licenses
的文件,该文件显然在Windows文件系统上无效。这是KeyClope网站上Jetty适配器附带的KeyClope.mod。查看使用#和使用XML注释符号的注释
lib/keydape/*.jar
是的,我只是在解压并尝试使用KeyClope网站上的适配器。不过你给了我一个很好的暗示。我查看了适配器的文件,找到了keydape.mod,我看到一些天才决定在该文件中添加一些XML注释。他们放置了#注释行和xml注释行。不是,我真的很担心这件软件的编码质量#keydove并用它来保护我的应用程序。为什么他们不直接使用
[license]
部分,这已经是.mod
语法的一部分了?
INFO: server initialised (transitively) in {jetty.base}\start.ini
INFO: keycloak initialised in ${jetty.base}\start.ini
INFO: Base directory was modified
java.nio.file.InvalidPathException: Illegal char <:> at index 6: ~ http:\www.apache.org\licenses
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:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.io.File.toPath(File.java:2234)
at org.eclipse.jetty.start.PathMatchers.asPath(PathMatchers.java:73)
at org.eclipse.jetty.start.PathMatchers.getSearchRoot(PathMatchers.java:191)
at org.eclipse.jetty.start.PathMatchers.isAbsolute(PathMatchers.java:221)
at org.eclipse.jetty.start.BaseHome.getPaths(BaseHome.java:356)
at org.eclipse.jetty.start.StartArgs.expandModules(StartArgs.java:485)
at org.eclipse.jetty.start.Main.processCommandLine(Main.java:333)
at org.eclipse.jetty.start.Main.main(Main.java:75)
Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
#
# Keycloak Jetty Adapter
#
[depend]
server
security
[lib]
<!--
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
~ and other contributors as indicated by the @author tags.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
lib/keycloak/*.jar