不是在/admin,而是在/manager/html

解决方案 »

  1.   

    刚学jsp,win2k+tomcat4.1.请各位帮帮忙!请问,我已在$CATALINA_HOME的webapps目录下建\mysites子目录,子目录里已有index.jsp和\web-inf\web.xml等文件,在http://localhost:8080/manager/html,我部署的新目录情况如下:在Install中Context Path (optional): 跟XML Configuration file URL: 都为空,而在WAR or Directory URL: 为E:\Tomcat\webapps\bhp,这样部署正确吗?还有,我建立以后在commands中点击start会出现错误提示:FAIL - Application at context path /bhp could not be started  是何原因?
      

  2.   

    这样吧,我给你一个空白的struts-blank.war 文件, 你可以在 
    Upload a WAR file to deploy 栏里面:Select WAR file to upload 选中这个文件,然后“deploy”,这样就安装了一个空白的web application。同时也安装了struts。你可以把stusts-blank.war 改为任何你想要的文件名(后缀不能变)在安装,比如改名为myapp.war,安装后它的虚拟路径就是/myapp。.war地址为:
    http://www.smshow.com/struts-blank/struts-blank.war
      

  3.   

    你可以直接修改server.xml,以下是我练习的JSP的配置!
    <Server port="8005" shutdown="SHUTDOWN" debug="0" port="8005"
            hutdown="SHUTDOWN" debug="0">
      <Service name="Tomcat-Standalone">
        <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" />
        <Engine name="Standalone" defaultHost="localhost" debug="0">
          <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" 
                autoDeploy="true">
            <Context path="" docBase="C:\MyJsp" debug="1" reloadable="true"
                     crossContext="true">
            </Context>
          </Host>
        </Engine>
      </Service>
    </Server>