首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在yaml上配置野蝇群拖曳分数

在yaml上配置野蝇群拖曳分数
EN

Stack Overflow用户
提问于 2020-01-30 15:34:01
回答 1查看 681关注 0票数 0

未能配置刺尾项目-defaults.yaml基于现有(jboss)standalone.xml

pom.xml (使用Thorntail 2.4.0 using)

我正在尝试将应用程序从java 8升级到11 --目前应用程序使用的是JBoss10。我已经决定从standalone.xml转到项目--default.yaml,因为这将使jboss /野蝇升级到基于thorntail 2.4.0的最新版本。

协助转换

代码语言:javascript
复制
        <subsystem xmlns="urn:jboss:domain:undertow:8.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="sdom">
        <buffer-cache name="default"/>
        <server name="default-server">
            <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
            <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
            <host name="default-host" alias="localhost">
                <location name="/prop" handler="properties"/>
                <location name="/" handler="welcome-info"/>
                <http-invoker security-realm="ApplicationRealm"/>
            </host>
        </server>
        <servlet-container name="default">
            <jsp-config/>
            <websockets/>
        </servlet-container>
        <handlers>
            <file name="welcome-info" path="${jboss.home.dir}/welcome-info"  directory-listing="false"/>
            <file name="properties" path="${jboss.home.dir}/" directory-listing="true"/>
        </handlers>
    </subsystem>

对于yaml项目-默认-以下是我所做的。

代码语言:javascript
复制
swarm:
  undertow:
    handler-configuration:
      files:
        default:
          path: "${jboss.home.dir}/"
          directory-listing: true
    servers:
      default:
        hosts:
          default:
            alias: localhost
            locations:
              default:
                handler: properties
            http-invoker-setting:
              security-realm: ApplicationRealm
        https-listeners:
          default:
            enable-http2: true
            security-realm: ApplicationRealm
            socket-binding: https
        http-listeners:
          default:
            enable-http2: true
            redirect-socket: https
            socket-binding: http
    servlet-containers:
      default:
        default-buffer-cache: default
    default-virtual-host: default-host
    default-servlet-container: default
    default-server: default-server

然而,我得到了下面的错误。

代码语言:javascript
复制
ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default/host=default/location=default' are not available:
    org.wildfly.extension.undertow.handler.properties; Possible registration points for this capability: 
        /subsystem=undertow/configuration=handler/file=*
        /subsystem=undertow/configuration=handler/reverse-proxy=*
,121 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
EN

回答 1

Stack Overflow用户

发布于 2020-01-31 10:10:15

这是对我有用的配置。

代码语言:javascript
复制
swarm:
  undertow:
    handler-configuration:
      files:
        properties:
          path: "${jboss.home.dir}/"
          directory-listing: true
        welcome-content:
          path: "${jboss.home.dir}/welcome-content"
          directory-listing: false
    servers:
      default-server:
        hosts:
          default-host:
            alias: localhost
            locations:
              /prop:
                handler: properties
              /:
                handler: welcome-content
            http-invoker-setting:
              security-realm: ApplicationRealm
        https-listeners:
          default-https:
            enable-http2: true
            security-realm: ApplicationRealm
            socket-binding: https
        http-listeners:
          default:
            enable-http2: true
            redirect-socket: https
            socket-binding: http
    servlet-containers:
      default:
        default-buffer-cache: default
    default-virtual-host: default-host
    default-servlet-container: default
    default-server: default-server
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59989429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档