Re: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

2002-09-18 Thread Robert L Sowders

Have you tried using JKMount inside your virtual Directory statements in 
httpd.conf.  You used to be able to do this with JK, did JK2 do away with 
this?  I thought I saw somewhere in the src that all these pre existing 
Directory statements were preserved for JK2.  Am I wrong?  Maybe I was 
dreaming.  There sure seems to be quite a few people that are having 
problems with this.

Has anyone tried to use JKMount inside the virtual Directory?  I don't run 
virtual or I'd try it myself.

rls





"Terry Anderson" <[EMAIL PROTECTED]>
09/17/2002 11:35 PM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

All,

I've been trying to get .jsp files to display with virtuals on
Apache2+Tomcat4.1+Jdk1.4+Mod_JK2.  However, I've not been very successful.
All static content displays, but cannot get dynamic content to display.

I have included my current Httpd.conf and Server.xml files.  I'd 
appreciate
any samples/docs you may know of, or suggestions of where I've gone wrong.

I'm sure this is an easy problem, but I've not been able to find the
solution, either by reviewing this mail list or elsewhere.

Thanks in advance,

TA


Environment:
Apache 2.0.40
Tomcat 4.1.10
Mod_JK2
Java 1.4.0_02
Win2000 Pro


* HTTPD.CONF START *
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are 
unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process 
as
a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default'
server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), 
the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/apache/Apache2" will be interpreted by the
# server as "C:/apache/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at
http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "C:/apache/Apache2"

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
#ScoreBoardFile logs/apache_runtime_status

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile logs/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of

Re: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

2002-09-18 Thread Robert L Sowders

Hmmm,

I found this in the src;

/**
 * Set a property associated with a URI, using native  
 * directives.
 *
 * This is used if you want to use the native mapping and
 * integrate better into apache.
 *
 * Same behavior can be achieved by using uri.properties and/or JkSet.
 * 
 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.
 *
 * XXX This is a special configuration, for most users just use
 * the properties files.
 */

I believe this is still in effect.  No one has said that doesn't work. Can 
somebody test this?  In any case there is a PR filed now (12750).

rls





"Terry Anderson" <[EMAIL PROTECTED]>
09/17/2002 11:35 PM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

All,

I've been trying to get .jsp files to display with virtuals on
Apache2+Tomcat4.1+Jdk1.4+Mod_JK2.  However, I've not been very successful.
All static content displays, but cannot get dynamic content to display.

I have included my current Httpd.conf and Server.xml files.  I'd 
appreciate
any samples/docs you may know of, or suggestions of where I've gone wrong.

I'm sure this is an easy problem, but I've not been able to find the
solution, either by reviewing this mail list or elsewhere.

Thanks in advance,

TA


Environment:
Apache 2.0.40
Tomcat 4.1.10
Mod_JK2
Java 1.4.0_02
Win2000 Pro


* HTTPD.CONF START *
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are 
unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process 
as
a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default'
server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), 
the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/apache/Apache2" will be interpreted by the
# server as "C:/apache/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at
http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "C:/apache/Apache2"

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
#ScoreBoardFile logs/apache_runtime_status

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile logs/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request p

RE: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

2002-09-18 Thread Turner, John


FYI...in the case of mod_jk/mod_jk2 questions, the
workers.properties/workers2.properties file is probably more valuable than
server.xml for debugging and help.

John


