I have a similar problem, but the only thing i cant get working is any url
in which a servlet is being called..

x.x.44.54 - - [08/Oct/2002:21:29:21 -0800] "GET /servlet/test HTTP/1.1"
404 -

The tomcat access log always reports a 404 no matter which port the servlet
is called on 80 or 8080.

I have tried both mod_jk as well as mod_jk2 and neither work. I am running
Apache 2.0.42 and Tomcat 4.1.12 on win2k/sp1 w/ jdk1.4.1 fcs.

Here is my setup:

APACHE2_HOME="C:\Program Files\Apache Group\Apache2"
CATALINA_HOME=e:\tomcat
JAVA_HOME=c:\jdk1.4
Path="C:\Program Files\Apache Group\Apache2\bin";"C:\Program Files\Apache
Group\
Apache2\modules";C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
TOMCAT_HOME=e:\tomcat

C:\Program Files\Apache Group\Apache2\conf\httpd.conf
C:\Program Files\Apache Group\Apache2\modules\mod_jk.dll
C:\Program Files\Apache Group\Apache2\modules\mod_jk2.dll
C:\Program Files\Apache Group\Apache2\modules\jkjni.dll
C:\Program Files\Apache Group\Apache2\modules\jni_connect.dll
E:\tomcat\conf\workers.properties
E:\tomcat\conf\server.xml

conf files are attached.. maybe someone on this list can help us both. :)

----- Original Message -----
From: "none none" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 12:27 PM
Subject: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win 2k


> Hi all,
> I am trying to make working
>  Apache 2.0.42 or 2.0.43 and
>  Tomcat 4.1.10 or 4.1.12 with
>  mod_jk or mod_jk2 on
>  Windows 2K
> since last friday with no results !!!
> I don't know if is me, but i found really hard setup that enviroment
lately, before was easy (until Apache 2.0.3x and Tomcat 4.0.4).
>
> Apache installation OK,
> Tomcat installation OK,
> Apache running on port 80 OK,
> Tomcat running on port 8080 OK,
>
> I followed the HOW-TO guide step by step, but
> Apache-Tomcat togheter are  NOT WORKING  , both cases mod_jk and mod_jk2.
> JK:
> http://localhost:8080/examples  - running
> http://localhost/examples - NOT RUNNING !!!
> the error i get in the apache log is:
> ...File not Found: C:/servers/apache2/htdocs/examples
>
> JK2:
> same as above.
> + really hard to setup all the parameters.
>
> why it is going in the htdocs folder?
> I know i could set 'htdocs' to point to 'tomcat/webapps' , but even if i
do it will not work, this time i have a 404 error from Tomcat.
> Also the auto-conf file contain the alias + directory definition inside,
so should be not necessary, right?
>
> Please help, it's driving me crazy.
> thank you.
>
>
>
> ____________________________________________________________
> Watch a championship game with Elway or McGwire.
> Enter Now at http://champions.lycos.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
     parent-child relationships with each other -->

<!-- A "Server" is a singleton element that represents the entire JVM,
     which may contain one or more "Service" instances.  The Server
     listens for a shutdown command on the indicated port.

     Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" or "Loggers" at this level.
 -->

<Server port="8005" shutdown="SHUTDOWN" debug="0">


  <!-- Uncomment these entries to enable JMX MBeans support -->
<!--
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>
-->

  <!-- Global JNDI resources -->
  <GlobalNamingResources>

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>

  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" (and therefore the web applications visible
       within that Container).  Normally, that Container is an "Engine",
       but this is not required.

       Note:  A "Service" is not itself a "Container", so you may not
       define subcomponents such as "Valves" or "Loggers" at this level.
   -->

  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Tomcat-Standalone">

    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value to -1 -->

    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8009" minProcessors="20" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="20" debug="99" connectionTimeout="20000"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
-->

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="20" maxProcessors="250" acceptCount="10" debug="0"/>

    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host). -->

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

      <!-- Global logger unless overridden at lower levels -->
      <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 -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase"/>

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

        <!-- Access log processes all requests for this virtual host.  By
             default, log files are created in the "logs" directory relative to
             $CATALINA_HOME.  If you wish, you can specify a different
             directory with the "directory" attribute.  Specify either a relative
             (to $CATALINA_HOME) or absolute path to the desired directory.
        -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>
        -->

        <!-- Logger shared by all Contexts related to this virtual host.  By
             default (when using FileLogger), log files are created in the "logs"
             directory relative to $CATALINA_HOME.  If you wish, you can specify
             a different directory with the "directory" attribute.  Specify either a
             relative (to $CATALINA_HOME) or absolute path to the desired
             directory.-->
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
	        timestamp="true"/>

        <!-- Define properties for each web application.  This is only needed
             if you want to set non-default properties, or have web application
             document roots in places other than the virtual host's appBase
             directory.  -->

        <!-- Tomcat Root Context -->
        <!--
          <Context path="" docBase="ROOT" debug="0"/>
        -->
      </Host>

	<Host name="www.gregoire.org" appBase="e:/www/gregoire.org" unpackWARs="false">
		<Alias>gregoire.org</Alias>
		<Alias>64.66.4.41</Alias>

		<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" workersConfig="e:/tomcat/conf/workers.properties" jkWorker="worker2" append="true" />

		<Context docBase="" path="" crossContext="false" debug="9"	reloadable="true" />

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

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

	</Host>

	<Host name="www.xeres.com" appBase="e:/www/xeres.com" unpackWARs="false">
		<Context docBase="" path="" crossContext="false" debug="0"	reloadable="true" />
       	<Logger className="org.apache.catalina.logger.FileLogger" directory="logs"  prefix="xeres_log." suffix=".txt" timestamp="true"/>
	</Host>

	<Host name="www.affinity-fg.com" appBase="e:/www/affinity-fg.com" unpackWARs="false">
		<Alias>affinity-fg.com</Alias>
		<Context docBase="" path="" crossContext="false" debug="0"	reloadable="false" />
      	<Logger className="org.apache.catalina.logger.FileLogger" directory="logs"  prefix="affinity_log." suffix=".txt" timestamp="true"/>
	</Host>

    </Engine>

  </Service>

</Server>

Attachment: workers.properties
Description: Binary data

Attachment: httpd.conf
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to