Hi, when I use Tomcat-4.0-b5 standalone test, no errors report, but when I use Tomcat-Apache connectors, the Apache-1.3.19 is frozen, and the logs display no errors occured. I use Win2K OS, here is my httpd.conf:
*************************************************

ServerType standalone
 
ServerRoot "D:/usr/Apache"
 
PidFile logs/httpd.pid
 
ScoreBoardFile logs/apache_runtime_status
 
Timeout 300
 
KeepAlive On
 
MaxKeepAliveRequests 100
 
KeepAliveTimeout 15
 
MaxRequestsPerChild 0
 
ThreadsPerChild 50
 
LoadModule info_module modules/mod_info.so
LoadModule status_module modules/mod_status.so
LoadModule webapp_module modules/mod_webapp.dll
   
ExtendedStatus On
 
Port 80
 
ServerAdmin [EMAIL PROTECTED]
 
ServerName egcs
 
DocumentRoot "D:/usr/for_t4_test_root"
 
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
 
<Directory "D:/usr/for_t4_test_root">
    Options Indexes FollowSymLinks MultiViews
</Directory>
 
<IfModule mod_userdir.c>
    UserDir "D:/usr/Apache/users/"
</IfModule>
 
<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>
 
AccessFileName .htaccess
 
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
 
UseCanonicalName On
 
<IfModule mod_mime.c>
    TypesConfig conf/mime.types
</IfModule>
 
DefaultType text/plain
 
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
 
HostnameLookups Off
 
ErrorLog logs/error.log
 
LogLevel warn
 
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
 
CustomLog logs/access.log common
 
ServerSignature On
 
<IfModule mod_alias.c>
    Alias /icons/ "D:/usr/Apache/icons/"
    <Directory "D:/usr/Apache/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
   
    ScriptAlias /cgi-bin/ "D:/usr/Apache/cgi-bin/"
 
    <Directory "D:/usr/Apache/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
 
</IfModule>
 
<IfModule mod_autoindex.c>
 
    IndexOptions FancyIndexing
   
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
 
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
 
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
 
    DefaultIcon /icons/unknown.gif
 
    ReadmeName README
    HeaderName HEADER
 
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
 
</IfModule>
 
<IfModule mod_mime.c>
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
       
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage he .he
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .se
    AddLanguage cz .cz
    AddLanguage ru .ru
    AddLanguage tw .tw
    AddLanguage zh-tw .tw
    AddCharset Big5         .Big5    .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866        .cp866
    AddCharset ISO-8859-5   .iso-ru
    AddCharset KOI8-R       .koi8-r
    AddCharset UCS-2        .ucs2
    AddCharset UCS-4        .ucs4
    AddCharset UTF-8        .utf8
 
    <IfModule mod_negotiation.c>
        LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>
 
    AddType application/x-tar .tgz
 
</IfModule>
 
<IfModule mod_setenvif.c>
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
 
<Location /server-status>
    SetHandler server-status
</Location>
 
<Location /server-info>
    SetHandler server-info
</Location>
 
    WebAppConnection warpConnection warp egcs:8008
    WebAppInfo /jsp-info
    WebAppDeploy  app warpConnection /app
    WebAppDeploy  app2 warpConnection /app2
    WebAppDeploy  app3 warpConnection /app3
************************************************
   Here is my Server.xml:
************************************************
<Server port="8005" shutdown="SHUTDOWN" debug="0">
 
  <Service name="Tomcat-Standalone">
 
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="60000"/>
              
    <Engine name="Standalone" defaultHost="egcs" debug="0">
 
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log" suffix=".txt"
              timestamp="true"/>
 
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
     
      <Host name="egcs" debug="0" appBase="D:/usr/for_t4_test_root" unpackWARs="true">
 
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="egcs_access_log" suffix=".txt"
                 pattern="common"/>
        <Context path="" docBase="" debug="0" reloadable="true">
          <Resource name="jdbc/fpb" auth="CONTAINER"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/fpb">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value>zm</value></parameter>
            <parameter><name>driverClassName</name>
              <value>com.ashna.jturbo.driver.Driver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:JTurbo://172.16.1.156:1433/fpb/charset=GB2312</value></parameter>
          </ResourceParams>
          <Resource name="mail/session" auth="CONTAINER"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>smtp.21cn.com</value>
            </parameter>
          </ResourceParams>
        </Context>
 
      </Host>
 
    </Engine>
 
  </Service>
 
  <Service name="Tomcat-Apache">
 
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>
 
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" defaultHost="egcs" debug="0" appBase="D:/usr/for_t4_test_root">
 
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log" suffix=".txt"
              timestamp="true"/>
 
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
 
    </Engine>
 
  </Service>
 
</Server>
************************************************
    The web jsp file in the for_t4_test_root.zip file.
    I will be pleased for reply.
                       SongDongsheng 2001-05-18

for_t4_test_root.zip

Reply via email to