只要在tomcat安装目录的conf\Catalina\localhost下面新建一个xml文件就可以了,
例子:
<Context path="/hispacta" docBase="E:/myproject/tapestry+spring+hibernate/hispacta/context" workDir="h:/project/blog/j2src" debug="0" privileged="true">
</Context>
记住:docBase一定要是web目录,比如Tapestry默认的是context!!!