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这个是什么东东的监听?