你的应用程序目录下web.xml中:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
当然你的server.xml中有
<Service name="ServiceDefineByDigitalTitan">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="9001" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="EngineDefineByDigitalTitan" defaultHost="DigitalTitan" debug="0" appBase="F:\Site_ColligateStatistic\">
<Host name="DigitalTitan" debug="0" appBase="F:\Site_ColligateStatistic\" unpackWARs="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="LogDefineByDigitalTitan" prefix="LogDefineByDigitalTitan." suffix=".txt" timestamp="true"/>
<Context path="" docBase="" debug="0">
</Context>
</Host>
</Engine>
</Service>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
当然你的server.xml中有
<Service name="ServiceDefineByDigitalTitan">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="9001" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="EngineDefineByDigitalTitan" defaultHost="DigitalTitan" debug="0" appBase="F:\Site_ColligateStatistic\">
<Host name="DigitalTitan" debug="0" appBase="F:\Site_ColligateStatistic\" unpackWARs="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="LogDefineByDigitalTitan" prefix="LogDefineByDigitalTitan." suffix=".txt" timestamp="true"/>
<Context path="" docBase="" debug="0">
</Context>
</Host>
</Engine>
</Service>
解决方案 »
- 在jsp页面无法读取工程中新加入的图片的问题。
- JSP打印表格线的问题!
- hibernate 的one-to-one问题
- 小弟郁闷了,msn登陆不了了
- 程序出错 跪求答案!在线等等
- 关于空指针的问题
- 请问如何让JBuilder2005支持Tomcat4.0
- come
- 有哪位试过在weblogig6。1下访问oracle9i?我这里会报如下错误:java.sql.SQLException: ORA-00600: 内部错误代码,参数: [ttcgcshnd-1],
- 数据读取问题
- 如何在strtuts<html:file>中回显值
- javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]连接占线导致
我把Tomcat 5.0\conf 目录下的server.xml配置成下面这样 结果连Tomcat也启动不启来了
感谢帮忙 希望讲的详细点 无尽感谢
<Server port="8005" shutdown="SHUTDOWN" debug="0"> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30"/> <Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams> </GlobalNamingResources> <Service name="Catalina"> <Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" /> <Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" /> <Engine name="Catalina" defaultHost="localhost" 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="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false"> <Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/> </Host> </Engine> </Service>
<Service name="chat">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="9001" minProcessors="25" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="EngineDefineByDigitalTitan" defaultHost="localhost" debug="0" appBase="F:\chat\">
<Host name="localhost" debug="0" appBase="F:\chat\" unpackWARs="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="LogDefineByDigitalTitan" prefix="LogDefineByDigitalTitan." suffix=".txt" timestamp="true"/>
<Context path="" docBase="" debug="0">
</Context>
</Host>
</Engine>
</Service></Server>
我快气炸了 真伤心
等你哪天心情好了,再想岂不好些,tomcat是个神气的东东,最忌讳的是心烦气燥,冷静一下,然后,找找书,会有答案的,
<Service>可不是那么好配的!
你应该改此处:
<Service name="Catalina"> <Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" /> <Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" /> <Engine name="Catalina" defaultHost="localhost" 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="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
↑
↑此处改成:f:\chat重起tomcat另外,要清清你的IE的缓存啊
不管XXXXX是什么都是白色一片以下是我的修改:
<Service name="Catalina"> <Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" /> <Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" /> <Engine name="Catalina" defaultHost="localhost" 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="localhost" debug="0" appBase="f:\chat\"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host> </Engine>
</Service>
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
然后在你的应用程序目录下web.xml中:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
注意,如果是用的是虚拟主机一定要这样配