日期:2014-05-18  浏览次数:20942 次

为什么我tomcat多站点配置好,只能执行一个站点.急急!!!!
为什么我tomcat多站点配置好,只能执行一个站点.哪位高手指点一下,小第跪谢!!
我的server.xml文件是这样写的
<Engine   name= "webHost "   defaultHost= "58cf ">
<Logger   className= "org.apache.catalina.logger.FileLogger "   />

<Realm   className= "org.apache.catalina.realm.UserDatabaseRealm "   resourceName= "UserDatabase "   />
<Host   name= "58cf "   appBase= "E:\wwwroot\java\58cf "   />
</Engine>
<Engine   name= "webHost "   defaultHost= "news ">
<Logger   className= "org.apache.catalina.logger.FileLogger "   />

<Realm   className= "org.apache.catalina.realm.UserDatabaseRealm "   resourceName= "UserDatabase "   />
<Host   name= "news "   appBase= "E:\wwwroot\java\news "   />
</Engine>
然后我修改成
        <Engine   name= "webHost "   defaultHost= "58cf "   debug= "0 ">

     
            <Logger   className= "org.apache.catalina.logger.FileLogger "   prefix= "catalina_log. "   suffix= ".txt "   timestamp= "true "/>
            <Realm   className= "org.apache.catalina.realm.UserDatabaseRealm "   debug= "0 "   resourceName= "UserDatabase "/>      
            <Host   name= "58cf "   debug= "0 "   appBase= "E:\wwwroot\java\58cf "   unpackWARs= "true "   autoDeploy= "true "   mlValidation= "false "   xmlNamespaceAware= "false ">
              <Logger   className= "org.apache.catalina.logger.FileLogger "
                                  directory= "logs "     prefix= "localhost_log. "   suffix= ".txt "
                        timestamp= "true "/>
            </Host>
            <Host   name= "news "   debug= "0 "   appBase= "E:\wwwroot\java\news "   unpackWARs= "true "   autoDeploy= "true "   mlValidation= "false "   xmlNamespaceAware= "false ">
              <Logger   className= "org.apache.catalina.logger.FileLogger "
                                  directory= "logs "     prefix= "localhost_log. "   suffix= ".txt "
                        timestamp= "true "/>
                        <Context       path= "JSP "       docBase= "E:\wwwroot\java\news\JSP "       debug= "0 "       privileged= "true " &nbs