gpt4 book ai didi

tomcat - 连接器 [连接器 [HTTP/1.1 - TomEE 启动

转载 作者:行者123 更新时间:2023-11-28 23:32:26 28 4
gpt4 key购买 nike

我们被要求从 Tomcat 1.6 迁移到 TomEE。在我们的应用程序中,我们使用 tomcat 作为嵌入式服务器。当我们尝试根据以下教程“http://www.copperykeenclaws.com/embedding-tomcat-7/”使用“org.apache.catalina.startup.Tomcat”启动 TomEE 时,我们收到警告“Unknown default host [localhost] for connector”。

我们的 Server.xml 在下面。

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="33557" protocol="HTTP/1.1"
connectionTimeout="500" redirectPort="8443" acceptCount="100"
maxThreads="10" emptySessionPath="true" disableUploadTimeout="true"
enableLookups="false" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
</Realm>
<Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t &quot;%r&quot; %s %b" />
</Host>
</Engine>
</Service>
</Server>

最佳答案

当我使用 Tomcat 类而不是 Catalina 来启动 TomEE 服务器时,我的问题得到了解决。

关于tomcat - 连接器 [连接器 [HTTP/1.1 - TomEE 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28534931/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com