modify server.xmllike this:
<Context path="/test"
docBase="d:\\test"
debug="0"
reloadable="true">
</Context>then reboot tomcat
<Context path="/test"
docBase="d:\\test"
debug="0"
reloadable="true">
</Context>then reboot tomcat
解决方案 »
- web问题求高手,jsp+servlet实现文件下载
- 高手救命呀javax.servlet.ServletException: Servlet execution threw an exception
- 我想学lucene,先跑一个例子,请大家对我学lucene提点建议!
- 如何设置虚拟目录,先给20',如果能真正解决问题,另外贴给100分。
- 向高手请教自定义标签传递参数的问题
- 在使用url在相邻的页面之间传参数,为什么接收到的是乱码,有解决的办法吗?
- 如何写Application才使得值不丢?
- 如何在内网中让用户直接下载JVM?
- 又是个Internal Server Error出错,大家帮忙
- java URL 编码解码
- 为什么会这样,居然把我的全部源代码给显示出来了
- 谁有能根据数据库数据,生成柱形图、饼图等
tomcat\conf\server.xml文件里 add:
<Context path="/test" docBase="d:\test" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
</Context>
运行:http://localhost:8080/test/*.jsp
<Context path="" docBase="E:\test" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
</Context>
运行:http://localhost,port后的端口号随便改(8080为测试端口)
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="80" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />