apiman / apiman-docker

Contains docker related assets for apiman.
Apache License 2.0
16 stars 22 forks source link

Failed to publish API. #81

Closed KwanchaiJc closed 2 years ago

KwanchaiJc commented 2 years ago

Hi everyone, i found this error via apimanui when i publish new api. What i do wrong? apiman.log

Info

image image image image

apiman.properties

# Remote maven repositories to use when looking for plugins.  Comma separated
# list of URLs.
apiman.plugins.repositories=https://repo1.maven.org/maven2/,http://repository.jboss.org/nexus/content/groups/public/
apiman-manager.plugins.registries=https://cdn.jsdelivr.net/gh/apiman/apiman-plugin-registry@master/registry.json

# Apiman Manager logging. standard, json or a FQDN implementing IApimanLogger
apiman-manager.config.logger=standard

# Apiman Manager secret key for data encryption
#apiman.encrypter.type=io.apiman.common.util.crypt.AesDataEncrypter
#apiman.encrypter.secretKey=

# ---------------------------------------------------------------------
# The datasource for all Apiman Gateway components (JDBC)
# ---------------------------------------------------------------------
apiman-gateway.jdbc.jndi-location=java:comp/env/jdbc/datasources/apiman-gateway

# ---------------------------------------------------------------------
# The following are settings for using elasticsearch for various
# apiman components.
# ---------------------------------------------------------------------
#apiman.es.client.type=es
#apiman.es.protocol=https
#apiman.es.initialize=true
#apiman.es.host=192.168.100.105
#apiman.es.port=9200
#apiman.es.username=elastic
#apiman.es.password=7WOY8G8DZZTd9ma2Xner
#apiman.es.timeout=10000
#apiman.es.pollingTime=60
#apiman.es.keystore.path=/etc/elasticsearch
#apiman.es.keystore.password=P@ssw0rd
#apiman.es.truststore.path=/etc/elasticsearch
#apiman.es.truststore.password=P@ssw0rd
#apiman.es.allowSelfSigned=true
#apiman.es.allowAnyHost=true

# ---------------------------------------------------------------------
# Some hibernate settings only useful when JPA is the storage.type.
# ---------------------------------------------------------------------
apiman.hibernate.connection.datasource=java:comp/env/jdbc/datasources/apiman-manager
apiman.hibernate.dialect=io.apiman.manager.api.jpa.ApimanMySQL5Dialect
apiman.hibernate.hbm2ddl.auto=validate

# How the API Manager UI authenticates to the API Manager REST services
apiman-manager-ui.api.authentication.type=authToken
apiman-manager-ui.api.authentication.token.generator=io.apiman.manager.ui.server.auth.AuthTokenGenerator

# Set cross origin for the manager; *=any, comma separated names
apiman-manager-ui.allowed-cors-origins=*

# Security context settings.
apiman-manager.security-context.type=default

# Set the option to only allow Admins to create orgs to (false)
apiman-manager.config.features.org-create-admin-only=false
apiman-manager-ui.org-create-admin-only=false

# Set the option to true if the response of the manager rest api should contain stacktraces
apiman-manager.config.features.rest-response-should-contain-stacktraces=false

# API Manager storage settings.
apiman-manager.storage.type=jpa
apiman-manager.storage.jpa.initialize=true

#apiman-manager.storage.type=es
#apiman-manager.storage.es.client.type=${apiman.es.client.type}
#apiman-manager.storage.es.client.protocol=${apiman.es.protocol}
#apiman-manager.storage.es.client.host=${apiman.es.host}
#apiman-manager.storage.es.client.port=${apiman.es.port}
#apiman-manager.storage.es.client.username=${apiman.es.username}
#apiman-manager.storage.es.client.password=${apiman.es.password}
#apiman-manager.storage.es.client.timeout=${apiman.es.timeout}
#apiman-manager.storage.es.client.pollingTime=${apiman.es.pollingTime}
#apiman-manager.storage.es.client.initialize=${apiman.es.initialize}
#apiman-manager.storage.es.client.keystore.path=${apiman.es.keystore.path}
#apiman-manager.storage.es.client.keystore.password=${apiman.es.keystore.password}
#apiman-manager.storage.es.client.truststore.path=${apiman.es.truststore.path}
#apiman-manager.storage.es.client.truststore.password=${apiman.es.truststore.password}
#apiman-manager.storage.es.client.allowSelfSigned=${apiman.es.allowSelfSigned}
#apiman-manager.storage.es.client.allowAnyHost=${apiman.es.allowAnyHost}

