modify server.xmllike this:
<Context path="/test" 
                   docBase="d:\\test" 
                   debug="0"    
                   reloadable="true">  
</Context>then reboot tomcat

解决方案 »

  1.   

    应该是这样:
    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
      

  2.   

    等我试验成功了,在加100分。话又说回来,刚学JSP才1天,以后放分的机会多着呢。
      

  3.   

    我用4.1.18,如下最新5.0
    <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" />