建议用resin2.1.4以后,其配置很简单。

解决方案 »

  1.   

    你的docBase配置错了。
    docBase: The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host.
     如果按你现在这样的配置,应该建立这样的目录结构:%tomcat_home%/webapps/sites/bhp。
    否则的话,docBase必须写绝对路径:<Context path="/bhp"           docBase="c:/sites/bhp"/>
      

  2.   

    <Context path="/bhp"docBase="c:/sites/bhp"debug="0"reloadable="true" crossContext="true"/>
    只要注意docBase为绝对路径就可以了
      

  3.   

    在</Context>和</Host>之间加入以下内容:
    <Context path="/bhp" docBase="c:/sites/bhp" debug="0"
                     reloadable="true" />
      

  4.   

    Tomcat 4.1.6以后就不用手工修改server.xml了,可以使用web 管理界面
    good luck!如果tomcat 版本不是太高,可以使用jdk1.3,有时jdk1.4可能有问题