# API Manager metrics settings.
apiman-manager.metrics.type=io.apiman.manager.api.jdbc.JdbcMetricsAccessor
apiman-manager.metrics.datasource.jndi-location=${apiman-gateway.jdbc.jndi-location}

#apiman-manager.metrics.type=es
#apiman-manager.metrics.es.client.type=${apiman.es.client.type}
#apiman-manager.metrics.es.client.protocol=${apiman.es.protocol}
#apiman-manager.metrics.es.client.host=${apiman.es.host}
#apiman-manager.metrics.es.client.port=${apiman.es.port}
#apiman-manager.metrics.es.client.username=${apiman.es.username}
#apiman-manager.metrics.es.client.password=${apiman.es.password}
#apiman-manager.metrics.es.client.timeout=${apiman.es.timeout}
#apiman-manager.metrics.es.client.pollingTime=${apiman.es.pollingTime}
#apiman-manager.metrics.es.client.keystore.path=${apiman.es.keystore.path}
#apiman-manager.metrics.es.client.keystore.password=${apiman.es.keystore.password}
#apiman-manager.metrics.es.client.truststore.path=${apiman.es.truststore.path}
#apiman-manager.metrics.es.client.truststore.password=${apiman.es.truststore.password}
#apiman-manager.metrics.es.client.allowSelfSigned=$eapiman.es.allowSelfSigned}
#apiman-manager.metrics.es.client.allowAnyHost=${apiman.es.allowAnyHost}

# API Manager API Catalog
apiman-manager.api-catalog.type=io.apiman.manager.api.core.catalog.JsonApiCatalog
apiman-manager.api-catalog.catalog-url=https://cdn.jsdelivr.net/gh/apiman/apiman-api-catalog@master/catalog.json

# API Gateway components
apiman-gateway.plugin-registry=io.apiman.gateway.engine.impl.DefaultPluginRegistry
apiman-gateway.plugin-registry.pluginsDir=${catalina.home}/data/apiman/plugins
apiman-gateway.plugin-registry.pluginRepositories=${apiman.plugins.repositories}
apiman-gateway.connector-factory=io.apiman.gateway.platforms.servlet.connectors.HttpConnectorFactory
apiman-gateway.policy-factory=io.apiman.gateway.engine.policy.PolicyFactoryImpl
apiman-gateway.policy-factory.reloadSnapshots=false
apiman-gateway.logger-factory=io.apiman.common.logging.impl.NoOpLoggerFactory
apiman-gateway.components.IPolicyFailureFactoryComponent=io.apiman.gateway.platforms.servlet.PolicyFailureFactoryComponent
apiman-gateway.components.IBufferFactoryComponent=io.apiman.gateway.engine.impl.ByteBufferFactoryComponent

# Gateway error writer
# A "trace" version of the error writer - comment out/remove this to suppress stack traces
# in the JSON/XML payload returned by the gateway when an error occurs.
apiman-gateway.writers.error=io.apiman.gateway.engine.impl.TracePolicyErrorWriter

# ---------------------------------------------------------------------
# Connector factory options
# - timeouts are in seconds
# ---------------------------------------------------------------------
apiman-gateway.connector-factory.http.timeouts.read=30
apiman-gateway.connector-factory.http.timeouts.write=30
apiman-gateway.connector-factory.http.timeouts.connect=10
apiman-gateway.connector-factory.http.followRedirects=true

# ---------------------------------------------------------------------
# Metrics Settings
# ---------------------------------------------------------------------

apiman-gateway.metrics=io.apiman.gateway.engine.jdbc.JdbcMetrics
apiman-gateway.metrics.datasource.jndi-location=${apiman-gateway.jdbc.jndi-location}

#apiman-gateway.metrics=io.apiman.gateway.engine.es.EsMetrics
#apiman-gateway.metrics.client.type=es
#apiman-gateway.metrics.client.protocol=${apiman.es.protocol}
#apiman-gateway.metrics.client.host=${apiman.es.host}
#apiman-gateway.metrics.client.port=${apiman.es.port}
#apiman-gateway.metrics.client.initialize=${apiman.es.initialize}
#apiman-gateway.metrics.client.username=${apiman.es.username}
#apiman-gateway.metrics.client.password=${apiman.es.password}
#apiman-gateway.metrics.client.timeout=${apiman.es.timeout}
#apiman-gateway.metrics.es.client.pollingTime=${apiman.es.pollingTime}
#apiman-gateway.metrics.client.keystore.path=${apiman.es.keystore.path}
#apiman-gateway.metrics.client.keystore.password=${apiman.es.keystore.password}
#apiman-gateway.metrics.client.truststore.path=${apiman.es.truststore.path}
#apiman-gateway.metrics.client.truststore.password=${apiman.es.truststore.password}
#apiman-gateway.metrics.client.allowSelfSigned=${apiman.es.allowSelfSigned}
#apiman-gateway.metrics.client.allowAnyHost=${apiman.es.allowAnyHost}

