Hi. I need help.
My configuration is:
Apache-2.0.32(SSL)
Tomcat-4.0.4
mod-jk
jdk1.4

When I try to run some servlet I get:

************************************************
Server error!
El servidor encontro un error interno y fue imposible completar su solicitud. 
Mensaje de error: 
handler "jakarta-servlet" not found for: HelloWorldExample 
Favor de contactar al webmaster en caso de que usted crea que existe un error en el 
servidor. 
Error 500
london.dif.um.es 
Mon Mar 18 13:35:59 2002 
Apache/2.0.32 (Unix) DAV/2 mod_ssl/3.0a0 OpenSSL/0.9.6b 
**************************************************************

This seems to be that ajp connector is not foundˇˇ
This is my configuratión:
server.xml:
***********************************************************
  <Service name="Tomcat-Standalone">

    <!-- Define an AJP 1.3 Connector on port 8009 -->
 
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>
 

    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared globally -->

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!-- Replace the above Realm with one of the following to get a Realm
           stored in a database and accessed via JDBC -->


      <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">

      <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
          append="true" />

        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common"/>

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
         timestamp="true"/>


        <!-- Tomcat Manager Context -->
        <Context path="/manager" docBase="manager" 
         debug="0" privileged="true"/>

        <!-- Tomcat Examples Context -->
        <Context path="/examples" docBase="examples" debug="0"
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_examples_log." suffix=".txt"
           timestamp="true"/>
          <Ejb   name="ejb/EmplRecord" type="Entity"
                 home="com.wombat.empl.EmployeeRecordHome"
               remote="com.wombat.empl.EmployeeRecord"/>
          <Environment name="maxExemptions" type="java.lang.Integer"
                      value="15"/>
          <Parameter name="context.param.name" value="context.param.value"
                     override="false"/>
          <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/EmployeeAppDb">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value></value></parameter>
            <parameter><name>driverClassName</name>
              <value>org.hsql.jdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:HypersonicSQL:database</value></parameter>
          </ResourceParams>
          <Resource name="mail/Session" auth="Container"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/Session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>localhost</value>
            </parameter>
          </ResourceParams>
        </Context>

        <!-- Tomcat Examples Context -->
        <Context path="/myapp" docBase="myapp" debug="0"
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_myapp_log." suffix=".txt"
           timestamp="true"/>
          <Ejb   name="ejb/EmplRecord" type="Entity"
                 home="com.wombat.empl.EmployeeRecordHome"
               remote="com.wombat.empl.EmployeeRecord"/>
          
    <!--
          <Manager className="org.apache.catalina.session.PersistentManager"
              debug="0"
              saveOnRestart="true"
              maxActiveSessions="-1"
              minIdleSwap="-1"
              maxIdleSwap="-1"
              maxIdleBackup="-1">
                <Store className="org.apache.catalina.session.FileStore"/>
          </Manager>
    -->
          <Environment name="maxExemptions" type="java.lang.Integer"
                      value="15"/>
          <Parameter name="context.param.name" value="context.param.value"
                     override="false"/>
          <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/EmployeeAppDb">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value></value></parameter>
            <parameter><name>driverClassName</name>
              <value>org.hsql.jdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:HypersonicSQL:database</value></parameter>
          </ResourceParams>
          <Resource name="mail/Session" auth="Container"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/Session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>localhost</value>
            </parameter>
          </ResourceParams>
        </Context>

      </Host>

    </Engine>

  </Service>


***********************************************************

my worker.properties:
************************************************************

workers.tomcat_home=/usr/local/jakarta/tomcat4.0

workers.java_home=/usr/local/j2sdk1.4.0

ps=/
worker.list=ajp13 ,ajp14, inprocess
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy

worker.ajp14.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)/tomcat.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)/catalina.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)/tomcat-util.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)/tomcat-jk2.jar 
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
**************************************************************

my httpd.conf:

***************************************************************
ServerRoot "/usr/local/apache2"


LoadModule    jk_module  modules/mod_jk.so
JkWorkersFile /usr/local/jakarta/tomcat4.0/conf/workers.properties
JkLogFile     /usr/local/apache2/logs/mod_jk.log
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

Alias /myappp "/usr/local/jakarta/tomcat4.0/webapps/myapp"
<Directory "/usr/local/jakarta/tomcat4.0/webapps/myapp">
Options Indexes FollowSymLinks
</Directory>
 
    JkMount /manager ajp13
    JkMount /manager/* ajp13
 
    JkMount /examples ajp13
    JkMount /examples/* ajp13
 
    JkMount /tomcat-docs ajp13
    JkMount /tomcat-docs/* ajp13

    JkMount /webdav ajp13
    JkMount /webdav/* ajp13

JkMount /myapp/servlet/* ajp13

    JkMount /myapp ajp13
    JkMount /myapp/* ajp13


ServerName london.dif.um.es

DocumentRoot "/usr/local/apache2/htdocs"


<IfModule mod_ssl.c>
    Include conf/ssl.conf
</IfModule>


************************************************************************
my ssl.conf 
*************************************************************************

<IfDefine SSL>

Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
SSLPassPhraseDialog  builtin

SSLSessionCacheTimeout  300

SSLMutex  file:logs/ssl_mutex

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog      logs/ssl_engine_log
SSLLogLevel info

<VirtualHost _default_:443>

DocumentRoot "/usr/local/apache2/htdocs"
ServerName london.dif.um.es
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/error_log
TransferLog logs/access_log

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

#   SSL Cipher Suite:
#   List the ciphers that the client is permitted to negotiate.
#   See the mod_ssl documentation for a complete list.
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /usr/local/...
SSLCertificateKeyFile /usr/local/...
SSLCACertificateFile /usr/local/....
SSLVerifyClient optional
SSLOptions +ExportCertData +StdEnvVars
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/apache2/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>


JkExtractSSL On 
JkHTTPSIndicator HTTPS 
JkSESSIONIndicator SSL_SESSION_ID 
JkCIPHERIndicator SSL_CIPHER 
JkCERTSIndicator SSL_CLIENT_CERT 


<Location "/myapp/WEB-INF/">
AllowOverride None
    deny from all
</Location>

<Location "/myapp/META-INF/">
AllowOverride None
    deny from all
</Location>

</VirtualHost>                                  

</IfDefine>

******************************************************************

Reply via email to