当前位置: 代码迷 >> Java Web开发 >> 什么原因会使tomcat自动关闭?麻烦大家帮忙分析一下! 多谢
  详细解决方案

什么原因会使tomcat自动关闭?麻烦大家帮忙分析一下! 多谢

热度:31   发布时间:2016-04-17 14:07:06.0
什么原因会使tomcat自动关闭?麻烦大家帮忙分析一下! 谢谢
server.xml文件如下:

<?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= "jdbc/connectDB "
            type= "javax.sql.DataSource "
            driverClassName= "net.sourceforge.jtds.jdbc.Driver "
            password= "tytymnty110110 "
            maxIdle= "2 "
            maxWait= "5000 "
            validationQuery= "3 "
            username= "sa "
            url= "jdbc:jtds:sqlserver://127.0.0.1:1433/airin_b2b "
            maxActive= "1000 "/>
    </GlobalNamingResources>
    <Service
            name= "Catalina ">
        <Connector
                port= "8081 "
                redirectPort= "8443 "
                minSpareThreads= "25 "
                connectionTimeout= "20000 "
                maxSpareThreads= "75 "
                maxThreads= "150 ">
        </Connector>
        <Connector
                port= "8009 "
                redirectPort= "8443 "
                connectionTimeout= "-1 "
                protocol= "AJP/1.3 ">
  相关解决方案