晕现在解决了,把原来
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
改成:<Host name="localhost" debug="5" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">E:\Tomcat\conf\Catalina\localhost下建个ROOT.xml内容为:
<?xml version='1.0' encoding='utf-8'?>
<Context displayName="Welcome to Tomcat" docBase="E:\www" path="" debug="0">
</Context>根目录就变到E:\www了
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
改成:<Host name="localhost" debug="5" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">E:\Tomcat\conf\Catalina\localhost下建个ROOT.xml内容为:
<?xml version='1.0' encoding='utf-8'?>
<Context displayName="Welcome to Tomcat" docBase="E:\www" path="" debug="0">
</Context>根目录就变到E:\www了
解决方案 »
- 如何理解MVC设计模式?
- 急求:jbpm报错no ObjectInfo class specified for element 'start-state'
- 关于利用javaScript引用框架中的控件的问题
- 100分求救!!!谢谢大家帮忙来看看UP有分~~~
- 请问jfreechart图表从数据库取数据时页面无法显示问题,小女子不胜感激!
- Hibernate 数据库执行SQL问题
- JSP 如何知道客户端的操作系统
- 两个网页间值传递的问题~~~~
- Together 6.1 的注册码,谁能给我一个?
- 在jsp页面怎么打开一个word文档?
- 姐姐结婚,散分!==============================顺便问个点子:)
- 一个带有servlet的JSP在opera 浏览器中打开时,提示是下栽此servlet, 该怎样设置
打开它,在里面查找 webapps\ROOT,然后把它修改到你的目录下。然后重启Tomcat,测试
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="ServiceDefineByDigitalTitan">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="9003" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="EngineDefineByDigitalTitan" defaultHost="DigitalTitan" debug="0" appBase="F:\Site_River\">
<Host name="DigitalTitan" debug="0" appBase="F:\Site_River\" 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>
<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>
</Server>
d:\baikoo\WEB-INF\web.xml内容改成<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
</web-app>