没有接触过eclipse,帮你UP一下

解决方案 »

  1.   

    <caucho.com>
    <log id='/log' href='stderr:' timestamp='[%Y-%m-%d %H:%M:%S.%s]'/>
    <java compiler="internal" compiler-args=""/>
    <jsp precompile='true' static-encoding='true' recompile-on-error='true'/>
    <http-server>
      <app-dir>F:\java\JspApplication\default.xmjsp.com</app-dir>
      <http port='8080'/>  <class-update-interval>2</class-update-interval>
      <servlet-classloader-hack>false</servlet-classloader-hack>
      <caucho-status>true</caucho-status>
      <thread-max>150</thread-max>
      <thread-keepalive id='100'/>
      <request-timeout id='30s'/>
      <accept-buffer-size id='256'/>
      <thread-min id='5'/>
      <ignore-client-disconnect>true</ignore-client-disconnect>
      <cache dir='cache' size='1024' entries='8192'/>
      <cache-mapping url-pattern='/' expires='2s'/>
      <servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
      <servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
      <welcome-file-list>index.xtp, index.jsp, index.html</welcome-file-list>  <host id='default.xmjsp.com'>
        <error-log id='log/error.log'/>
        <web-app id='/'>
          <classpath id='WEB-INF/classes'
                     source='WEB-INF/classes'
                     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>
          </session-config>
          <path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
        </web-app>
      </host>
      <host id='test.xmjsp.com'>
        <app-dir>F:\java\JspApplication\test.xmjsp.com</app-dir>
        <error-log id='log/error.log'/>
        <web-app id='/'>
          <classpath id='WEB-INF/classes'
                     source='WEB-INF/classes'
                     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>
          </session-config>
          <path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
        </web-app>
      </host>
      <host id='www.lcsdjsp.com'>
        <app-dir>F:\java\JspApplication\www.lcsdjsp.com</app-dir>
        <error-log id='log/error.log'/>
        <web-app id='/'>
          <classpath id='WEB-INF/classes'
                     source='WEB-INF/classes'
                     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>
          </session-config>
          <path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
        </web-app>
      </host></http-server>
    </caucho.com>
    这是我的配置文件,其中定义虚拟机