> -Original Message-
> From: Terry Anderson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 2:35 AM
> To: [EMAIL PROTECTED]
> Subject: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2
> 
> 
> All,
> 
> I've been trying to get .jsp files to display with virtuals on
> Apache2+Tomcat4.1+Jdk1.4+Mod_JK2.  However, I've not been 
> very successful.
> All static content displays, but cannot get dynamic content 
> to display.
> 
> I have included my current Httpd.conf and Server.xml files.  
> I'd appreciate
> any samples/docs you may know of, or suggestions of where 
> I've gone wrong.
> 
> I'm sure this is an easy problem, but I've not been able to find the
> solution, either by reviewing this mail list or elsewhere.
> 
> Thanks in advance,
> 
> TA
> 
> 
> Environment:
> Apache 2.0.40
> Tomcat 4.1.10
> Mod_JK2
> Java 1.4.0_02
> Win2000 Pro
> 
> 
> * HTTPD.CONF START *
> #
> # Based upon the NCSA server configuration files originally 
> by Rob McCool.
> #
> # This is the main Apache server configuration file.  It contains the
> # configuration directives that give the server its instructions.
> # See http://httpd.apache.org/docs-2.0/> for detailed 
> information about
> # the directives.
> #
> # Do NOT simply read the instructions in here without understanding
> # what they do.  They're here only as hints or reminders.  If 
> you are unsure
> # consult the online docs. You have been warned.
> #
> # The configuration directives are grouped into three basic sections:
> #  1. Directives that control the operation of the Apache 
> server process as
> a
> # whole (the 'global environment').
> #  2. Directives that define the parameters of the 'main' or 'default'
> server,
> # which responds to requests that aren't handled by a 
> virtual host.
> # These directives also provide default values for the settings
> # of all virtual hosts.
> #  3. Settings for virtual hosts, which allow Web requests to 
> be sent to
> # different IP addresses or hostnames and have them handled by the
> # same Apache server process.
> #
> # Configuration and logfile names: If the filenames you 
> specify for many
> # of the server's control files begin with "/" (or "drive:/" 
> for Win32), the
> # server will use that explicit path.  If the filenames do *not* begin
> # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
> # with ServerRoot set to "C:/apache/Apache2" will be 
> interpreted by the
> # server as "C:/apache/Apache2/logs/foo.log".
> #
> # NOTE: Where filenames are specified, you must use forward slashes
> # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
> # If a drive letter is omitted, the drive on which Apache.exe 
> is located
> # will be used by default.  It is recommended that you always supply
> # an explicit drive letter in absolute paths, however, to avoid
> # confusion.
> #
> 
> ### Section 1: Global Environment
> #
> # The directives in this section affect the overall operation 
> of Apache,
> # such as the number of concurrent requests it can handle or where it
> # can find its configuration files.
> #
> 
> #
> # ServerRoot: The top of the directory tree under which the server's
> # configuration, error, and log files are kept.
> #
> # NOTE!  If you intend to place this on an NFS (or otherwise network)
> # mounted filesystem then please read the LockFile documentation
> # (available at
> http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
> # you will save yourself a lot of trouble.
> #
> # Do NOT add a slash at the end of the directory path.
> #
> ServerRoot "C:/apache/Apache2"
> 
> #
> # ScoreBoardFile: File used to store internal server process 
> information.
> # If unspecified (the default), the scoreboard will be stored in an
> # anonymous shared memory segment, and will be unavailable to 
> third-party
> # applications.
> # If specified, ensure that no two invocations of Apache 
> share the same
> # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
> #
> #ScoreBoardFile logs/apache_runtime_status
> 
> #
> # PidFile: The file in which the server should record its process
> # identification number when it starts.
> #
> PidFile logs/httpd.pid
> 
> #
> # Timeout: The number of seconds before receives and sends time out.
> #
> Timeout 300
> 
> #
> # KeepAlive: Whether or not to allow persistent connections (more than
> # one request per connection). Set to "Off" to deactivate.
> #
> KeepAlive On
> 
> #
> # MaxKeepAliveRequests: The maximum number of requests to allow
> # during a persistent connection. Set to 0 to allow an 
> unlimited amount.
> # We recommend you leave this number high, for maximum performance.
> #
> MaxKeepAliveRequests 100
> 
> #
> # KeepAliveTimeout: Number of seconds to wait for the next 
> reque

RE: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

2002-09-18 Thread Terry Anderson

Robert / John -

Thanks so much for you late night assistance! I followed the example below,
since JKMount didn't seem to work, and everything is up and running.

I really appreciate your help!

Thanks again, TA

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 3:57 AM
To: Tomcat Users List
Subject: Re: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2


Hmmm,

I found this in the src;

/**
 * Set a property associated with a URI, using native 
 * directives.
 *
 * This is used if you want to use the native mapping and
 * integrate better into apache.
 *
 * Same behavior can be achieved by using uri.properties and/or JkSet.
 *
 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.
 *
 * XXX This is a special configuration, for most users just use
 * the properties files.
 */

I believe this is still in effect.  No one has said that doesn't work. Can
somebody test this?  In any case there is a PR filed now (12750).

rls





"Terry Anderson" <[EMAIL PROTECTED]>
09/17/2002 11:35 PM
Please respond to "Tomcat Users List"


To: <[EMAIL PROTECTED]>
cc:
Subject:VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2

All,

I've been trying to get .jsp files to display with virtuals on
Apache2+Tomcat4.1+Jdk1.4+Mod_JK2.  However, I've not been very successful.
All static content displays, but cannot get dynamic content to display.

I have included my current Httpd.conf and Server.xml files.  I'd
appreciate
any samples/docs you may know of, or suggestions of where I've gone wrong.

I'm sure this is an easy problem, but I've not been able to find the
solution, either by reviewing this mail list or elsewhere.

Thanks in advance,

TA


Environment:
Apache 2.0.40
Tomcat 4.1.10
Mod_JK2
Java 1.4.0_02
Win2000 Pro


* HTTPD.CONF START *
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are
unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process
as
a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default'
server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32),
the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/apache/Apache2" will be interpreted by the
# server as "C:/apache/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at
http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "C:/apache/Apache2"

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (t