Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-09 Thread Robert L Sowders

If you still want an easy install and configuration for windows, try this 
one.
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.zip

In short here are 7 easy steps to get it working.  The jk2.prop and 
workers2.prop files are attached.  Remove .txt from each and use as is.

1.  Take all the defaults during installation, except for the install 
paths.  Install apache to c:\ this will install it to c:\Apache2, and 
tomcat to c:\Tomcat, Java to c:\Java.

2.  Stop Apache and place mod_jk2.dll in the APACHE_HOME/modules 
directory.

3.  Edit httpd.conf, add LoadModule jk2_module modules/mod_jk2.dll to the end of the 
LoadModules section.

4.  Add system environment variables and modify system PATH. 
CATALINA_HOME=c:\Tomcat 
JAVA_HOME=c:\Java 
TOMCAT_HOME=c:\Tomcat 
Add to system PATH c:\Java;c:\Java\bin

5.  Add a jk2.properties file to TOMCAT_HOME\conf and edit paths. 

6.  Add a workers2.properties file to APACHE2_HOME\conf and edit paths.

7.  Create three empty files in the APACHE2_HOME\conf directory
stdout.log
stderr.log
jk2.shm

8.  Reboot system.

9.  Give it a whirl http://localhost/examples

works for me

rls



## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=c:/Apache2/logs/jk2.shm

# In order to enable jni use any channelJni directive
channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess


[logger]
level=DEBUG

[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

#[lb:lb_1]
#info=A second load balancer.
#debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0

#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\Program Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read from registry)
OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
#alias=myVirtualHost:8003

#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
#context=/ex
#group=lb_1

[uri:/examples]
info=Example webapp in the default context. 
context=/examples
debug=0

#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0

[uri:/examples/servlets/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10



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


Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-09 Thread Robert L Sowders

Point of fact the mod_jk2.dll binaries compiled against Apache 2.0.42 at 
the jakarta builds site also work with 2.0.43.  If you're just want 
something working right now you might try mod_jk2 instead.




Jacob Kjome [EMAIL PROTECTED]
10/07/2002 08:50 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not 
 clear


The problem is you are using the 2.0.42 mod_jk dll with Apache 2.0.43. You 

need a mod_jk that was compiled specifically for version 2.0.43 of Apache.

This site is usually up-to-date with the binaries, but only have 2.0.42 
binaries right now:
http://www.acg-gmbh.de/mod_jk/

Check back for updated ones.

Jake

At 08:19 PM 10/7/2002 -0700, you wrote:
I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
2000 Advanced server

I have succesfuly installed
Apache 2.0.43
j2sdk-1_4_1-windows
Tomcat 4.1

I'm having trouble connecting Tomcat and Apache.

I've read all the documents and everytime I think I know were to go to 
edit
a file or look for a auto created file its not there.

I would like to use the Apache auto-configure or any other method that is
easy so I can begin the learning process.

What I've try so far:
*Installed applications
-Apache 2.0.43
-j2sdk-1_4_1-windows
-Tomcat 4.1

*Edited httpd.conf
Just addedInclude C:\Program Files\Apache Group\Tomcat
4.1/conf/jk/mod_jk.conf-auto

*Copied mod_jk-2.0.42.dll
Into  C:\Program Files\Apache Group\Apache2\modules

*Edit server.xml looked for AutoWebApp in C:\Program Files\Apache
Group\Tomcat 4.1\conf\server.xml
I could not find any line with AutoWebApp in it.
So I just added ApacheConfig /  just above the final /server

Here is an exerpt from the manual
To configure Tomcat to generate the Apache auto-configuration add the
following block to your TOMCAT_HOME/conf/server.xml file after 
AutoWebApp
... /.
ApacheConfig /

This is were I get lost. Also I'm not sure I'm copying the dll into the
right directory. All the other files in the module directory are of the 
.so
extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
specif were to put the dll. or at least the path is not refference the 
same
as my instalation.

Thanks in advance for any and all support

You can reach me at [EMAIL PROTECTED] or the board.






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




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




Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-08 Thread Henri Gomez

Documentation exist here :

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/

Binaries are here :

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/win32/


You should now be ready to use JK with Apache 2.0.43

Nota, you could .so or .dll are the same thing for Apache 2.0.43 on 
Windows boxes.


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




RE: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-08 Thread Turner, John


In addition to Jacob's concise post, I would add that if you can, re-install
everything to places with NO spaces in the pathnames.  Yes, the Apache
installer puts things in a path with spaces, but the people who wrote the
Apache installer were never concerned with what effect that would have on
integrating other things with Apache.  Based on my experience, and other
posts on the lists, integrating Apache with Tomcat can be problematic if
your pathnames have spaces.

John


 -Original Message-
 From: Admin Dobsons.org [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 07, 2002 11:20 PM
 To: [EMAIL PROTECTED]
 Subject: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not
 clear
 
 
 I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 
 on Windows
 2000 Advanced server
 
 I have succesfuly installed
 Apache 2.0.43
 j2sdk-1_4_1-windows
 Tomcat 4.1
 
 I'm having trouble connecting Tomcat and Apache.
 
 I've read all the documents and everytime I think I know were 
 to go to edit
 a file or look for a auto created file its not there.
 
 I would like to use the Apache auto-configure or any other 
 method that is
 easy so I can begin the learning process.
 
 What I've try so far:
 *Installed applications
 -Apache 2.0.43
 -j2sdk-1_4_1-windows
 -Tomcat 4.1
 
 *Edited httpd.conf
 Just addedInclude C:\Program Files\Apache Group\Tomcat
 4.1/conf/jk/mod_jk.conf-auto
 
 *Copied mod_jk-2.0.42.dll
 Into  C:\Program Files\Apache Group\Apache2\modules
 
 *Edit server.xml looked for AutoWebApp in C:\Program Files\Apache
 Group\Tomcat 4.1\conf\server.xml
 I could not find any line with AutoWebApp in it.
 So I just added ApacheConfig /  just above the final /server
 
 Here is an exerpt from the manual
 To configure Tomcat to generate the Apache auto-configuration add the
 following block to your TOMCAT_HOME/conf/server.xml file 
 after AutoWebApp
 ... /.
 ApacheConfig /
 
 This is were I get lost. Also I'm not sure I'm copying the 
 dll into the
 right directory. All the other files in the module directory 
 are of the .so
 extention so the mod_jk-2.0.42.dll is the only dll.The manual 
 is also not
 specif were to put the dll. or at least the path is not 
 refference the same
 as my instalation.
 
 Thanks in advance for any and all support
 
 You can reach me at [EMAIL PROTECTED] or the board.
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread Jacob Kjome


The problem is you are using the 2.0.42 mod_jk dll with Apache 2.0.43.  You 
need a mod_jk that was compiled specifically for version 2.0.43 of Apache.

This site is usually up-to-date with the binaries, but only have 2.0.42 
binaries right now:
http://www.acg-gmbh.de/mod_jk/

Check back for updated ones.

Jake

At 08:19 PM 10/7/2002 -0700, you wrote:
I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
2000 Advanced server

I have succesfuly installed
Apache 2.0.43
j2sdk-1_4_1-windows
Tomcat 4.1

I'm having trouble connecting Tomcat and Apache.

I've read all the documents and everytime I think I know were to go to edit
a file or look for a auto created file its not there.

I would like to use the Apache auto-configure or any other method that is
easy so I can begin the learning process.

What I've try so far:
*Installed applications
-Apache 2.0.43
-j2sdk-1_4_1-windows
-Tomcat 4.1

*Edited httpd.conf
Just addedInclude C:\Program Files\Apache Group\Tomcat
4.1/conf/jk/mod_jk.conf-auto

*Copied mod_jk-2.0.42.dll
Into  C:\Program Files\Apache Group\Apache2\modules

*Edit server.xml looked for AutoWebApp in C:\Program Files\Apache
Group\Tomcat 4.1\conf\server.xml
I could not find any line with AutoWebApp in it.
So I just added ApacheConfig /  just above the final /server

Here is an exerpt from the manual
To configure Tomcat to generate the Apache auto-configuration add the
following block to your TOMCAT_HOME/conf/server.xml file after AutoWebApp
... /.
ApacheConfig /

This is were I get lost. Also I'm not sure I'm copying the dll into the
right directory. All the other files in the module directory are of the .so
extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
specif were to put the dll. or at least the path is not refference the same
as my instalation.

Thanks in advance for any and all support

You can reach me at [EMAIL PROTECTED] or the board.






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



Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread Jacob Kjome

Whoops, I didn't read your whole message before I sent the last response.

You are looking for auto-generating the config for mod_jk.

Try this (change any paths given to match your installation):

Put the following immediately within your Server ... element:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll
 jkDebug=info
 
workersConfig=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.12/conf/jk/workers.properties
 jkLog=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.12/logs/mod_jk.log 
/


Then put the following immediately within any and all Host ... elements:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true
 forwardAll=false /


This will generate a auto\mod_jk.conf file in Tomcat's conf directory.

Note.  I never use that file.  I copy it to the conf directory and modify 
it.  It can't be used directly because the way the auto-configuration 
writes out the inclusion of mod_jk.dll isn't right and I haven't figured 
out how to make it do it properly.  It writes it out like this:

IfModule !mod_jk.c
   LoadModule jk_module c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll
/IfModule

However, when you include it in your httpd.conf, Apache doesn't lkek the 
full path.  So I rewrite that like this:

IfModule !mod_jk.c
   LoadModule jk_module modules/mod_jk.dll
/IfModule


Then I add any other specifics to that file that I want in there, but the 
autoconfigure couldn't have known about like apps that I install 
dynamically at runtime.

BTW, I'm not sure about that autowebapp deal?  What I gave you should 
do the trick.

Jake


At 08:19 PM 10/7/2002 -0700, you wrote:
I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
2000 Advanced server

I have succesfuly installed
Apache 2.0.43
j2sdk-1_4_1-windows
Tomcat 4.1

I'm having trouble connecting Tomcat and Apache.

I've read all the documents and everytime I think I know were to go to edit
a file or look for a auto created file its not there.

I would like to use the Apache auto-configure or any other method that is
easy so I can begin the learning process.

What I've try so far:
*Installed applications
-Apache 2.0.43
-j2sdk-1_4_1-windows
-Tomcat 4.1

*Edited httpd.conf
Just addedInclude C:\Program Files\Apache Group\Tomcat
4.1/conf/jk/mod_jk.conf-auto

*Copied mod_jk-2.0.42.dll
Into  C:\Program Files\Apache Group\Apache2\modules

*Edit server.xml looked for AutoWebApp in C:\Program Files\Apache
Group\Tomcat 4.1\conf\server.xml
I could not find any line with AutoWebApp in it.
So I just added ApacheConfig /  just above the final /server

Here is an exerpt from the manual
To configure Tomcat to generate the Apache auto-configuration add the
following block to your TOMCAT_HOME/conf/server.xml file after AutoWebApp
... /.
ApacheConfig /

This is were I get lost. Also I'm not sure I'm copying the dll into the
right directory. All the other files in the module directory are of the .so
extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
specif were to put the dll. or at least the path is not refference the same
as my instalation.

Thanks in advance for any and all support

You can reach me at [EMAIL PROTECTED] or the board.






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



Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread sonam singh


in order to connect the apache with tomccat there is
two or three way to connecyt 
1) using mod_jk 2) mod_webapps 3) mod_jserv
1) with mod_jk , create the mod_jk.dll copy it into
apache/modules directory and create the two files one
is mod_jk.conf  other is worker.properties 
mod_jk.conf look like this  change the path accourding
to u'r need 
..
LoadModule jk_module /apache/libexec/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile /apache/conf/workers.properties
JkLogFile  apache/logs/jk.log
JkLogLevel info
#JkMount /servlet/* ajp12
JkMount /contextXX(u'r context)/* ajp13


and worker.properties is like that ..


ps=\

worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp12


regards
Sonam Singh







--- Jacob Kjome [EMAIL PROTECTED] wrote:
 Whoops, I didn't read your whole message before I
 sent the last response.
 
 You are looking for auto-generating the config for
 mod_jk.
 
 Try this (change any paths given to match your
 installation):
 
 Put the following immediately within your Server
 ... element:
 
 Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
 

modJk=c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll
  jkDebug=info
 

workersConfig=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.12/conf/jk/workers.properties
 

jkLog=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.12/logs/mod_jk.log
 
 /
 
 
 Then put the following immediately within any and
 all Host ... elements:
 
 Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true
  forwardAll=false /
 
 
 This will generate a auto\mod_jk.conf file in
 Tomcat's conf directory.
 
 Note.  I never use that file.  I copy it to the conf
 directory and modify 
 it.  It can't be used directly because the way the
 auto-configuration 
 writes out the inclusion of mod_jk.dll isn't right
 and I haven't figured 
 out how to make it do it properly.  It writes it out
 like this:
 
 IfModule !mod_jk.c
LoadModule jk_module
 c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll
 /IfModule
 
 However, when you include it in your httpd.conf,
 Apache doesn't lkek the 
 full path.  So I rewrite that like this:
 
 IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.dll
 /IfModule
 
 
 Then I add any other specifics to that file that I
 want in there, but the 
 autoconfigure couldn't have known about like apps
 that I install 
 dynamically at runtime.
 
 BTW, I'm not sure about that autowebapp deal? 
 What I gave you should 
 do the trick.
 
 Jake
 
 
 At 08:19 PM 10/7/2002 -0700, you wrote:
 I'm trying to configure Tomcat 4.1 to run under
 Apache 2.0.43 on Windows
 2000 Advanced server
 
 I have succesfuly installed
 Apache 2.0.43
 j2sdk-1_4_1-windows
 Tomcat 4.1
 
 I'm having trouble connecting Tomcat and Apache.
 
 I've read all the documents and everytime I think I
 know were to go to edit
 a file or look for a auto created file its not
 there.
 
 I would like to use the Apache auto-configure or
 any other method that is
 easy so I can begin the learning process.
 
 What I've try so far:
 *Installed applications
 -Apache 2.0.43
 -j2sdk-1_4_1-windows
 -Tomcat 4.1
 
 *Edited httpd.conf
 Just addedInclude C:\Program Files\Apache
 Group\Tomcat
 4.1/conf/jk/mod_jk.conf-auto
 
 *Copied mod_jk-2.0.42.dll
 Into  C:\Program Files\Apache
 Group\Apache2\modules
 
 *Edit server.xml looked for AutoWebApp in
 C:\Program Files\Apache
 Group\Tomcat 4.1\conf\server.xml
 I could not find any line with AutoWebApp in it.
 So I just added ApacheConfig /  just above the
 final /server
 
 Here is an exerpt from the manual
 To configure Tomcat to generate the Apache
 auto-configuration add the
 following block to your TOMCAT_HOME/conf/server.xml
 file after AutoWebApp
 ... /.
 ApacheConfig /
 
 This is were I get lost. Also I'm not sure I'm
 copying the dll into the
 right directory. All the other files in the module
 directory are of the .so
 extention so the mod_jk-2.0.42.dll is the only
 dll.The manual is also not
 specif were to put the dll. or at least the path is
 not refference the same
 as my instalation.
 
 Thanks in advance for any and all support
 
 You can reach me at [EMAIL PROTECTED] or the board.
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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