RE: Apache+Tomcat Configuration problems

2002-10-25 Thread Turner, John

Yup, ditto Milt and Robert.  You've got JK directives but you're loading
JK2.  To get rid of your Apache config error, use mod_jk.so instead of
mod_jk2.so, or keep mod_jk2.so and change your config to a JK2 config.

John


> -Original Message-
> From: J.F. Noonan [mailto:jfn@;msc.com]
> Sent: Thursday, October 24, 2002 5:29 PM
> To: [EMAIL PROTECTED]
> Subject: Apache+Tomcat Configuration problems
> 
> 
> 
> OK, I'm about ready to scream.  Although I'm certain that I've
> missed something appallingly simple, I have no idea what that
> something is.
> 
> I have installed Tomcat tomcat4-4.1.12-full.2jpp.noarch.rpm on a
> RH7.3 system.  I have compiled and installed Apache 1.3.27 with
> mod_ssl, EAPI, and mod_so.  I have read through:
> 
> 
> 
> more times than I care to count.  I have in httpd.conf:
> 
> 
> 
> LoadModule jk2_module modules/mod_jk2.so
> AddModule  mod_jk2.c
> 
> 
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkMount  /*.jsp ajp13
> JkMount /servlet/* ajp13
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache+Tomcat Configuration problems

2002-10-24 Thread Robert L Sowders
Looks like your getting jk2 and jk mixed up a bit. 

Have a look at http://www.pubbitch.org/jboss/mod_jk2.html.  Most of the 
"JkMount" stuff is done in worker2.properties via uri statements.  You can 
still do this in your httpd.conf file, it's just called JkUriSet now. 
Other JkSet commands work as well.

So you'll need a workers2.properties file as well as a jk2.properties 
file, (many examples are available, try google).  Not sure if it makes 
sense to have duplicate uri statements in both httpd.conf and wk2.prop 
files though.  It would make sense for virtual servers if the default 
server is not mapping it already in wk2.prop.

>From the src, mod_jk2.c
/**
 * 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.
 */

You should also try a search for JkUriSet and JkSet, to see how others 
have used it.

rls






"J.F. Noonan" <[EMAIL PROTECTED]>
10/24/2002 02:29 PM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:Apache+Tomcat Configuration problems


OK, I'm about ready to scream.  Although I'm certain that I've
missed something appallingly simple, I have no idea what that
something is.

I have installed Tomcat tomcat4-4.1.12-full.2jpp.noarch.rpm on a
RH7.3 system.  I have compiled and installed Apache 1.3.27 with
mod_ssl, EAPI, and mod_so.  I have read through:



more times than I care to count.  I have in httpd.conf:



LoadModule jk2_module modules/mod_jk2.so
AddModule  mod_jk2.c


JkWorkersFile /etc/httpd/conf/workers.properties
JkMount  /*.jsp ajp13
JkMount /servlet/* ajp13



but apachectl configtest gives:

"Syntax error on line 996 of /usr/local/apache/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by
a module not included in the server configuration"

Any 'JkXyz' I put in the file does that, and so the server fails
to start.

The Tomcat server works fine standalone i.e.
http://blah.blah:8080/ brings up the expected servlet-ed content.

I have googled and read through archives, but I'm simply not
getting something right here.

I would be most grateful for any light anyone can shine on this
situation.

thx,


-- 

Joseph F. Noonan
Rigaku/MSC Inc.
[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache+Tomcat Configuration problems

2002-10-24 Thread Milt Epstein
On Thu, 24 Oct 2002, J.F. Noonan wrote:

> OK, I'm about ready to scream.  Although I'm certain that I've
> missed something appallingly simple, I have no idea what that
> something is.
>
> I have installed Tomcat tomcat4-4.1.12-full.2jpp.noarch.rpm on a
> RH7.3 system.  I have compiled and installed Apache 1.3.27 with
> mod_ssl, EAPI, and mod_so.  I have read through:
>
> 
>
> more times than I care to count.  I have in httpd.conf:
>
> 
> LoadModule jk2_module modules/mod_jk2.so
> AddModule  mod_jk2.c
> 
>
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkMount  /*.jsp ajp13
> JkMount /servlet/* ajp13

Your problem is that these latter three directives are *mod_jk*
directives, not *mod_jk2* directives.  Check the documentation or the
list archives for info on setting mod_jk2 up (or switch to mod_jk).


> 
>
> but apachectl configtest gives:
>
> "Syntax error on line 996 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by
> a module not included in the server configuration"
>
> Any 'JkXyz' I put in the file does that, and so the server fails
> to start.
>
> The Tomcat server works fine standalone i.e.
> http://blah.blah:8080/ brings up the expected servlet-ed content.
>
> I have googled and read through archives, but I'm simply not
> getting something right here.
>
> I would be most grateful for any light anyone can shine on this
> situation.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache-Tomcat configuration problems: PLEASE HELP

2000-12-18 Thread Dave Smith

Dave,

For me, the epiphany came when I figured out
that the server.xml Context needs to match up
with the apache directory you are serving out of.

See how your server.xml is mapping
the docBase to webapps/examples? That is
most likely a folder in the tomcat installation.
Apache doesn't know anything about that. To
synch them up, do something like this:

DocumentRoot for apache:  "i:/program files/Apache-1.3.14/htdocs"

in server.xml:




This should get you working.

Regards,

Dave
- Original Message -
From: "Dave Emerson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 9:43 AM
Subject: Apache-Tomcat configuration problems: PLEASE HELP


> Hi, I've been trying to get Tomcat and Apache configured to avoid the need
> to reference the port number in the URL.  Instead of
> http://localhost:8080/, I want to be able to say
> http://localhost/servlet/.   Isn't that what mod_jk is supposed to do for
> me?  At the moment I just like to get the same display of the default
> static web page that displays when I enter http://localhost:8080/.  Am I
> missing something fundamental here?
>
> I've followed mod_jk-howto, apache-tomcat-howto, workers-howto.  My
> configuration is entirely vanilla.  Tomcat works fine standalone.  Apache
> works fine standalone (including virtual hosts).
>
> My software is as follows:
> OS -> Win2000 Server
> Apache -> 1.3.14
> JKD -> 1.3
> Tomcat -> 3.2.1
>
> excerpts from various config files and logs are:
>
> ###
> SERVER.XML:
> except for enabling debugging and the host section below, the server.xml
> file is as shipped with 3.2.1
> ###
>
>  
>   docBase="webapps/examples" />
>   docBase="webapps/ROOT" />
>  
>
>
> ###
> HTTPD.CONF
> except for setting the following, the httpd.conf is as shipped with 1.3.14
> ###
>
> ServerRoot "i:/program files/Apache-1.3.14"
> DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
> 
> ServerName localhost
>
> include I:/Dev/jakarta-tomcat/conf/mod_jk.conf
>
> NameVirtualHost *
>
> 
>  ServerName localhost
>  DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
>  JkMount /*.jsp ajp12
>  JkMount /servlet/* ajp12
> 
> 
>  ServerAdmin [EMAIL PROTECTED]
>  DocumentRoot "I:/DataFiles/SabrewingRoot"
>  ServerName www.sabrewing.com
>  ErrorLog logs/www.sabrewing.com-error_log
>  JkMount /*.jsp ajp12
>  JkMount /servlet/* ajp12
>  CustomLog logs/www.sabrewing.com-access_log common
> 
>
>
> ###
> MOD_JK.CONF
> ###
>
> ###
> # Auto generated configuration. Dated: Sun Dec 17 08:14:13 EST 2000
> ###
>
> #
> # The following line instructs Apache to load the jk module
> #
> LoadModule jk_module modules/mod_jk.dll
>
> JkWorkersFile "I:/Dev/jakarta-tomcat/conf/workers.properties"
> JkLogFile "I:/Dev/jakarta-tomcat/logs/mod_jk.log"
>
> #
> # Log level to be used by mod_jk
> #
> JkLogLevel debug
>
> ###
> # SSL configuration   #
> #
> # By default mod_jk is configured to collect SSL information from
> # the apache environment and send it to the Tomcat workers. The
> # problem is that there are many SSL solutions for Apache and as
> # a result the environment variable names may change.
> #
> # The following (commented out) JK related SSL configureation
> # can be used to customize mod_jk's SSL behaviour.
> #
> # Should mod_jk send SSL information to Tomact (default is On)
> # JkExtractSSL Off
> #
> # What is the indicator for SSL (default is HTTPS)
> # JkHTTPSIndicator HTTPS
> #
> # What is the indicator for SSL session (default is SSL_SESSION_ID)
> # JkSESSIONIndicator SSL_SESSION_ID
> #
> # What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
> # JkCIPHERIndicator SSL_CIPHER
> #
> # What is the indicator for the client SSL certificated (default is
> SSL_CLIENT_CERT)
> # JkCERTSIndicator SSL_CLIENT_CERT
> #
> # #
> ###
>
> #
> # Root context mounts for Tomcat
> #
> JkMount /*.jsp ajp12
> JkMount /servlet/* ajp12
>
> #
> # Auto configuration for the /examples context starts.
> #
>
> #
> # The following line makes apache aware of the location of the /