# ---------------------------------------------------------------------
# SSL/TLS settings for the gateway connector(s).
# ---------------------------------------------------------------------

# Enable devMode for HTTPS connections (gateway trusts any certificate).
# This should *NOT* be used in production mode. *Use with great care.*
apiman-gateway.connector-factory.tls.devMode=true

# Trust store contains certificate(s) trusted by gateway.
#apiman-gateway.connector-factory.tls.trustStore=<PATH_TO_TRUST_STORE>
#apiman-gateway.connector-factory.tls.trustStorePassword=<PASSWORD_IF_ANY>

# Key store contains gateway's keys (including private components: keep it safe).
#apiman-gateway.connector-factory.tls.keyStore=<PATH_TO_KEY_STORE>
#apiman-gateway.connector-factory.tls.keyStorePassword=<PASSWORD_IF_ANY> # Password on key store as a whole
#apiman-gateway.connector-factory.tls.keyPassword=<PASSWORD_IF_ANY> # Password on specific key(s)
# By default all keys can be used (will try all). If alias list provided, will only attempt to use listed keys.
#apiman-gateway.connector-factory.tls.keyAliases=<COMMA_SEPARATED_LIST>

# Allowed TLS/SSL protocols and ciphers suites as CSV. Availability will vary depending on your JVM impl.
# Uses JVM defaults depending if not explicitly provided.
# See: https://docs.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html
# You may wish to consider global JVM settings by modifying java.security
#apiman-gateway.connector-factory.tls.allowedProtocols=TLSv1.2\,TLSv1.1
#apiman-gateway.connector-factory.tls.disallowedProtocols=SSLv1\,SSLv2
#apiman-gateway.connector-factory.tls.allowedCiphers=TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA\,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
#apiman-gateway.connector-factory.tls.disallowedCiphers=RC4

# Whether certificate host checks should be bypassed. *Use with great care.*
#apiman-gateway.connector-factory.tls.allowAnyHost=false

# Whether self-signed certificates should be automatically trusted. *Use with great care.*
#apiman-gateway.connector-factory.tls.allowSelfSigned=false

# ---------------------------------------------------------------------
# Registry Settings
# ---------------------------------------------------------------------

apiman-gateway.registry=io.apiman.gateway.engine.jdbc.PollCachingJdbcRegistry
apiman-gateway.registry.datasource.jndi-location=${apiman-gateway.jdbc.jndi-location}
apiman-gateway.registry.cache-polling-interval=15

apiman-gateway.initializers=jdbc
apiman-gateway.initializers.jdbc=io.apiman.gateway.engine.jdbc.JdbcInitializer
apiman-gateway.initializers.jdbc.datasource.jndi-location=${apiman-gateway.jdbc.jndi-location}
apiman-gateway.initializers.jdbc.datasource.type=mysql

#apiman-gateway.registry=io.apiman.gateway.engine.es.PollCachingEsRegistry
#apiman-gateway.registry.client.type=${apiman.es.client.type}
#apiman-gateway.registry.client.protocol=${apiman.es.protocol}
#apiman-gateway.registry.client.host=${apiman.es.host}
#apiman-gateway.registry.client.port=${apiman.es.port}
#apiman-gateway.registry.client.initialize=${apiman.es.initialize}
#apiman-gateway.registry.client.username=${apiman.es.username}
#apiman-gateway.registry.client.password=${apiman.es.password}
#apiman-gateway.registry.client.timeout=${apiman.es.timeout}
#apiman-gateway.registry.client.pollingTime=${apiman.es.pollingTime}
#apiman-gateway.registry.client.keystore.path=${apiman.es.keystore.path}
#apiman-gateway.registry.client.keystore.password=${apiman.es.keystore.password}
#apiman-gateway.registry.client.truststore.path=${apiman.es.truststore.path}
#apiman-gateway.registry.client.truststore.password=${apiman.es.truststore.password}
#apiman-gateway.registry.cache-polling-interval=15
#apiman-gateway.registry.client.allowSelfSigned=${apiman.es.allowSelfSigned}
#apiman-gateway.registry.client.allowAnyHost=${apiman.es.allowAnyHost}

# ---------------------------------------------------------------------
# Shared State Component Settings
# ---------------------------------------------------------------------

apiman-gateway.components.ISharedStateComponent=io.apiman.gateway.engine.impl.InMemorySharedStateComponent

#apiman-gateway.components.ISharedStateComponent=io.apiman.gateway.engine.es.EsSharedStateComponent
#apiman-gateway.components.ISharedStateComponent.client.type=${apiman.es.client.type}
#apiman-gateway.components.ISharedStateComponent.client.protocol=${apiman.es.protocol}
#apiman-gateway.components.ISharedStateComponent.client.host=${apiman.es.host}
#apiman-gateway.components.ISharedStateComponent.client.port=${apiman.es.port}
#apiman-gateway.components.ISharedStateComponent.client.initialize=${apiman.es.initialize}
#apiman-gateway.components.ISharedStateComponent.client.username=${apiman.es.username}
#apiman-gateway.components.ISharedStateComponent.client.password=${apiman.es.password}
#apiman-gateway.components.ISharedStateComponent.client.timeout=${apiman.es.timeout}
#apiman-gateway.components.ISharedStateComponent.client.pollingTime=${apiman.es.pollingTime}
#apiman-gateway.components.ISharedStateComponent.client.keystore.path=${apiman.es.keystore.path}
#apiman-gateway.components.ISharedStateComponent.client.keystore.password=${apiman.es.keystore.password}
#apiman-gateway.components.ISharedStateComponent.client.truststore.path=${apiman.es.truststore.path}
#apiman-gateway.components.ISharedStateComponent.client.truststore.password=${apiman.es.truststore.password}
#apiman-gateway.components.ISharedStateComponent.client.allowSelfSigned=${apiman.es.allowSelfSigned}
#apiman-gateway.components.ISharedStateComponent.client.allowAnyHost=${apiman.es.allowAnyHost}

# ---------------------------------------------------------------------
# Rate Limiter Component Settings
# ---------------------------------------------------------------------

apiman-gateway.components.IRateLimiterComponent=io.apiman.gateway.engine.impl.InMemoryRateLimiterComponent

#apiman-gateway.components.IRateLimiterComponent=io.apiman.gateway.engine.es.EsRateLimiterComponent
#apiman-gateway.components.IRateLimiterComponent.client.type=${apiman.es.client.type}
#apiman-gateway.components.IRateLimiterComponent.client.protocol=${apiman.es.protocol}
#apiman-gateway.components.IRateLimiterComponent.client.host=${apiman.es.host}
#apiman-gateway.components.IRateLimiterComponent.client.port=${apiman.es.port}
#apiman-gateway.components.IRateLimiterComponent.client.initialize=${apiman.es.initialize}
#apiman-gateway.components.IRateLimiterComponent.client.username=${apiman.es.username}
#apiman-gateway.components.IRateLimiterComponent.client.password=${apiman.es.password}
#apiman-gateway.components.IRateLimiterComponent.client.timeout=${apiman.es.timeout}
#apiman-gateway.components.IRateLimiterComponent.client.pollingTime=${apiman.es.pollingTime}
#apiman-gateway.components.IRateLimiterComponent.client.keystore.path=${apiman.es.keystore.path}
#apiman-gateway.components.IRateLimiterComponent.client.keystore.password=${apiman.es.keystore.password}
#apiman-gateway.components.IRateLimiterComponent.client.truststore.path=${apiman.es.truststore.path}
#apiman-gateway.components.IRateLimiterComponent.client.truststore.password=${apiman.es.truststore.password}
#apiman-gateway.components.IRateLimiterComponent.client.allowSelfSigned=${apiman.es.allowSelfSigned}
#apiman-gateway.components.IRateLimiterComponent.client.allowAnyHost=${apiman.es.allowAnyHost}

# ---------------------------------------------------------------------
# Cache Store Component Settings
# ---------------------------------------------------------------------

apiman-gateway.components.ICacheStoreComponent=io.apiman.gateway.engine.impl.InMemoryCacheStoreComponent

