Tomcat 5.X - Apache2.X - Mod-JK2

2004-04-06 Thread armalai
Hi.,
   I'm getting lot of issues in this combination in windows.
In did not find any document or forums discussion on that.
1.Can any one suggest me to change ot right vesrion or i can stick on with this one?
2.when i hit my application i'm getting this WARNING message..is this causing any 
probs...anyway application is working..but it is very slow.
Tomcat Log:-
Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request

Thanks.,
MALAI

Re: Tomcat 5.X - Apache2.X - Mod-JK2

2004-04-06 Thread armalai
Hi. Carl ,
Thanks for your reply..that works for me.
I have another few error in my apache log file.
Can you please look at this..and give me your suggestion..

[Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0
[Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex.
[Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads.
[Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52
0x522000
[Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0
[Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error...
[Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok
[Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed
localhost:8029 61 Unknown error
[Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed
localhost:8019 61 Unknown error
[Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed
ajp13:localhost:8029
[Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed
ajp13:localhost:8019


Thanks.,
MALAI
- Original Message - 
From: Carl Olivier [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 9:06 AM
Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2


 Hi.

 That is apprently when jk is trying to register the request with JMX.  You
 can disable that (and hence stop the error message) by adding the
following
 line at the end if your jk2.properties:

 request.registerRequests=false

 With regards problems and stability the most stable I have been able to
get
 it is with:

 Apache 2.0.46
 Tomcat 5.0.19
 mod_jk2.03 - mod_jk2.04
 J2SDK1.4.2_01

 I would recommend that you compile mod_jk2 for your version of Apache
 (although I am not clear on how much of a difference this makes?)

 Regards,

 Carl

 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: 06 April 2004 03:04 PM
 To: Tomcat Users List
 Subject: Tomcat 5.X - Apache2.X - Mod-JK2


 Hi.,
I'm getting lot of issues in this combination in windows.
 In did not find any document or forums discussion on that.
 1.Can any one suggest me to change ot right vesrion or i can stick on with
 this one?
 2.when i hit my application i'm getting this WARNING message..is this
 causing any probs...anyway application is working..but it is very slow.
 Tomcat Log:-
 Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest
 WARNING: Error registering request

 Thanks.,
 MALAI

 -
 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: Tomcat 5.X - Apache2.X - Mod-JK2

2004-04-06 Thread armalai
Hi.,
   I just disabled the onstart,onstop option.
For me its working well.
I think that Auto start for multiple instance is not supporting.
I didn't get any docus on that.

So i'm decided to go with this..i mean manual start of Tomcat instances.

My only error is..
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

can you tell me about this?

Thanks.,
MALAI
- Original Message - 
From: Chippada , Sreeni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 10:35 AM
Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2


 Hi Malai,
 I just got this configuration working for me. I still get the
 following 3 errors in my mod_jk2.log file. Do you get these errors?
 As per the errors you are getting, I understand you are trying multiple
 instances of tomcat. If that is the case, why don't you try with on
instance
 and test.



 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)]
 workerEnv.initChannel() init failed for channel.jni:jni
 [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)]
 workerJni.Init() Skipping initialization for the 460 460
 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)]
 workerEnv.initWorkers() init failed for worker.jni:onStartup
 [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)]
 workerJni.Init() Skipping initialization for the 460 460
 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)]
 workerEnv.initWorkers() init failed for worker.jni:onShutdown




 -Sreeni

 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 06, 2004 9:20 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2

 Hi. Carl ,
 Thanks for your reply..that works for me.
 I have another few error in my apache log file.
 Can you please look at this..and give me your suggestion..

 [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0
 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex.
 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker
threads.
 [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52
 0x522000
 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0
 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for
 ajp13:jni
 [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error...
 [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok
 [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to
 tomcat 12
 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed
 localhost:8029 61 Unknown error
 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed
 localhost:8019 61 Unknown error
 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed
 ajp13:localhost:8029
 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed
 ajp13:localhost:8019


 Thanks.,
 MALAI
 - Original Message - 
 From: Carl Olivier [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, April 06, 2004 9:06 AM
 Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2


  Hi.
 
  That is apprently when jk is trying to register the request with JMX.
You
  can disable that (and hence stop the error message) by adding the
 following
  line at the end if your jk2.properties:
 
  request.registerRequests=false
 
  With regards problems and stability the most stable I have been able to
 get
  it is with:
 
  Apache 2.0.46
  Tomcat 5.0.19
  mod_jk2.03 - mod_jk2.04
  J2SDK1.4.2_01
 
  I would recommend that you compile mod_jk2 for your version of Apache
  (although I am not clear on how much of a difference this makes?)
 
  Regards,
 
  Carl
 
  -Original Message-
  From: armalai [mailto:[EMAIL PROTECTED]
  Sent: 06 April 2004 03:04 PM
  To: Tomcat Users List
  Subject: Tomcat 5.X - Apache2.X - Mod-JK2
 
 
  Hi.,
 I'm getting lot of issues in this combination in windows.
  In did not find any document or forums discussion on that.
  1.Can any one suggest me to change ot right vesrion or i can stick on
with
  this one?
  2.when i hit my application i'm getting this WARNING message..is this
  causing any probs...anyway application is working..but it is very slow.
  Tomcat Log:-
  Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest
  WARNING: Error registering request
 
  Thanks.,
  MALAI
 
  -
  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]





-
To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Tomcat 5.X - Apache2.X - Mod-JK2

2004-04-06 Thread armalai
Hi,
   Yest i'm able to browse my application well.
Is there a way to get the JKJNI.dll ?
Till now i hav'nt build anything..

Thanks.,
MALAI
- Original Message - 
From: Chippada , Sreeni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:18 AM
Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2


 I built jkjni.dll from the jk2 source, renamed it as jkjni.so and dropped
 into the $APACHE_HOME/modules directory.

 At this point are you able to access the Servlets/Webapps? I am asking
 because, if jkjni.dll is required, how can it work?



 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 06, 2004 11:09 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2

 Hi.,
I just disabled the onstart,onstop option.
 For me its working well.
 I think that Auto start for multiple instance is not supporting.
 I didn't get any docus on that.

 So i'm decided to go with this..i mean manual start of Tomcat instances.

 My only error is..
 java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

 can you tell me about this?

 Thanks.,
 MALAI
 - Original Message - 
 From: Chippada , Sreeni [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, April 06, 2004 10:35 AM
 Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2


  Hi Malai,
  I just got this configuration working for me. I still get the
  following 3 errors in my mod_jk2.log file. Do you get these errors?
  As per the errors you are getting, I understand you are trying multiple
  instances of tomcat. If that is the case, why don't you try with on
 instance
  and test.
 
 
 
  [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)]
  workerEnv.initChannel() init failed for channel.jni:jni
  [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)]
  workerJni.Init() Skipping initialization for the 460 460
  [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)]
  workerEnv.initWorkers() init failed for worker.jni:onStartup
  [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)]
  workerJni.Init() Skipping initialization for the 460 460
  [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)]
  workerEnv.initWorkers() init failed for worker.jni:onShutdown
 
 
 
 
  -Sreeni
 
  -Original Message-
  From: armalai [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 06, 2004 9:20 AM
  To: Tomcat Users List
  Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2
 
  Hi. Carl ,
  Thanks for your reply..that works for me.
  I have another few error in my apache log file.
  Can you please look at this..and give me your suggestion..
 
  [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0
  [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start
mutex.
  [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker
 threads.
  [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52
  0x522000
  [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot
epStat.0
  [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for
  ajp13:jni
  [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error...
  [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok
  [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to
  tomcat 12
  [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed
  localhost:8029 61 Unknown error
  [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed
  localhost:8019 61 Unknown error
  [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed
  ajp13:localhost:8029
  [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed
  ajp13:localhost:8019
 
 
  Thanks.,
  MALAI
  - Original Message - 
  From: Carl Olivier [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, April 06, 2004 9:06 AM
  Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2
 
 
   Hi.
  
   That is apprently when jk is trying to register the request with JMX.
 You
   can disable that (and hence stop the error message) by adding the
  following
   line at the end if your jk2.properties:
  
   request.registerRequests=false
  
   With regards problems and stability the most stable I have been able
to
  get
   it is with:
  
   Apache 2.0.46
   Tomcat 5.0.19
   mod_jk2.03 - mod_jk2.04
   J2SDK1.4.2_01
  
   I would recommend that you compile mod_jk2 for your version of Apache
   (although I am not clear on how much of a difference this makes?)
  
   Regards,
  
   Carl
  
   -Original Message-
   From: armalai [mailto:[EMAIL PROTECTED]
   Sent: 06 April 2004 03:04 PM
   To: Tomcat Users List
   Subject: Tomcat 5.X - Apache2.X - Mod-JK2
  
  
   Hi.,
  I'm getting lot of issues in this combination in windows.
   In did not find any document or forums discussion on that.
   1.Can any one suggest me to change ot right vesrion or i can stick on
 with
   this one?
   2.when i hit my application i'm

Re: JKJni dll Error

2004-04-05 Thread armalai
-examples
 debug=100



 STEP 5: Start up
 

 Start tomcat first
 Wait until the instance is started.
 Start apache.



 -Original Message-
 From: Chippada , Sreeni [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:57 PM
 To: Tomcat Users List
 Subject: RE: JKJni dll Error

 I think you are ahead of me now.
 What did you do with the jnjni.dll? I don't see it in your configuration
 files. Did you drop it in APACHE_HOME/moduels?

 I posted a message today with the subject Unable to connect Apache 2.0.48
 to tomcat using JK2 Connector an d JNI.

 Can you please tell me what is the difference with respect to how you
 configured?

 Thanks,
 Sreeni


 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:33 PM
 To: Tomcat Users List
 Subject: Re: JKJni dll Error

 Hi.,
I just passed the class not fount error for AprImpl.
 Right now i got new error in Apache - log
 [Fri Apr 02 17:30:31 2004] [error] mod_jk child init 1 0

 then Apache stderr.log log says..
 TomcatStarter: main()
 Try  org.apache.tomcat.startup.Main
 Try  org.apache.catalina.startup.BootstrapService
 Try  org.apache.catalina.startup.Bootstrap
 No class found

 Please help me out...

 Thanks.,
 MALAI

 - Original Message - 
 From: Chippada , Sreeni [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:19 PM
 Subject: RE: JKJni dll Error


  Try adding TOMCAT_HOME\common\lib\jmx.jar to the claspath in  [vm:]
 
  -Sreeni
 
  -Original Message-
  From: armalai [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 02, 2004 5:14 PM
  To: Tomcat Users List
  Subject: Re: JKJni dll Error
 
  Hi.,
  Please check my properties file.
  this is the new error that i notied right now in apache log.
  Error:
  [Fri Apr 02 16:59:28 2004] [error] Can't find class
  org/apache/jk/apr/AprImpl
  java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
  -JK2.properties--
  ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
  ## 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
 
  #MALAI
  #Shared memory directive
  shm.file=C:/$Java/3_AS/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
  --
  ---workers2.properties-
  [logger]
  level=DEBUG
 
  [config:]
  #file=${serverRoot}/conf/workers2.properties
  file=C:/$Java/3_AS/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
  lb_factor=2
  group=lb
 
  [channel.socket:localhost:8019]
  info=A second tomcat instance.
  debug=0
  tomcatId=localhost:8019
  lb_factor=2
  group=lb
  #group=lb_1
 
  [channel.socket:localhost:8029]
  info=A Third tomcat instance.
  debug=0
  tomcatId=localhost:8029
  lb_factor=2
  group=lb
  #group=lb_1
 
  #disabled=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:\jdk\jre\bin\hotspot\jvm.dll
  OPT=-Djava.class.path=%classpath%;C:/$Java/3_AS/Tomcat
  5.0/server/lib/tomcat-jni.jar;C:/$Java/3_AS/Tomcat
  5.0/bin/commons-logging-api.jar
  OPT=-Dtomcat.home=${TOMCAT_HOME}
  #--OPT=-Dcatalina.home=${TOMCAT_HOME}
  #--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
  class=org/apache/jk/apr/AprImpl
  ARG=start
  disabled=0
 
  stdout=C:/$Java/3_AS/Apache2/logs/stdout.log
  stderr=C:/$Java/3_AS/Apache2/logs/stderr.log

Re: JKJni dll Error

2004-04-05 Thread armalai
-examples
 debug=100



 STEP 5: Start up
 

 Start tomcat first
 Wait until the instance is started.
 Start apache.



 -Original Message-
 From: Chippada , Sreeni [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:57 PM
 To: Tomcat Users List
 Subject: RE: JKJni dll Error

 I think you are ahead of me now.
 What did you do with the jnjni.dll? I don't see it in your configuration
 files. Did you drop it in APACHE_HOME/moduels?

 I posted a message today with the subject Unable to connect Apache 2.0.48
 to tomcat using JK2 Connector an d JNI.

 Can you please tell me what is the difference with respect to how you
 configured?

 Thanks,
 Sreeni


 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:33 PM
 To: Tomcat Users List
 Subject: Re: JKJni dll Error

 Hi.,
I just passed the class not fount error for AprImpl.
 Right now i got new error in Apache - log
 [Fri Apr 02 17:30:31 2004] [error] mod_jk child init 1 0

 then Apache stderr.log log says..
 TomcatStarter: main()
 Try  org.apache.tomcat.startup.Main
 Try  org.apache.catalina.startup.BootstrapService
 Try  org.apache.catalina.startup.Bootstrap
 No class found

 Please help me out...

 Thanks.,
 MALAI

 - Original Message - 
 From: Chippada , Sreeni [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:19 PM
 Subject: RE: JKJni dll Error


  Try adding TOMCAT_HOME\common\lib\jmx.jar to the claspath in  [vm:]
 
  -Sreeni
 
  -Original Message-
  From: armalai [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 02, 2004 5:14 PM
  To: Tomcat Users List
  Subject: Re: JKJni dll Error
 
  Hi.,
  Please check my properties file.
  this is the new error that i notied right now in apache log.
  Error:
  [Fri Apr 02 16:59:28 2004] [error] Can't find class
  org/apache/jk/apr/AprImpl
  java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
  -JK2.properties--
  ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
  ## 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
 
  #MALAI
  #Shared memory directive
  shm.file=C:/$Java/3_AS/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
  --
  ---workers2.properties-
  [logger]
  level=DEBUG
 
  [config:]
  #file=${serverRoot}/conf/workers2.properties
  file=C:/$Java/3_AS/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
  lb_factor=2
  group=lb
 
  [channel.socket:localhost:8019]
  info=A second tomcat instance.
  debug=0
  tomcatId=localhost:8019
  lb_factor=2
  group=lb
  #group=lb_1
 
  [channel.socket:localhost:8029]
  info=A Third tomcat instance.
  debug=0
  tomcatId=localhost:8029
  lb_factor=2
  group=lb
  #group=lb_1
 
  #disabled=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:\jdk\jre\bin\hotspot\jvm.dll
  OPT=-Djava.class.path=%classpath%;C:/$Java/3_AS/Tomcat
  5.0/server/lib/tomcat-jni.jar;C:/$Java/3_AS/Tomcat
  5.0/bin/commons-logging-api.jar
  OPT=-Dtomcat.home=${TOMCAT_HOME}
  #--OPT=-Dcatalina.home=${TOMCAT_HOME}
  #--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
  class=org/apache/jk/apr/AprImpl
  ARG=start
  disabled=0
 
  stdout=C:/$Java/3_AS/Apache2/logs/stdout.log
  stderr=C:/$Java/3_AS/Apache2/logs/stderr.log

TomcatStarter: main() is looking for this class

2004-04-05 Thread armalai
Hi.,

 Apache2.X+Tomca%.X+Mod_K2 in Windows 2k

   TomcatStarter:main() is looking for this three classes.
I'm not able to locate this class.
Plz anyone tell me which jar file contains this files?



org.apache.tomcat.startup.Main
org.apache.catalina.startup.BootstrapService
org.apache.catalina.startup.Bootstrap

Thanks.,
MALAI

Re: TomcatStarter: main() is looking for this class

2004-04-05 Thread armalai
Hi.,
   I'm in Tocat 5.0.19.
I did checked catalina.jar and few jars.I could see this only in api
documentation.

Thanks.,
MALAI
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 05, 2004 9:45 AM
Subject: RE: TomcatStarter: main() is looking for this class



Hi,
What tomcat version?  And are you really clueless as to how to search
jars for a given class file?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: armalai [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 9:43 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: TomcatStarter: main() is looking for this class

Hi.,

 Apache2.X+Tomca%.X+Mod_K2 in Windows 2k

   TomcatStarter:main() is looking for this three classes.
I'm not able to locate this class.
Plz anyone tell me which jar file contains this files?



org.apache.tomcat.startup.Main
org.apache.catalina.startup.BootstrapService
org.apache.catalina.startup.Bootstrap

Thanks.,
MALAI



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



Tomcat 5.X + Apache 2.X + Mod_Jk2 - Startup problem

2004-04-05 Thread armalai
Hi.,
I'm almost done with Tomcat 5.X + Apache 2.X + Mod_Jk2.
My problem is 
Apache is looking for Server.xml.So i just copied over my Tomcat's server.xml to 
apache conf directory.
When i start my Apache i'm getting this msgs in Apache/conf/error.log.
Can any look in this problem...I did not get any dodcument specifi for this 
combination(Apache2+Tomcat5+Mod_jk2).

error.Log
[Mon Apr 05 11:16:29 2004] [notice] Parent: Created child process 1856
[Mon Apr 05 11:16:29 2004] [notice] Child 1856: Child process is running
[Mon Apr 05 11:16:29 2004] [notice] jk2_init() Found child 1856 in scoreboard slot 0
[Mon Apr 05 11:16:29 2004] [notice] vm.init(): Jni lib: C:\Program 
Files\Java\j2re1.4.2_03\bin\client\jvm.dll
[Mon Apr 05 11:16:29 2004] [notice] vm.open2() done
[Mon Apr 05 11:16:29 2004] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter 
[Mon Apr 05 11:16:30 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Mon Apr 05 11:16:30 2004] [notice] jni.init() setting 
stdout=C:/$Java/3_AS/Apache2/logs/stdout.log...
[Mon Apr 05 11:16:30 2004] [notice] jni.init() setting 
stderr=C:/$Java/3_AS/Apache2/logs/stderr.log...
[Mon Apr 05 11:16:30 2004] [notice] jni.init() ARG start
[Mon Apr 05 11:16:30 2004] [notice] jni.init() calling main()...
[Mon Apr 05 11:16:30 2004] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter 
[Mon Apr 05 11:16:30 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Mon Apr 05 11:16:30 2004] [notice] jni.init() disabling the non init hook worker
[Mon Apr 05 11:16:30 2004] [notice] workerEnv.init() ok 
C:/$Java/3_AS/Apache2/conf/workers2.properties
[Mon Apr 05 11:16:30 2004] [error] mod_jk child init 1 0
[Mon Apr 05 11:16:30 2004] [notice] Child 1856: Acquired the start mutex.
[Mon Apr 05 11:16:30 2004] [notice] Child 1856: Starting 250 worker threads.
[Mon Apr 05 11:18:50 2004] [notice] shm.createSlot() Create 1 0x52 0x522000
[Mon Apr 05 11:18:50 2004] [notice] workerEnv.init() create slot epStat.0
[Mon Apr 05 11:18:50 2004] [error] lb.service() worker failed 12 for ajp13:jni
[Mon Apr 05 11:18:50 2004] [error] lb.service() unrecoverable error...
[Mon Apr 05 11:18:50 2004] [notice] vm.detach() ok
[Mon Apr 05 11:18:50 2004] [error] mod_jk.handler() Error connecting to tomcat 12
[Mon Apr 05 11:18:57 2004] [error] channelSocket.open() connect failed localhost:8019 
61 Unknown error 
[Mon Apr 05 11:18:57 2004] [error] ajp13.connect() failed ajp13:localhost:8019
[Mon Apr 05 11:18:57 2004] [error] ajp13.service() failed to connect endpoint errno=61 
Unknown error
[Mon Apr 05 11:18:57 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8019 1 1
[Mon Apr 05 11:18:57 2004] [notice] ajp13.done() close endpoint ajp13:localhost:8019 
error_state 1
[Mon Apr 05 11:18:57 2004] [error] lb.service() worker failed 12 for 
ajp13:localhost:8019
[Mon Apr 05 11:18:58 2004] [error] channelSocket.open() connect failed localhost:8029 
61 Unknown error 
[Mon Apr 05 11:18:58 2004] [error] ajp13.connect() failed ajp13:localhost:8029
[Mon Apr 05 11:18:58 2004] [error] ajp13.service() failed to connect endpoint errno=61 
Unknown error
[Mon Apr 05 11:18:58 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8029 1 1
[Mon Apr 05 11:18:58 2004] [notice] ajp13.done() close endpoint ajp13:localhost:8029 
error_state 1
[Mon Apr 05 11:18:58 2004] [error] lb.service() worker failed 12 for 
ajp13:localhost:8029
[Mon Apr 05 11:20:12 2004] [error] lb.getWorker() reenable ajp13:localhost:8019
[Mon Apr 05 11:20:12 2004] [error] lb.getWorker() reenable ajp13:localhost:8029
[Mon Apr 05 11:20:12 2004] [error] lb.getWorker() reenable ajp13:jni
[Mon Apr 05 11:20:16 2004] [error] channelSocket.open() connect failed localhost:8019 
61 Unknown error 
[Mon Apr 05 11:20:16 2004] [error] ajp13.connect() failed ajp13:localhost:8019
[Mon Apr 05 11:20:16 2004] [error] ajp13.service() failed to connect endpoint errno=61 
Unknown error
[Mon Apr 05 11:20:16 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8019 1 1
[Mon Apr 05 11:20:16 2004] [notice] ajp13.done() close endpoint ajp13:localhost:8019 
error_state 1

Thanks.,
MALAI

[error] mod_jk child init 1 0

2004-04-05 Thread armalai
Hi.,
This is Tomcat5.0+Apache2.0 +Mod_JK2 for Windows.
Please see this error and give me your suggestion...
I didn't get anything about this in websites.

Error:
[Mon Apr 05 11:16:30 2004] [error] mod_jk child init 1 0

Thanks.,
MALAI

Re: [error] mod_jk child init 1 0

2004-04-05 Thread armalai
Hi All.,
Is any one expirenced this before.I didnot get any reply.
Is there any other places like group or resources available ?

Please suggest me to move fast..

Thanks.,
MALAI
- Original Message - 
From: armalai [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 05, 2004 2:55 PM
Subject: [error] mod_jk child init 1 0


Hi.,
This is Tomcat5.0+Apache2.0 +Mod_JK2 for Windows.
Please see this error and give me your suggestion...
I didn't get anything about this in websites.

Error:
[Mon Apr 05 11:16:30 2004] [error] mod_jk child init 1 0

Thanks.,
MALAI

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



unrecoverable error..

2004-04-05 Thread armalai
Hi.,
   I'm getting this below error in my Apache error.log.
I'm trying to do Apache 2.0 + Tomcat 5.0 + Mod_jk2 in windows

Please advise me to solve this error.

=Error:==
[Mon Apr 05 16:12:19 2004] [error] mod_jk child init 1 0
..
[Mon Apr 05 16:12:53 2004] [error] lb.service() worker failed 12 for ajp13:jni
[Mon Apr 05 16:12:53 2004] [error] lb.service() unrecoverable error...

Tomcat 5 Clustering - Loadbalancing

2004-04-02 Thread armalai
Hi.,
   My environements are.,
Windows 2000
Tomcat 5.x + Apache 2.X + Mod_JK2

I have three tomcat instances and Apache server in a single machine..
Clusterring and load balancing is working fine.
But i'm getting this error in Apache error.log file.
1.Can you please check my Apache logs and worker properties file and give me your 
suggestion.
2.My main tomcat instance prints the nomal log information  with the symbol 
warning..why this is happeneing?
3.In tomcat I'm not able to set the docBase value for the context as a Absolute 
path.I'm using like ../webapps/appfolder.
  so i have to copy the appfolder to all instances.
  How do i access the appfolder from common place?

---Tomcat log
Apr 2, 2004 9:09:07 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
--
-Apache log-
[Thu Apr 01 16:54:28 2004] [error] env.createBean2(): Error getting factory for 
[worker.list] (null)
[Thu Apr 01 16:54:28 2004] [error] config.update(): Can't create worker.list
[Thu Apr 01 16:54:28 2004] [notice] Parent: Created child process 2232
[Thu Apr 01 16:54:28 2004] [error] env.createBean2(): Error getting factory for 
[worker.list] (null)
[Thu Apr 01 16:54:28 2004] [error] config.update(): Can't create worker.list
[Thu Apr 01 16:54:28 2004] [notice] Child 2232: Child process is running
[Thu Apr 01 16:54:28 2004] [error] mod_jk child init 1 0
[Thu Apr 01 16:54:28 2004] [notice] Child 2232: Acquired the start mutex.
[Thu Apr 01 16:54:28 2004] [notice] Child 2232: Starting 250 worker threads.
[Thu Apr 01 17:07:32 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
[Thu Apr 01 17:07:33 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
[Thu Apr 01 17:10:45 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
[Thu Apr 01 17:10:46 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8009 -1 0 No error
[Thu Apr 01 17:10:46 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8009 -1 0 No error
[Thu Apr 01 17:10:59 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
--

--worker.properties--
# workers2.properties
# Define the TCP socket communication channel 
#ps=/
worker.list=tomcat,tomcatA,tomcatB loadbalancer
#worker.tomat.
[channel.socket:localhost:8009]
worker.tomcat.port=8009
worker.tomcat.host=localhost
worker.tomcat.lbfactor=2
#--
#worker.tomat.
[channel.socket:localhost:8019]
worker.tomcatA.port=8019
worker.tomcatA.host=localhost
worker.tomcatA.lbfactor=2
#--
#worker.tomat.
[channel.socket:localhost:8029]
worker.tomcatB.port=8029
worker.tomcatB.host=localhost
worker.tomcatB.lbfactor=2
#--
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat,tomcatA,tomcatB
# Map the Tomcat webapp to the Web server uri space
[uri:/*]
info=Map the entire examples webapp
debug=0
# Configure the shared memory file
[shm]
file=C:\$Java\3_AS\Apache2\logs\jk2.shm
size=1048576
debug=0


JKJni dll Error

2004-04-02 Thread armalai
Environement:
   Windows 2000
   Tomcat 5.x + Apache 2.X + Mod_JK2

Error:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

Question:
1.Where I can get the jkjni.dll ?

Thanks.,
MALAI


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



Re: JKJni dll Error

2004-04-02 Thread armalai
Hi.,
Please check my properties file.
this is the new error that i notied right now in apache log.
Error:
[Fri Apr 02 16:59:28 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
-JK2.properties--
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## 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

#MALAI
#Shared memory directive
shm.file=C:/$Java/3_AS/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
--
---workers2.properties-
[logger]
level=DEBUG

[config:]
#file=${serverRoot}/conf/workers2.properties
file=C:/$Java/3_AS/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
lb_factor=2
group=lb

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

[channel.socket:localhost:8029]
info=A Third tomcat instance.
debug=0
tomcatId=localhost:8029
lb_factor=2
group=lb
#group=lb_1

#disabled=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:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=%classpath%;C:/$Java/3_AS/Tomcat
5.0/server/lib/tomcat-jni.jar;C:/$Java/3_AS/Tomcat
5.0/bin/commons-logging-api.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
#--OPT=-Dcatalina.home=${TOMCAT_HOME}
#--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
class=org/apache/jk/apr/AprImpl
ARG=start
disabled=0

stdout=C:/$Java/3_AS/Apache2/logs/stdout.log
stderr=C:/$Java/3_AS/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
class=org/apache/jk/apr/AprImpl
ARG=stop
disabled=0

# Map the Tomcat webapp to the Web server uri space
[uri:/*]
info=Map the entire examples webapp
debug=0

--


- Original Message - 
From: Chippada , Sreeni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 5:08 PM
Subject: RE: JKJni dll Error


 I downloaded JK2 and built it.
 I am trying the same configuration. I am not successful yet. I like to
know
 your jk2.properties and workers2.properties configuration files.

 Thanks,
 Sreeni

 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 4:46 PM
 To: Tomcat Users List
 Subject: JKJni dll Error

 Environement:
Windows 2000
Tomcat 5.x + Apache 2.X + Mod_JK2

 Error:
 java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

 Question:
 1.Where I can get the jkjni.dll ?

 Thanks.,
 MALAI


 -
 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: JKJni dll Error

2004-04-02 Thread armalai
Hi.,
   I just passed the class not fount error for AprImpl.
Right now i got new error in Apache - log
[Fri Apr 02 17:30:31 2004] [error] mod_jk child init 1 0

then Apache stderr.log log says..
TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Try  org.apache.catalina.startup.Bootstrap
No class found

Please help me out...

Thanks.,
MALAI

- Original Message - 
From: Chippada , Sreeni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 5:19 PM
Subject: RE: JKJni dll Error


 Try adding TOMCAT_HOME\common\lib\jmx.jar to the claspath in  [vm:]

 -Sreeni

 -Original Message-
 From: armalai [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:14 PM
 To: Tomcat Users List
 Subject: Re: JKJni dll Error

 Hi.,
 Please check my properties file.
 this is the new error that i notied right now in apache log.
 Error:
 [Fri Apr 02 16:59:28 2004] [error] Can't find class
 org/apache/jk/apr/AprImpl
 java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
 -JK2.properties--
 ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
 ## 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

 #MALAI
 #Shared memory directive
 shm.file=C:/$Java/3_AS/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
 --
 ---workers2.properties-
 [logger]
 level=DEBUG

 [config:]
 #file=${serverRoot}/conf/workers2.properties
 file=C:/$Java/3_AS/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
 lb_factor=2
 group=lb

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

 [channel.socket:localhost:8029]
 info=A Third tomcat instance.
 debug=0
 tomcatId=localhost:8029
 lb_factor=2
 group=lb
 #group=lb_1

 #disabled=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:\jdk\jre\bin\hotspot\jvm.dll
 OPT=-Djava.class.path=%classpath%;C:/$Java/3_AS/Tomcat
 5.0/server/lib/tomcat-jni.jar;C:/$Java/3_AS/Tomcat
 5.0/bin/commons-logging-api.jar
 OPT=-Dtomcat.home=${TOMCAT_HOME}
 #--OPT=-Dcatalina.home=${TOMCAT_HOME}
 #--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
 class=org/apache/jk/apr/AprImpl
 ARG=start
 disabled=0

 stdout=C:/$Java/3_AS/Apache2/logs/stdout.log
 stderr=C:/$Java/3_AS/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
 class=org/apache/jk/apr/AprImpl
 ARG=stop
 disabled=0

 # Map the Tomcat webapp to the Web server uri space
 [uri:/*]
 info=Map the entire examples webapp
 debug=0
 --
--
 --


 - Original Message - 
 From: Chippada , Sreeni [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 5:08 PM
 Subject: RE: JKJni dll Error


  I downloaded JK2 and built it.
  I am trying the same configuration. I am not successful yet. I like to
 know
  your jk2.properties and workers2.properties configuration files.
 
  Thanks,
  Sreeni
 
  -Original Message-
  From: armalai [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 02, 2004 4:46 PM
  To: Tomcat Users List
  Subject: JKJni dll Error
 
  Environement:
 Windows 2000
 Tomcat 5

Tomcat 5 Clustering

2004-04-01 Thread armalai
Hi.,
Environement: Windows 2000, Tomcat 5.X
  I have Two tomcat instances and i enabled cluster settings in the server.xml.
Looks like both instances working well.I can access my application thru the ip and 
assigend port for individual instances.

My question is..

1.How do i configure my instances to access by single url?
so that if one instance failed, cluster will route to another one right.
2.If i can use Apache 2.x for this do i have to change the http connector to ajp in my 
tomcat?
3.Suggest me which one will be good for better page transactions.

Thanks.,
MALAI


JMeter -Aggregate Report - very small Question

2004-03-29 Thread armalai
Hi.,
   In the JMeter - Aggregate Report option we have various coloumns in the result 
table.
I'm confused about Average,Min and Max.
Please describe me what is Average,Min and Max?
I did compare to graph results and other results option..i couldn't get clear idea.

Thanks.,
MALAI

Connection Pool

2004-03-25 Thread armalai
Environement: Tomcat4.x ,Windows 2000 , Oracle9i

I'm using 75 concurrent users to hit my application using Jmeter.
After 5 hours i'm getting this below error. 

ERROR: Cannot get a connection, pool exhausted

1.Can you please give me an idea to tune up my settings?
2.This is something sue to server's unavailable state?



this is my data base connection setting.

  Resource name=jdbc/CONTROLLER scope=Shareable 
type=javax.sql.DataSource/
  ResourceParams name=jdbc/CONTROLLER
parameter
  namedriverClassName/name
  valueoracle.jdbc.OracleDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:oci:@CURACC_DEV/value
/parameter
parameter
  nameusername/name
  valuesysadm/value
/parameter
parameter
  namepassword/name
  valuesysadmawbs/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
  /ResourceParams


Thanks.,
MALAI

Server.xml - Connector configuration problem

2004-03-24 Thread armalai
Windows 2000 Timcat4.x

Below is my Sever.xml connector configuration.

Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
  port=8080 minProcessors=25 maxProcessors=200
  enableLookups=true redirectPort=8443 
  acceptCount=1 debug=0 connectionTimeout=2
  useURIValidationHack=false disableUploadTimeout=true 
/

My Questions:
1.How do i determine how many concurrent users can hit my application.?
2.Is there any limitation for minProcessors , maxProcessors and acceptCountt?
3.I'm getting belom mentioned Exception if i use more than 100 users?
Exception
CoyoteAdapter An exception or error occurred in the container during the request 
processing
java.lang.OutOfMemoryError

Please advise me to fix this issues.

Thanks.,
MALAI



Re: Server.xml - Connector configuration problem

2004-03-24 Thread armalai
Hi Shapira, Yoav,
  Thank you very much!!!Please see my comments...
   I'm using Jmeter and JProfiler right now.
1.According to Jprofiler my application does handle the memory part
well.Like it does releases the object count.
2.In Jmeter right now i'm able to handle 75 concurrent users.How do i
increase the users?
3.I have the JVM options, -Xms 256 -Xmx 512 and My RAM is 512K is this ok?
4.How do i increase my concurrentusers capability?
5.does minThread and maxThread parameters involved in this?
6.How do i know my platforms Integer.MIN_VALUE and Integer.MAX_VALUE  ?

Please advise me to proceed further..

Thanks.,
MALAI
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 1:55 PM
Subject: RE: Server.xml - Connector configuration problem



Hi,

My Questions:
1.How do i determine how many concurrent users can hit my application.?

You analyze the business requirements for the system, and then you run a
stress test tool like JMeter to see how many concurrent users your
system can handle before becoming unresponsive or crashing.  You cannot
answer this question from server.xml alone.

2.Is there any limitation for minProcessors , maxProcessors and
acceptCountt?

Sure.  A technical limit is that the value for all three of these must
be between java's Integer.MIN_VALUE and Integer.MAX_VALUE for your
platform.  Your hardware forces much lower maximums typically.

3.I'm getting belom mentioned Exception if i use more than 100 users?
Exception
CoyoteAdapter An exception or error occurred in the container during
the
request processing
java.lang.OutOfMemoryError

Please advise me to fix this issues.

Run a profiler to see where memory is used in your app, and if you can
improve your app to use memory better.  Also investigate the usage of
java vm options, such as -Xmx, to control the amount of memory that the
JVM is allowed use.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Server.xml - Connector configuration problem

2004-03-24 Thread armalai
Hi
Actually I have 512MB RAM plus 756MB page size(virtual memory).
1.So i can use -Xmx 512m right?
2.what is this -XX:NewRatio?does this help?

Thanks.,
MALAI
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 2:52 PM
Subject: RE: Server.xml - Connector configuration problem



Hi,

2.In Jmeter right now i'm able to handle 75 concurrent users.How do i
increase the users?

By increasing the memory allocated to your JVM (-Xmx) along with your
hardware to match.  By increasing and maxThreads number as well.

3.I have the JVM options, -Xms 256 -Xmx 512 and My RAM is 512K is this
ok?

Is this OK? is an imprecise question.  The answer is that it's OK if
you can handle the expected concurrent user load while maintaining
acceptable response time.

Also please try to be accurate when you specify these numbers: you have
512MB, not 512K of RAM available.  You're using -Xms256m and -Xmx512m as
java vm options.  Note that the latter is someone misleading: you're
telling the JVM it can use 512MB of RAM for the heap, but that's false.
Between the OS, other processes, and the JVM overhead you're likely to
have far less than 512MB available for the heap, so -Xmx512m is
impossible and should not be specified.

4.How do i increase my concurrentusers capability?

See above.

5.does minThread and maxThread parameters involved in this?

Yes, they're involved.  Read their documentation.

6.How do i know my platforms Integer.MIN_VALUE and Integer.MAX_VALUE  ?

Write a little java program that does
System.out.println(Integer.MAX_VALUE) etc.  As I said before, while
these are the technical limits because maxThreads and acceptCount are
stored as a java int, these are not the relevant limits: those are
imposed by your hardware and OS.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: JProfiler Tomcat Integration -tyrex driver error

2004-03-19 Thread armalai
Hi.,
I do not have any config element related to tyrex.In my Server.xml i'm
using the factory class as
org.apache.catalina.users.MemoryUserDatabaseFactory
and my driverC.lassName is  - oracle.jdbc.OracleDriver

please check this stack trace below ...

Working directory: C:\$Java\5_Tools\jprofiler3\tomcat\bin
Executed call:
C:\$Java\1_SDK\1.4.2_03\bin\javaw.exe -Xint -Xrunjprofiler:port=31757 -Djava
.endorsed.dirs=C:\$Java\5_Tools\jprofiler3\tomcat\bin;C:\$Java\5_Tools\jprof
iler3\tomcat\common\lib -Dcatalina.base=C:\$Java\5_Tools\jprofiler3\tomcat -
Dcatalina.home=C:\$Java\5_Tools\jprofiler3\tomcat -Xbootclasspath/a:C:\$Java
\5_Tools\jprofiler3\bin\agent.jar -classpath
C:\$Java\1_SDK\1.4.2_03\lib\tools.jar;C:\$Java\5_Tools\jprofiler3\tomcat\bin
\bootstrap.jar org.apache.catalina.startup.Bootstrap start

JProfiler Protocol version 14
JProfiler Listening on port: 31757.
JProfiler Native library initialized
JProfiler Hotspot VM detected
JProfiler Waiting for a connection ...
JProfiler Using dynamic instrumentation
JProfiler Time measurement: elapsed time
JProfiler CPU profiling enabled
JProfiler Starting org/apache/catalina/startup/Bootstrap ...

Starting service Tomcat-Standalone
Apache Tomcat/4.0.6
TyrexDataSourceFactory:  Cannot create DataSource, Exception
java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource
at
org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexData
SourceFactory.java:166)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:164)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
com.sentori.common.util.ServiceLocator.getDatabaseConnection(ServiceLocator.
java:66)
at
com.sentori.common.dao.ControllerDAO.getLookupList(ControllerDAO.java:173)
at com.sentori.ebpp.plugin.StartupPlugIn.init(StartupPlugIn.java:60)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
2004-03-19 09:19:38,955 ERROR ControllerDAO - .getLookupList: Exception
creating DataSource: tyrex/jdbc/xa/EnabledDataSource
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
end of stact trace---

- Original Message - 
From: Edson Alves Pereira [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 19, 2004 7:56 AM
Subject: RE: JProfiler Tomcat Integration -tyrex driver error


I believe that there are some things in your code calling this tyrex
DataSource, try to make a find in files or take a look in the full
exception stack trace.

 --
 De: armalai[SMTP:[EMAIL PROTECTED]
 Responder: Tomcat Users List
 Enviada: quinta-feira, 18 de março de 2004 19:23
 Para: Tomcat Users List
 Assunto: JProfiler Tomcat

Out of memory -Tomcat4.x

2004-03-18 Thread armalai
Hi.,
   I'm getting out of memory Error.
How do i know the current jvm memory?
I know the hardware memory details?
Please advise me which one is causing this error and how do i know the current 
settings?

Thanks.,
MALAI

Java Heap Memory

2004-03-18 Thread armalai
Hi.,
  If i did not set any particuler memory size means what will be default value?
For Example we can set like this.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m

Thanks.,
MALAI

Re: Java Heap Memory

2004-03-18 Thread armalai
Hi.,
   Right now my Environment settings are,
OS: Windows 2000
Processor: Intetl Celeron 2.20Ghz
RAM: 512KB
JDK: J2SDK 1.4.2_03

Please advise me do i have to set memory heap manually..

Thanks.,
MALAI
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 12:08 PM
Subject: RE: Java Heap Memory



Hi,
The defaults depend on the JDK version as well as the Operating System.
There is no minimum set by default for the heap, typically, only a
maximum, and on many JDK/OS combinations it's 64MB.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: armalai [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 12:04 PM
To: Tomcat Users List
Subject: Java Heap Memory

Hi.,
  If i did not set any particuler memory size means what will be
default
value?
For Example we can set like this.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m

Thanks.,
MALAI



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



JProfiler Tomcat Integration -tyrex driver error

2004-03-18 Thread armalai
Hi.,
   In Jprofiler i just created a new session and i did select NewApplication Server 
Integration.
then i just select servlet optin to configure my particuler web-app.
While start profilling i'm getting error like 

TyrexDataSourceFactory:  Cannot create DataSource, Exception
java.lang.NoClassDefFoundError: tyrex/jdbc/xa/EnabledDataSource

But i'm not at all using this tyrex driver.I'm using oracle driver in my web-app.

Please advise me to get thru this error.

Thanks.,
MALAI

Tomcat Loadbalancing

2004-03-17 Thread armalai
Hi.,
  I'm trying to do Loadbalancing in tomcat.
My environement details are, 
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector

Right now i'm stuck up with apache to tomcat
communication thru ajp.

my questions are below..
1.How do i create multiple instance of tomcat?
  using CATALINA_BASE i could able to create one
instance with new server.xml from different location. 
  but not able to retrieve the jsp pages from default
tomcat instances webapp.
  i want to create more than two instances.
2.How do i do the loadbalancing  clustering?
   give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?

Please advise me to get thru this task..
It will be great you can provide me document for
this.

Thanks.,
MALAI

Re: Tomcat Loadbalancing

2004-03-17 Thread armalai
Tim.,
   I understand that i should use mod_jk instead of mod_jk2 ..
Let me start with my basic problem.
1.How do i create more than two instances.?
Using CATALINA_BASE i have created one instance.but i'm not able to get
the jsp pages from the original instances.

Thanks.,
MALAI

- Original Message - 
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 9:21 AM
Subject: Re: Tomcat Loadbalancing


 Start here first
 http://jakarta.apache.org/tomcat/faq/

 -Tim

 armalai wrote:

  Hi.,
I'm trying to do Loadbalancing in tomcat.
  My environement details are,
  Windows
  Tomcat 4.1.xx
  Apace 2.x
  Mod_jk2 connector
 
  Right now i'm stuck up with apache to tomcat
  communication thru ajp.
 
  my questions are below..
  1.How do i create multiple instance of tomcat?
using CATALINA_BASE i could able to create one
  instance with new server.xml from different location.
but not able to retrieve the jsp pages from default
  tomcat instances webapp.
i want to create more than two instances.
  2.How do i do the loadbalancing  clustering?
 give me the idea about worker properties config.
  3.Is it possible to do session replication?in few
  websites they talk about sticky session?
  what is sticky?does it covers session replica?
 
  Please advise me to get thru this task..
  It will be great you can provide me document for
  this.
 
  Thanks.,
  MALAI

 -
 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]