在Tomcat\webapps下建一个文件夹bbs.把wms下的文件全部拷贝到bbs中重新启动tomcat,OK

解决方案 »

  1.   

    mtou(逆风) ( ) 我的目录在外面的,不能放到里面去
    有别的方法吗?
      

  2.   

    我是在网上download了一个bbs
    我想运行一下
    我的tomcat下面没有webapp这个目录啊!
      

  3.   


    更改server.xml配置文件……
    ……
    ……
    ……
              <ResourceParams name="mail/Session">
                <parameter>
                  <name>mail.smtp.host</name>
                  <value>localhost</value>
                </parameter>
              </ResourceParams>
             </Context>
            <Context path="/bbsTJ" docBase="D:\JavaSoft\cetc\bbsTJ" debug="0" reloadable="true"/>
            <Context path="/pool" docBase="D:\JavaSoft\cetc_pool" debug="0" reloadable="true"/>
            <Context path="/cetc" docBase="D:\JavaSoft\cetc" debug="0" reloadable="true"/>
            <Context path="/mobil" docBase="D:\JavaSoft\mobil" debug="0" reloadable="true"/>      </Host>    </Engine>  </Service>  <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
           as its servlet container. Please read the README.txt file coming with……
    ……
    ……
    ……重点是找到</Context>,大概在288行左右;然后添加一条配置信息如下<Context path="/bbs" docBase="X:\JavaSoft\cetc\bbsTJ" debug="0" reloadable="true"/>docBase是物理路径path是你想要显示的请求url
      

  4.   


    另外有些相关的东东你该知道的,顺便也提一下,呵呵,拿你当菜菜了……应用发布目录下的WEB-INF下面有个web.xml,应该配置默认访问文件类型……
    ……
    ……
        <welcome-file-list>
       <welcome-file>index.html</welcome-file>
       <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>……
    ……
    ……server.xml配置文件的位置:你的服务器安装目录\conf
    比如我的是:D:\JavaSoft\Apache Tomcat 4.0\conf