#apiman-gateway.components.ICacheStoreComponent=io.apiman.gateway.engine.es.EsCacheStoreComponent
#apiman-gateway.components.ICacheStoreComponent.client.type=${apiman.es.client.type}
#apiman-gateway.components.ICacheStoreComponent.client.protocol=${apiman.es.protocol}
#apiman-gateway.components.ICacheStoreComponent.client.host=${apiman.es.host}
#apiman-gateway.components.ICacheStoreComponent.client.port=${apiman.es.port}
#apiman-gateway.components.ICacheStoreComponent.client.initialize=${apiman.es.initialize}
#apiman-gateway.components.ICacheStoreComponent.client.username=${apiman.es.username}
#apiman-gateway.components.ICacheStoreComponent.client.password=${apiman.es.password}
#apiman-gateway.components.ICacheStoreComponent.client.timeout=${apiman.es.timeout}
#apiman-gateway.components.ICacheStoreComponent.client.pollingTime=${apiman.es.pollingTime}
#apiman-gateway.components.ICacheStoreComponent.client.keystore.path=${apiman.es.keystore.path}
#apiman-gateway.components.ICacheStoreComponent.client.keystore.password=${apiman.es.keystore.password}
#apiman-gateway.components.ICacheStoreComponent.client.truststore.path=${apiman.es.truststore.path}
#apiman-gateway.components.ICacheStoreComponent.client.truststore.password=${apiman.es.truststore.password}
#apiman-gateway.components.ICacheStoreComponent.client.allowSelfSigned=${apiman.es.allowSelfSigned}
#apiman-gateway.components.ICacheStoreComponent.client.allowAnyHost=${apiman.es.allowAnyHost}

# ---------------------------------------------------------------------
# Execute Blocking Component Settings
# ---------------------------------------------------------------------
io.apiman.gateway.engine.components.IExecuteBlockingComponent=io.apiman.gateway.engine.impl.DefaultExecuteBlockingComponent

# ---------------------------------------------------------------------
# JDBC Component Settings
# ---------------------------------------------------------------------
apiman-gateway.components.IJdbcComponent=io.apiman.gateway.engine.impl.DefaultJdbcComponent

# ---------------------------------------------------------------------
# LDAP Component Settings
# ---------------------------------------------------------------------
apiman-gateway.components.ILdapComponent=io.apiman.gateway.engine.impl.DefaultLdapComponent

# ---------------------------------------------------------------------
# HTTP Client Component Settings
# ---------------------------------------------------------------------
apiman-gateway.components.IHttpClientComponent=io.apiman.gateway.platforms.servlet.components.HttpClientComponentImpl

/conf/web.xml

...
<resource-ref>
        <res-ref-name>jdbc/datasources/apiman-manager</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>
</web-app>

/conf/context.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You 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.
-->
<!-- The contents of this file will be loaded for each web application -->
<Context>

    <!-- Default set of monitored resources. If one of these changes, the    -->
    <!-- web application will be reloaded.                                   -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>

    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->
    <Resource name="jdbc/datasources/apiman-manager" auth="Container"
    type="javax.sql.DataSource"
                   maxTotal="100" maxIdle="30" maxWaitMillis="10000"
                   username="secupi" password="secupi"
    driverClassName="com.mysql.jdbc.Driver"
                   url="jdbc:mysql://192.168.100.56:3306/secupi"/>
         <ResourceLink global="jdbc/datasources/apiman-manager"
    name="jdbc/datasources/apiman-manager" type="javax.sql.DataSource"/>
</Context>

apiman.log

