extraClasspath-在Jetty 9.4.20.v20190813中不起作用

问题描述 投票:0回答:1
在上下文xml中的

Setting extraClasspath在Jetty 9.4.20.v20190813中不起作用。找不到404-访问REST调用时出现问题。没有说明错误的码头日志。

这是我如何为mywebapp使用上下文xml

<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/mywebapp/</Set>
  <Set name="war"><Property name="jetty.webapps" default="."/>/mywebapp.war</Set>
  <Call name="setInitParameter">
    <Arg>org.eclipse.jetty.jsp.precompiled</Arg>
    <Arg>true</Arg>
  </Call>
  <Set name="virtualHosts">
    <Array type="java.lang.String">
      <Item>@sslConnector</Item>
      <Item>@httpConnector</Item>
    </Array>
  </Set>
  <Set name="extraClasspath">
    ../myJar.jar
  </Set>
</Configure>

注意:以前,我们使用的是Jetty 9.4.9.v20180320,上面的设置工作正常。

也,我不确定,因为这个问题是由于extraClasspath

任何帮助将不胜感激!

jetty classloader jetty-9
1个回答
0
投票

[好吧,找不到404是因为我们之前已配置为在多个连接器(上下文xml中的VirtualHosts)上公开mywebapp,但是在Jetty升级到9.4.20之后并没有对其进行重新配置。我已经重新配置,看来工作正常。

© www.soinside.com 2019 - 2024. All rights reserved.