T
TrustMe
Unregistered / Unconfirmed
GUEST, unregistred user!
本人在Linux7下安装有Tomcat5.5.14,配置文件server.xml内容如下:
<Server port="8005"
shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener"
/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<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"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"
/>
</GlobalNamingResources>
<Service name="Catalina">
<Connector
port="8080"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
redirectPort="8443"
acceptCount="100"
connectionTimeout="20000"
disableUploadTimeout="true"
/>
<Engine name="Catalina"
defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost"
appBase="webapps"
unpackWARs="true"
autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false">
<Context path="/dodo"
docBase="/home/dodo/tomcat"
debug="0"
reloadable="true"
crossContext="true">
</Context>
</Host>
</Engine>
</Service>
</Server>
此配置和在win2000下的配置的一样,win2000下的我已经试验成功,jsp和servlet都已经工作正常,可在Linux下出现如下的错误:
HTTP Status 404 - /
--------------------------------------------------------------------------------
type Status report
message /
description The requested resource (/) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.14
哪位大侠有此方面的经验,还望不吝赐教!
<Server port="8005"
shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener"
/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<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"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"
/>
</GlobalNamingResources>
<Service name="Catalina">
<Connector
port="8080"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
redirectPort="8443"
acceptCount="100"
connectionTimeout="20000"
disableUploadTimeout="true"
/>
<Engine name="Catalina"
defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost"
appBase="webapps"
unpackWARs="true"
autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false">
<Context path="/dodo"
docBase="/home/dodo/tomcat"
debug="0"
reloadable="true"
crossContext="true">
</Context>
</Host>
</Engine>
</Service>
</Server>
此配置和在win2000下的配置的一样,win2000下的我已经试验成功,jsp和servlet都已经工作正常,可在Linux下出现如下的错误:
HTTP Status 404 - /
--------------------------------------------------------------------------------
type Status report
message /
description The requested resource (/) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.14
哪位大侠有此方面的经验,还望不吝赐教!