2022-07-18 14:37:01,109 INFO o.a.c.s.VersionLoggerListener [main] Server version name:   Apache Tomcat/9.0.64 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] Server built:          Jun 2 2022 19:08:46 UTC 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] Server version number: 9.0.64.0 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] OS Name:               Linux 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] OS Version:            3.10.0-1160.66.1.el7.x86_64 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] Architecture:          amd64 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] Java Home:             /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] JVM Version:           1.8.0_332-b09 
2022-07-18 14:37:01,111 INFO o.a.c.s.VersionLoggerListener [main] JVM Vendor:            Red Hat, Inc. 
2022-07-18 14:37:01,115 INFO o.a.c.s.VersionLoggerListener [main] CATALINA_BASE:         /opt/tomcat 
2022-07-18 14:37:01,115 INFO o.a.c.s.VersionLoggerListener [main] CATALINA_HOME:         /opt/tomcat 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djava.awt.headless=true 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djava.security.egd=file:/dev/./urandom 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Xms512M 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Xmx1024M 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -XX:+UseParallelGC 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dapiman.logger-delegate=log4j2 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dlog4j.configurationFile=/opt/tomcat/log4j2/conf/log4j2-tomcat.xml 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dorg.apache.logging.log4j.core.async.AsyncLoggerContextSelector=log4j2.contextSelector 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dignore.endorsed.dirs= 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dcatalina.base=/opt/tomcat 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Dcatalina.home=/opt/tomcat 
2022-07-18 14:37:01,116 INFO o.a.c.s.VersionLoggerListener [main] Command line argument: -Djava.io.tmpdir=/opt/tomcat/temp 
2022-07-18 14:37:01,118 INFO o.a.c.c.AprLifecycleListener [main] The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] 
2022-07-18 14:37:01,402 INFO o.a.c.h.Http11NioProtocol [main] Initializing ProtocolHandler ["http-nio-8080"] 
2022-07-18 14:37:01,442 INFO o.a.c.h.Http11NioProtocol [main] Initializing ProtocolHandler ["https-jsse-nio-8443"] 
2022-07-18 14:37:01,697 INFO o.a.c.s.Catalina [main] Server initialization in [749] milliseconds 
2022-07-18 14:37:01,729 INFO o.a.c.c.StandardService [main] Starting service [Catalina] 
2022-07-18 14:37:01,729 INFO o.a.c.c.StandardEngine [main] Starting Servlet engine: [Apache Tomcat/9.0.64] 
2022-07-18 14:37:01,750 INFO o.a.c.s.HostConfig [main] Deploying web application archive [/opt/tomcat/webapps/apimanui.war] 
2022-07-18 14:37:02,780 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:02,828 INFO o.a.c.s.HostConfig [main] Deployment of web application archive [/opt/tomcat/webapps/apimanui.war] has finished in [1,077] ms 
2022-07-18 14:37:02,828 INFO o.a.c.s.HostConfig [main] Deploying web application archive [/opt/tomcat/webapps/apiman.war] 
2022-07-18 14:37:07,176 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:10,485 INFO o.a.c.s.HostConfig [main] Deployment of web application archive [/opt/tomcat/webapps/apiman.war] has finished in [7,657] ms 
2022-07-18 14:37:10,485 INFO o.a.c.s.HostConfig [main] Deploying web application archive [/opt/tomcat/webapps/apiman-gateway-api.war] 
2022-07-18 14:37:14,285 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:15,473 ERROR o.a.c.c.C.[.[.[/apiman-gateway-api] [main] Exception sending context initialized event to listener instance of class [io.apiman.gateway.platforms.war.listeners.WarGatewayBootstrapper] java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.instantiate(ConfigDrivenEngineFactory.java:241)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.doInstantiate(ConfigDrivenEngineFactory.java:225)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.create(ConfigDrivenEngineFactory.java:185)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.createRegistry(ConfigDrivenEngineFactory.java:103)
    at io.apiman.gateway.engine.impl.AbstractEngineFactory.createEngine(AbstractEngineFactory.java:56)
    at io.apiman.gateway.platforms.war.WarGateway.init(WarGateway.java:55)
    at io.apiman.gateway.platforms.war.listeners.WarGatewayBootstrapper.contextInitialized(WarGatewayBootstrapper.java:42)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4768)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
    2022-07-18 14:38:08,055 INFO o.r.Reflections [http-nio-8080-exec-7] Reflections took 13 ms to scan 3 urls, producing 130 keys and 211 values  
2022-07-18 14:38:08,786 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002225: Deploying javax.ws.rs.core.Application: class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:08,797 INFO o.r.Reflections [http-nio-8080-exec-7] Reflections took 11 ms to scan 3 urls, producing 130 keys and 211 values  
2022-07-18 14:38:09,070 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.SystemResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.GatewayResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.UserResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002205: Adding provider class io.swagger.jaxrs.listing.SwaggerSerializers from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.SearchResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.PluginResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.DeveloperResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.OrganizationResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.ActionResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.DownloadResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.swagger.jaxrs.listing.ApiListingResource from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.PolicyDefinitionResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002205: Adding provider class io.apiman.manager.api.rest.exceptions.mappers.RestExceptionMapper from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,071 INFO o.j.r.r.i18n [http-nio-8080-exec-7] RESTEASY002200: Adding class resource io.apiman.manager.api.rest.impl.RoleResourceImpl from Application class io.apiman.manager.api.war.tomcat8.Tomcat8ApiManagerApplication$Proxy$_$$_WeldClientProxy 
2022-07-18 14:38:09,640 WARN i.a.c.a.AuthTokenUtil [http-nio-8080-exec-7] Missing a Shared-Secret source for auth-token style authentication.  Defaulting to insecure, hard-coded value. 
2022-07-18 14:38:09,865 INFO o.h.h.i.QueryTranslatorFactoryInitiator [http-nio-8080-exec-7] HHH000397: Using ASTQueryTranslatorFactory 
cation [apiman-gateway-api] appears to have started a thread named [Log4j2-TF-2-AsyncLoggerConfig-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 com.lmax.disruptor.TimeoutBlockingWaitStrategy.waitFor(TimeoutBlockingWaitStrategy.java:38)
 com.lmax.disruptor.ProcessingSequenceBarrier.waitFor(ProcessingSequenceBarrier.java:56)
 com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:159)
 com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125)
 java.lang.Thread.run(Thread.java:750) 
