在resin.conf这个配置文件中,加上<web-app id='work'/>这个标签,就可以了,从起Resin,自动创建目录结构,默认在doc这个目录下,还可以设置和doc平级的,不过这个足够了...

解决方案 »

  1.   

    <web-app id='/test' app-dir="/test">
          <!--
             - The classpath directive may be repeated.  Source is optional
             - Servlets and beans generally belong in WEB-INF/classes
            -->
          
          <classpath id='classes'
                     source='src'
                     compile='true'/>      <session-config>
            <session-max>4096</session-max>
            <session-timeout>30</session-timeout>
            <enable-cookies>true</enable-cookies>
            <enable-url-rewriting>true</enable-url-rewriting>        <!--
               - Store sessions in the filesystem, so they can persist across
               - servlet and class changes.
               -
               - Uncomment this during development.
              -->
            <!--
               -  <file-store>WEB-INF/sessions</file-store>
              -->
          </session-config>      <!-- enable multipart-mime/form processing -->
          <!--
             - <multipart-form upload-max='-1'/>
            -->      <!-- /~user maps to user directories -->
          <path-mapping url-regexp='^/~([^/]*)'
                        real-path='/home/$1/public_html/'/>
        </web-app>
      

  2.   

    <classpath id='classes'
                     source='src'
                     compile='true'/>
    这部分的内容可以帮助你在修改.java文件后自动编译并调用,很方便的,比TOMCAT好用多了