首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

AprLifecycleListener解决方案

2012-03-15 
AprLifecycleListener?xmlversion 1.0 encoding UTF-8 ?ServerListenerclassName org.apache

AprLifecycleListener
<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<Server>
    <Listener   className= "org.apache.catalina.core.AprLifecycleListener "/>
    <Listener   className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener "/>
    <Listener   className= "org.apache.catalina.storeconfig.StoreConfigLifecycleListener "/>
    <Listener   className= "org.apache.catalina.mbeans.ServerLifecycleListener "/>
    <GlobalNamingResources>
        <Environment
            name= "simpleValue "
            type= "java.lang.Integer "
            value= "30 "/>
        <Resource
            auth= "Container "
            description= "User   database   that   can   be   updated   and   saved "
            name= "UserDatabase "
            type= "org.apache.catalina.UserDatabase "
            pathname= "conf/tomcat-users.xml "
            factory= "org.apache.catalina.users.MemoryUserDatabaseFactory "/>
        <Resource
            name= "EAPool "
            auth= "Container "
            type= "javax.sql.DataSource "
            username= "sa "
            password= "1111 "
            driverClassName= "com.microsoft.jdbc.sqlserver.SQLServerDriver "
            maxIdle= "2 "
            maxWait= "5000 "
            url= "jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=sqltas_std;SelectMethod=Cursor "
            maxActive= "30 "/>
    </GlobalNamingResources>
    <Service     name= "cares ">
        <Connector
                port= "80 "
                redirectPort= "8443 "
                minSpareThreads= "25 "
                connectionTimeout= "60000 "
                connectionLinger= "-1 "
                serverSoTimeout= "0 "
                maxSpareThreads= "75 "
                maxThreads= "150 "
                maxHttpHeaderSize= "8192 "
                tcpNoDelay= "true ">
        </Connector>
        <Connector


                port= "8009 "
                redirectPort= "8443 "
                protocol= "AJP/1.3 ">
        </Connector>
        <Engine     defaultHost= "localhost "         name= "cares ">
            <Realm   className= "org.apache.catalina.realm.UserDatabaseRealm "/>
<Host   name= "localhost "   debug= "0 "   appBase= " "   unpackWARs= "true "   autoDeploy= "true ">
<Context   displayName= "SZXT "   docBase= "D:/Tomcat/webapps/szxt "   path= "/ "   reloadable= "true "     privileged= "true ">
<ResourceLink   name= "EAPool "   global= "EAPool "   type= "javax.sql.DataSource "/>
</Context>
        </Host>
        </Engine>
    </Service>
</Server>


[解决办法]
你的TOMCAT不行吧,换一个试试看
[解决办法]
怪了,我的tomcat的server.xml只有ServerLifecycleListener和GlobalResourcesLifecycleListener监听,AprLifecycleListener这个是什么东东的监听?

热点排行