2022-07-18 14:37:15,692 WARN o.a.c.l.WebappClassLoaderBase [main] The web application [apiman-gateway-api] appears to have started a thread named [Thread-6] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.nio.fs.LinuxWatchService.poll(Native Method)
 sun.nio.fs.LinuxWatchService.access$600(LinuxWatchService.java:47)
 sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:314)
 java.lang.Thread.run(Thread.java:750) 
2022-07-18 14:37:15,693 WARN o.a.c.l.WebappClassLoaderBase [main] The web application [apiman-gateway-api] appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
 java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:492)
 java.util.concurrent.LinkedBlockingDeque.take(LinkedBlockingDeque.java:680)
 sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:118)
 io.apiman.common.logging.change.LogFileConfigManager.doPollingLoop(LogFileConfigManager.java:107)
 io.apiman.common.logging.change.LogFileConfigManager.lambda$watch$0(LogFileConfigManager.java:82)
 io.apiman.common.logging.change.LogFileConfigManager$$Lambda$301/143567646.run(Unknown Source)
 java.lang.Thread.run(Thread.java:750) 
2022-07-18 14:37:15,707 INFO o.a.c.s.HostConfig [main] Deployment of web application archive [/opt/tomcat/webapps/apiman-gateway-api.war] has finished in [5,222] ms 
2022-07-18 14:37:15,708 INFO o.a.c.s.HostConfig [main] Deploying web application archive [/opt/tomcat/webapps/apiman-gateway.war] 
2022-07-18 14:37:18,511 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:19,296 ERROR o.a.c.c.C.[.[.[/apiman-gateway] [main] Exception sending context initialized event to listener instance of class [io.apiman.gateway.platforms.war.listeners.WarGatewayBootstrapper] java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.instantiate(ConfigDrivenEngineFactory.java:241)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.doInstantiate(ConfigDrivenEngineFactory.java:225)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.create(ConfigDrivenEngineFactory.java:185)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.createRegistry(ConfigDrivenEngineFactory.java:103)
    at io.apiman.gateway.engine.impl.AbstractEngineFactory.createEngine(AbstractEngineFactory.java:56)
    at io.apiman.gateway.platforms.war.WarGateway.init(WarGateway.java:55)
    at io.apiman.gateway.platforms.war.listeners.WarGatewayBootstrapper.contextInitialized(WarGatewayBootstrapper.java:42)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4768)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.instantiate(ConfigDrivenEngineFactory.java:238)
    ... 47 more
Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: Name [apiman-gateway] is not bound in this Context. Unable to find [apiman-gateway].
    at io.apiman.gateway.engine.jdbc.AbstractJdbcComponent.lookupDS(AbstractJdbcComponent.java:56)
    at io.apiman.gateway.engine.jdbc.AbstractJdbcComponent.<init>(AbstractJdbcComponent.java:43)
    at io.apiman.gateway.engine.jdbc.JdbcRegistry.<init>(JdbcRegistry.java:73)
    at io.apiman.gateway.engine.jdbc.CachingJdbcRegistry.<init>(CachingJdbcRegistry.java:50)
    at io.apiman.gateway.engine.jdbc.PollCachingJdbcRegistry.<init>(PollCachingJdbcRegistry.java:62)
    ... 52 more
Caused by: javax.naming.NameNotFoundException: Name [apiman-gateway] is not bound in this Context. Unable to find [apiman-gateway].
    at org.apache.naming.NamingContext.lookup(NamingContext.java:840)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:158)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:850)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:158)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:850)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:158)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:850)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:158)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:850)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:172)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:161)
    at javax.naming.InitialContext.lookup(InitialContext.java:417)
    at io.apiman.gateway.engine.jdbc.AbstractJdbcComponent.lookupDS(AbstractJdbcComponent.java:54)
    ... 56 more

2022-07-18 14:37:19,299 ERROR o.a.c.c.StandardContext [main] One or more listeners failed to start. Full details will be found in the appropriate container log file 
2022-07-18 14:37:19,301 ERROR o.a.c.c.StandardContext [main] Context [/apiman-gateway] startup failed due to previous errors 
2022-07-18 14:37:19,316 WARN o.a.c.l.WebappClassLoaderBase [main] The web application [apiman-gateway] appears to have started a thread named [Log4j2-TF-2-AsyncLoggerConfig-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 com.lmax.disruptor.TimeoutBlockingWaitStrategy.waitFor(TimeoutBlockingWaitStrategy.java:38)
 com.lmax.disruptor.ProcessingSequenceBarrier.waitFor(ProcessingSequenceBarrier.java:56)
 com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:159)
 com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125)
 java.lang.Thread.run(Thread.java:750) 
2022-07-18 14:37:19,318 WARN o.a.c.l.WebappClassLoaderBase [main] The web application [apiman-gateway] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.nio.fs.LinuxWatchService.poll(Native Method)
 sun.nio.fs.LinuxWatchService.access$600(LinuxWatchService.java:47)
 sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:314)
 java.lang.Thread.run(Thread.java:750) 
2022-07-18 14:37:19,319 WARN o.a.c.l.WebappClassLoaderBase [main] The web application [apiman-gateway] appears to have started a thread named [Thread-9] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
 java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:492)
 java.util.concurrent.LinkedBlockingDeque.take(LinkedBlockingDeque.java:680)
 sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:118)
 io.apiman.common.logging.change.LogFileConfigManager.doPollingLoop(LogFileConfigManager.java:107)
 io.apiman.common.logging.change.LogFileConfigManager.lambda$watch$0(LogFileConfigManager.java:82)
 io.apiman.common.logging.change.LogFileConfigManager$$Lambda$325/1475672147.run(Unknown Source)
 java.lang.Thread.run(Thread.java:750) 
2022-07-18 14:37:19,323 INFO o.a.c.s.HostConfig [main] Deployment of web application archive [/opt/tomcat/webapps/apiman-gateway.war] has finished in [3,615] ms 
2022-07-18 14:37:19,323 INFO o.a.c.s.HostConfig [main] Deploying web application directory [/opt/tomcat/webapps/ROOT] 
2022-07-18 14:37:19,518 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:19,519 INFO o.a.c.s.HostConfig [main] Deployment of web application directory [/opt/tomcat/webapps/ROOT] has finished in [196] ms 
2022-07-18 14:37:19,519 INFO o.a.c.s.HostConfig [main] Deploying web application directory [/opt/tomcat/webapps/docs] 
2022-07-18 14:37:19,743 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:19,746 INFO o.a.c.s.HostConfig [main] Deployment of web application directory [/opt/tomcat/webapps/docs] has finished in [227] ms 
2022-07-18 14:37:19,747 INFO o.a.c.s.HostConfig [main] Deploying web application directory [/opt/tomcat/webapps/examples] 
2022-07-18 14:37:20,072 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:20,099 INFO o.a.c.c.C.[.[.[/examples] [main] ContextListener: contextInitialized() 
2022-07-18 14:37:20,099 INFO o.a.c.c.C.[.[.[/examples] [main] SessionListener: contextInitialized() 
2022-07-18 14:37:20,100 INFO o.a.c.c.C.[.[.[/examples] [main] ContextListener: attributeAdded('StockTicker', 'async.Stockticker@4065c0fe') 
2022-07-18 14:37:20,107 INFO o.a.c.s.HostConfig [main] Deployment of web application directory [/opt/tomcat/webapps/examples] has finished in [360] ms 
2022-07-18 14:37:20,107 INFO o.a.c.s.HostConfig [main] Deploying web application directory [/opt/tomcat/webapps/host-manager] 
2022-07-18 14:37:20,314 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:20,319 INFO o.a.c.s.HostConfig [main] Deployment of web application directory [/opt/tomcat/webapps/host-manager] has finished in [212] ms 
2022-07-18 14:37:20,319 INFO o.a.c.s.HostConfig [main] Deploying web application directory [/opt/tomcat/webapps/manager] 
2022-07-18 14:37:20,570 INFO o.a.j.s.TldScanner [main] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 
2022-07-18 14:37:20,572 INFO o.a.c.s.HostConfig [main] Deployment of web application directory [/opt/tomcat/webapps/manager] has finished in [252] ms 
2022-07-18 14:37:20,578 INFO o.a.c.h.Http11NioProtocol [main] Starting ProtocolHandler ["http-nio-8080"] 
2022-07-18 14:37:20,592 INFO o.a.c.h.Http11NioProtocol [main] Starting ProtocolHandler ["https-jsse-nio-8443"] 
2022-07-18 14:37:20,595 INFO o.a.c.s.Catalina [main] Server startup in [18897] milliseconds 
2022-07-18 14:38:06,476 WARN i.a.c.a.AuthTokenUtil [http-nio-8080-exec-4] Missing a Shared-Secret source for auth-token style authentication.  Defaulting to insecure, hard-coded value. 
msavy commented 2 years ago

Are you using one of the docker images?

KwanchaiJc commented 2 years ago

Sorry @msavy i posted to wrong board