mod-jk2 on Linux. Tomcat on a NT server

2003-11-26 Thread Asif Chowdhary
Hi,

I have mod-jk2 working on Linux where I can see the JKstatus page.
My tomcat is running on an NT server.

Do I need to configure the jk2.properties file as well.

Thanks
Asif


mailto:[EMAIL PROTECTED]  
www.xeye.com  


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



RE: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-09-01 Thread Stuart Stephen

I had a similar problem, it wouldn't compile a .so in RH9.

I gave up on it and went back to good old trusty mod_jk 1 in the end.

-Original Message-
From: jerome moliere [mailto:[EMAIL PROTECTED]
Sent: 30 August 2003 09:20
To: Tomcat Users List
Subject: Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)


Eric J. Pinnell wrote:

Hi,
  

thanks eric,

JK2 should compile with just the following:

./configure --with-apxs2=/path/to/apache/bin/apxs
make
  

yes ,it should .
but I still can't have this fu... module compiled

It should create mod_jk2.so in the build directory tree not in the
directory that you ran configure and make from.  I forget exactly where it
puts it but a find ./ | grep so from the top level of the source should
root it out quick fast.

  

yes the location is ../build/jk2/apache2 but allways empty for me (no 
.so at all)
 the find keeps returning nothing for my .so
can't spent much time for this problem so I'll use mod_proxy instead 

Jerome



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




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



RE: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-09-01 Thread Eric J. Pinnell
I agree with Stuart.  Use JK if JK2 won't work.  I don't understand what's
up with JK2 and RH9.  Enough people are having troubles with it.

I'm curious enough now to take a look.

-e

On Mon, 1 Sep 2003, Stuart Stephen wrote:


 I had a similar problem, it wouldn't compile a .so in RH9.

 I gave up on it and went back to good old trusty mod_jk 1 in the end.

 -Original Message-
 From: jerome moliere [mailto:[EMAIL PROTECTED]
 Sent: 30 August 2003 09:20
 To: Tomcat Users List
 Subject: Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)


 Eric J. Pinnell wrote:

 Hi,
 
 
 thanks eric,

 JK2 should compile with just the following:
 
 ./configure --with-apxs2=/path/to/apache/bin/apxs
 make
 
 
 yes ,it should .
 but I still can't have this fu... module compiled

 It should create mod_jk2.so in the build directory tree not in the
 directory that you ran configure and make from.  I forget exactly where it
 puts it but a find ./ | grep so from the top level of the source should
 root it out quick fast.
 
 
 
 yes the location is ../build/jk2/apache2 but allways empty for me (no
 .so at all)
  the find keeps returning nothing for my .so
 can't spent much time for this problem so I'll use mod_proxy instead 

 Jerome



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




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



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



Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-30 Thread jerome moliere
Eric J. Pinnell wrote:

Hi,
 

thanks eric,

JK2 should compile with just the following:

./configure --with-apxs2=/path/to/apache/bin/apxs
make
 

yes ,it should .
but I still can't have this fu... module compiled
It should create mod_jk2.so in the build directory tree not in the
directory that you ran configure and make from.  I forget exactly where it
puts it but a find ./ | grep so from the top level of the source should
root it out quick fast.
 

yes the location is ../build/jk2/apache2 but allways empty for me (no 
.so at all)
 the find keeps returning nothing for my .so
can't spent much time for this problem so I'll use mod_proxy instead 

Jerome



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


Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-29 Thread jerome moliere
Hi all,
i'm not sure that's the right place for such question but I'm unable for 
2 days to get
the compilation goes to end
Everything seems to work but I don't have any so file generated...

I'm using a configure with options:
./configure --with-tomcat40=/usr/local/tomcat/ 
--with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/  
--with-apxs2=/usr/local/apache2/bin/apxs   
--with-apr=/usr/local/apr-0.9.3  --with-apache2=/usr/local/httpd

where  /usr/local/apache2 contains binaries for apache (apxs2)
/usr/local/httpd contains src files for apache
I'm using the JK 2.0.2 files  Apache 2.0.47 on redhat 9 (with GCC 2.96 
or 3.2.2)

any help greatly appreciated
drives me crazy :)
cheers
Jerome


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


Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-29 Thread Eric J. Pinnell
Hi,

JK2 should compile with just the following:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

It should create mod_jk2.so in the build directory tree not in the
directory that you ran configure and make from.  I forget exactly where it
puts it but a find ./ | grep so from the top level of the source should
root it out quick fast.

-e


On Fri, 29 Aug 2003, jerome moliere wrote:

 Hi all,
 i'm not sure that's the right place for such question but I'm unable for
 2 days to get
 the compilation goes to end
 Everything seems to work but I don't have any so file generated...

 I'm using a configure with options:
 ./configure --with-tomcat40=/usr/local/tomcat/
 --with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/
 --with-apxs2=/usr/local/apache2/bin/apxs
 --with-apr=/usr/local/apr-0.9.3  --with-apache2=/usr/local/httpd

 where  /usr/local/apache2 contains binaries for apache (apxs2)
 /usr/local/httpd contains src files for apache

 I'm using the JK 2.0.2 files  Apache 2.0.47 on redhat 9 (with GCC 2.96
 or 3.2.2)

 any help greatly appreciated
 drives me crazy :)

 cheers
 Jerome




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



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



JK2 for Linux

2003-03-18 Thread Chris Dodunski
Hi,

Apache.org download page for JK2 2.0.1 reports that it is initial release
quality code, and the JK2 2.0.2 page has no download for Linux.  Is there a
2.0.2 version for Linux, and if so what is its status regarding
testing/release?

Thanks,

Chris.


http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2
.0.1/

This is the 2.0.1 release of JK2

The JK2 should be considered initial-release quality code. It has not been
subjected to the same stresses on its stability and security that the mod_jk
releases have enjoyed, so there is a greater possibility of undiscovered
vulnerabilities to stability or security.


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



Re: JK2 for Linux

2003-03-18 Thread grenoml
Chris,
  I just downloaded 2.0.2 src to my Linux box and built locally.

Gerry

--- Chris Dodunski [EMAIL PROTECTED] wrote:
 Hi,
 
 Apache.org download page for JK2 2.0.1 reports that it is initial
 release
 quality code, and the JK2 2.0.2 page has no download for Linux.  Is
 there a
 2.0.2 version for Linux, and if so what is its status regarding
 testing/release?
 
 Thanks,
 
 Chris.
 
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2
 .0.1/
 
 This is the 2.0.1 release of JK2
 
 The JK2 should be considered initial-release quality code. It has not
 been
 subjected to the same stresses on its stability and security that the
 mod_jk
 releases have enjoyed, so there is a greater possibility of
 undiscovered
 vulnerabilities to stability or security.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: how to Apache2 for JK2 on Linux ???

2002-10-19 Thread yoom nguyen
Robert

What you are saying is...
I only need to define this line in httpd.conf
LoadModule jk2_module modules/mod_jk2.so

and apache2 by default will looking for the file name
workers2.properties.

How does apache2 know where to look for workers2.properties ?

Is it by default apache2 looks for workers2.properties under 
$apache_home/conf ?


I am using linux, I know the requirements and specs are the same but
they are different in many way, just because they are Windows and Linux.

Thanks much




- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
Date: Friday, October 18, 2002 8:11 pm
Subject: Re: how to Apache2 for JK2 on Linux ???

 The default workers2.properties files has a uri for jkstatus 
 predefined. 
 You can access it at http://localhost:8080/jkstatus then you can 
 try via 
 apache at http://localhost/jkstatus
 
 The configuration of jk2 is pretty simple;
 
 You will need a LoadModules line in httpd.conf
 
 You will need to decide if you're going to run Tomcat in-process 
 or not 
 and configure jk2.properties and workers2.properties accordingly.  
 If you 
 don't want to run in-process then just comment out the jni lines 
 in 
 jk2.prop
 
 You will need to decide if you're going to try the channelunix 
 thing or 
 not.  Comment or un-comment as needed in 
 
 jk2.prop and workers2.prop are fairly well documented so the only 
 thing 
 for you to do to get a working setup is correct the paths and 
 uncomment 
 and comment lines in each as necessary.
 
 I run jk2 with pretty good success on windows boxes.  I'll attach 
 the 
 configs for them.  Just change them to suit your decisions and 
 paths 
 
 rls
 
 
 
 
 
 
 
 yoom nguyen [EMAIL PROTECTED]
 10/18/2002 02:51 PM
 Please respond to Tomcat Users List
 
 
To: [EMAIL PROTECTED]
cc: 
Subject:how to Apache2 for JK2 on Linux ???
 
 Does any one have a sample on how to configure JK2 connector 
 on apache2 to talk to tomcat?
 
 Or any debugging method to see if JK2 actually working.
 I turn logger to debug mode in httpd.conf file.
 I am having problems of determine if my apache configuration with 
 JK2 is
 correct or not.  Apache doesn't give me error and it doesn't
 seems to forward the traffic to Tomcat either.
 
 John, I will respond to your email soon.  I have a death line to 
 get the
 connector working.
 
 Thanks, Yoom
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


how to Apache2 for JK2 on Linux ???

2002-10-18 Thread yoom nguyen
Does any one have a sample on how to configure JK2 connector 
on apache2 to talk to tomcat?

Or any debugging method to see if JK2 actually working.
I turn logger to debug mode in httpd.conf file.
I am having problems of determine if my apache configuration with JK2 is
correct or not.  Apache doesn't give me error and it doesn't
seems to forward the traffic to Tomcat either.

John, I will respond to your email soon.  I have a death line to get the
connector working.

Thanks, Yoom




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: how to Apache2 for JK2 on Linux ???

2002-10-18 Thread Robert L Sowders
The default workers2.properties files has a uri for jkstatus predefined. 
You can access it at http://localhost:8080/jkstatus then you can try via 
apache at http://localhost/jkstatus

The configuration of jk2 is pretty simple;

You will need a LoadModules line in httpd.conf

You will need to decide if you're going to run Tomcat in-process or not 
and configure jk2.properties and workers2.properties accordingly.  If you 
don't want to run in-process then just comment out the jni lines in 
jk2.prop

You will need to decide if you're going to try the channelunix thing or 
not.  Comment or un-comment as needed in 

jk2.prop and workers2.prop are fairly well documented so the only thing 
for you to do to get a working setup is correct the paths and uncomment 
and comment lines in each as necessary.

I run jk2 with pretty good success on windows boxes.  I'll attach the 
configs for them.  Just change them to suit your decisions and paths 

rls







yoom nguyen [EMAIL PROTECTED]
10/18/2002 02:51 PM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:how to Apache2 for JK2 on Linux ???

Does any one have a sample on how to configure JK2 connector 
on apache2 to talk to tomcat?

Or any debugging method to see if JK2 actually working.
I turn logger to debug mode in httpd.conf file.
I am having problems of determine if my apache configuration with JK2 is
correct or not.  Apache doesn't give me error and it doesn't
seems to forward the traffic to Tomcat either.

John, I will respond to your email soon.  I have a death line to get the
connector working.

Thanks, Yoom




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




## 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, the first for unix the second for windows:

# 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