tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weixiang <kurt.weixi...@huawei.com>
Subject Tomcat7.0-Setting property 'threadPriority' did not find a matching property
Date Mon, 03 Dec 2012 04:53:08 GMT
Tomcat version:7.0.29

Question:
I config in my server.xml for a HTTP Connector named “MGMT”:

threadPriority="java.lang.Thread#Thread.MAX_PRIORITY"

When application is starting up,the catalina.out gives some warning information:

WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'threadPriority'
to 'java.lang.Thread#MAX_PRIORITY' did not find a matching property.

I search on google and did not get any useful help;

I also search documentation on the apache.org and make sure that 'threadPriority' is a legal
attribute for HTTP Connector,so I wonder why would this warning information will come up.

Please tell me what’s wrong, Thank you!

________________________________
              Patch my server.xml for more information:

<?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.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
    Documentation at /docs/config/server.html
-->
<Server port="-1" shutdown="SHUTDOWN">
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html
-->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <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>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread
pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->

    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->

    <!--Connector for application-->
    <Connector server="APP"
               port="13080"
               protocol="org.apache.coyote.http11.Http11NioProtocol"
               connectionTimeout="20000"
               acceptCount="2000"
               maxThreads="1200"
               minSpareThreads="10"
               compression="on"
               compressionMinSize="2048"
               maxPostSize="10240"
               allowTrace="false"
               redirectPort="13443"
               enableLookups="false"
               xpoweredBy="false"
               compressableMimeType="text/xml,application/octet-stream,application/json"/>

    <!-- A "Connector" using the shared thread pool-->
    <!-- <Connector executor="tomcatThreadPool" port="19998" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8542" />  -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
        This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->

    <!--Connector for management-->
    <Connector server="MGMT"
                        port="13089"
                  protocol="HTTP/1.1"
                  maxThreads="120"
                  acceptCount="200"
                  enableLookups="false"
                  xpoweredBy="false"
                  threadPriority="java.lang.Thread#MAX_PRIORITY"
               redirectPort="13443" />

    <!--Connector for https-->
    <Connector server="HTTPS"
               port="13443"
               protocol="org.apache.coyote.http11.Http11NioProtocol"
               SSLEnabled ="true"
               sslProtocol ="TLS"
               acceptCount="2000"
               minSpareThreads="10"
               enableLookups="false"
               scheme="https"
               secure="true"
               clientAuth="false"
               keystoreFile="conf/key.store"
               keystorePass="oa5l5Azob7HhWOsjJZyjOQ=="
               ciphers="SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA"
               maxPostSize="10240"
               connectionTimeout="20000"
               allowTrace="false"
               xpoweredBy="false" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!-- <Connector port="18010" protocol="AJP/1.3" connectionTimeout="20000"  maxPostSize="10240"
redirectPort="8542" allowTrace="false" xpoweredBy="false" />  -->

    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm" failureCount="3" lockOutTime="600"
       cacheSize="1000" cacheRemovalWarningTime="3600">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm" digest="sha"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="false" deployOnStartup="false" >
       <Context path="/mgmtWeb" docBase="mgmtWeb" reloadable="false" />
       <!-- Link to the user database we will get roles from -->
       <!--Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="10.138.25.108"
/>-->

        <!-- Link to the user database we will get roles from -->


       <!-- <Context path="/test" reloadable-"true" docBase="test" /> -->

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
            Note: The pattern used is equivalent to using pattern="common" -->
        <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>



________________________________
魏翔
华为技术有限公司 Huawei Technologies Co., Ltd.
[Company_logo]

Phone: 025-56620390
Fax:
Mobile: 15850503037
Email: kurt.weixiang@huawei.com
地址:南京市雨花区软件大道101号华为南京研究所 邮编:210000
Huawei Technologies Co., Ltd.
RuanJianDaDao, YuHua District,NanJing 210000 P.R.China
http://www.huawei.com
________________________________
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by
phone or email immediately and delete it!
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message