编译好的CLASS文件放在webapps\xbook\WEB-INF\classes\xbook\bookstore下,记得WEB-INF一定要大写,classes一定要小写,另外你创建的xbook虚拟目录在conf\server.xml中要标注.

解决方案 »

  1.   

    这样吧,你告诉我
    (0) Download and Install a Java Development Kit;
    (1) Download and Install the Ant Binary Distribution;
    (2) Download and Install the JAXP/1.1 Reference Implementation;
    (3) Download and Install the Xerces 1 Distribution;
    (4) Download and Install Subproject Source Code;
    (5) Download and Install the Servlet API Binary Distribution;
    (6) Steps (7) - (17) are optional, but are necessary to build a complete binary
        distribution of Tomcat 4.0. Set the "full.dist" property to "on" in the
        build.properties file (see step (17)) to build a complete distribution.
        Regular contributors to Tomcat are encouraged to use the complete build 
        option.
    (7) Download and Install JDBC Optional Package API Binary Distribution;
    (8) Download and Install the JMX 1.0 Reference Implementation;
    (9) Download and Install the JNDI 1.2.1 Reference Implementation;
    (10) Download and Install the Java Activation Framework 1.0.1;
    (11) Download and Install JavaMail 1.2;
    (12) Download and Install the JSSE 1.0.2 Reference Implementation;
    (13) Download and Install the Java Transaction APIs;
    (14) Download and Install the Tyrex Data Source Package;
    (15) Download and Install the JUnit Testing Package (OPTIONAL)
    这些中哪些可以不用,除了(0)(1)(3)和j2sdk1.4外我都没下到,一个个找挺麻烦的,怎么解决?可以重给分问这个问题的,不用担心分给少了 :)
      

  2.   

    那请问设server.conf文件的话只加
    <context path="/xbook" docBase="webapps/xbook" 
            defaultSessionTimeOut="30" isWARExpanded=true"
            isInvokerEnabled="true" isWorkDirPersistent="false" 
            debug="0" reloadable="true">
    </content>
    这么两句可以吗?要不要添加其他信息?利用ant配置有必要吗?
      

  3.   

    加<context path="/xbook" docbase="xbook" debug="0" reloadable="true" crossContext="true">
      </context>
    这样就可以在webapp下建立xbook文件夹了.
      

  4.   

    一般来说你配置JSP运行环境只要装J2SDK+tomcat就可以了.然后在notepad里写代码,放到j2sdk下编译(在用BEAN的情况下),在tomcat下执行.我用的是J2SDK1.4+TOMCAT4.1.18.如果要用JDBC连数据库再装一个数据库,这样足够了.