Jboss - 为什么我找不到 undertow

问题描述 投票:0回答:1

Servlet 应用程序已启动并在 jboss Web 服务器中运行,但我在日志中收到以下错误,但应用程序没有问题,并且在部署文件夹中找到了 war,但显示为未找到。

/opt/eap/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
[0m[31m19:17:06,974 ERROR [org.jboss.as.controller.management-operation] (pool-1-thread-2) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
    ("deployment" => "myapp.war"),
    ("subsystem" => "undertow"),
    ("servlet" => "myapp")
]) - failure description: "WFLYCTL0216: Management resource '[(\"deployment\" => \"myapp.war\")]' not found"
[0m[31m19:17:07,104 ERROR [org.jboss.as.controller.management-operation] (pool-1-thread-2) WFLYCTL0013: Operation ("read-attribute") failed - address: ([("subsystem" => "transactions")]) - failure description: "WFLYCTL0216: Management resource '[(\"subsystem\" => \"transactions\")]' not found"
[0m[31m19:17:07,186 ERROR [org.jboss.as.controller.management-operation] (pool-1-thread-2) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
    ("deployment" => "myapp.war"),
    ("subsystem" => "undertow")
]) - failure description: "WFLYCTL0216: Management resource '[(\"deployment\" => \"myapp.war\")]' not found"
[0m[31m19:17:07,193 ERROR [org.jboss.as.controller.management-operation] (pool-1-thread-2) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
    ("subsystem" => "undertow"),
    ("server" => "default-server"),
    ("http-listener" => "default")
]) - failure description: "WFLYCTL0216: Management resource '[(\"subsystem\" => \"undertow\")]' not found"

这是独立xml中的子系统配置

<subsystem xmlns="urn:jboss:domain:undertow:12.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}">
    <buffer-cache name="default"/>
    <server name="default-server">
        <http-listener name="default" allow-unescaped-characters-in-url="true" socket-binding="http" redirect-socket="https" proxy-address-forwarding="true" enable-http2="true"/>
        <https-listener name="https" allow-unescaped-characters-in-url="true" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
        <host name="default-host" alias="localhost">
            <location name="/" handler="welcome-content"/>
            <http-invoker security-realm="ApplicationRealm"/>
            <filter-ref name="myapp-redirect" predicate="path('/')" />
            <filter-ref name="X-Frame-Options"/>
            <filter-ref name="samesite-cookie"/>
        </host>
    </server>
    <servlet-container name="default">
    <session-cookie http-only="true" secure="true" />
        <jsp-config/>
        <websockets/>
    </servlet-container>
    <handlers>
        <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
    </handlers>
    <filters>
        <rewrite name="myapp-redirect" redirect="true" target="${myappRedirectUrl}" />
        <response-header name="X-Frame-Options" header-name="X-Frame-Options" header-value="SAMEORIGIN"/>
        <expression-filter name="samesite-cookie" expression="samesite-cookie(mode=lax)"/>
    </filters> 
</subsystem>

如有任何帮助,我们将不胜感激。

谢谢,
哈利

java jboss wildfly jboss7.x jboss-eap-7
1个回答
0
投票

Java 8向接口引入了默认方法(也称为防御者方法或虚拟扩展方法)的概念。默认方法允许开发人员向接口添加新方法,而不会破坏现有的实现。引入此功能主要是为了允许接口(例如 java.util.Collection API)的发展,而不强制所有实现类立即适应新方法。

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