Minimum Memory Requirement for TC 5.0.x
Hi all, What is the minimum memory requirement to run TC 5.0.x in a Linux environment? or is there such a thing? I can't find it anywhere, which is kind of amusing. Many thanks, Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange problem
Hi all, I'm running Tomcat 5.0.30 on FC2 with SUN 1.4.1_02 jdk I'm having this strange problem, I can not access any jsp or servlet pages using a browser, it seems to be timing out, but telnet to the port tomcat is listening then type GET ... works. I can see the directory structure and regular html pages works fine, any ideas? Also, there were no error messages in the log either, a tcpdump indicates the server terminates the connection right after the http requst was sent from the browsers (I tried both IE and firefox) Many thanks!! Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: off topic - how do i convert an int to char
make a hash or array? On Tue, 7 Dec 2004 10:34:15 -0500, Nilesh Bhattad <[EMAIL PROTECTED]> wrote: > folks, > sorry for posting this offtopic qns here.. but would someone plz help me out > in converting an int value to char? my requirement is very simple. i'm > looping thro a list and for each counter i need to get 'a', 'b' and so forth. > > basically i need some conversion routine which will convert 0 to 'a', 1 to > 'b', 2 to 'c' and so on. > > again, i apologize for posting such a dumb qns. > > - nilesh > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about memory
> -Original Message- > From: Wade Chandler [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 6:34 PM > To: Tomcat Users List > Subject: Re: Question about memory > > Yang Xiao wrote: > > > > >>-Original Message- > >>From: Wade Chandler [mailto:[EMAIL PROTECTED] > >>Sent: Thursday, May 06, 2004 2:55 PM > >>To: Tomcat Users List > >>Subject: Re: Question about memory > >> > >>Yang Xiao wrote: > >> > >> > >>>Hi, > >>>I have development set to false and fork to true, tomcat still doesn't > >>>release the memory, any ideas? > >>> > >>>Thanks, > >>>Yang > >>> > >>>-Original Message- > >>>From: Randall Svancara [mailto:[EMAIL PROTECTED] > >>>Sent: Thursday, May 06, 2004 11:32 AM > >>>To: Tomcat Users List > >>>Subject: RE: Question about memory > >>> > >>>Just a silly question, but don't you also need to perform some > >> > >>additional > >> > >>>production configuration in your web.xml by setting fork equal to true > >> > >>and > >> > >>>developement equal to false. It explains it on this page here: > >>> > >>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper- > >> > >>howto.html#Production > >> > >>>%20Configuration > >>> > >>>I made some similar modifications and I noticed that tomcat started to > >>>release the memory when the server was not as busy. > >>> > >>>Randall > >>> > >>> > >>> > >>>-Original Message- > >>>From: Yang Xiao [mailto:[EMAIL PROTECTED] > >>>Sent: Thursday, May 06, 2004 9:07 AM > >>>To: Tomcat Users List > >>>Subject: Question about memory > >>> > >>> > >>>Hi list, > >>> > >>>I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. > >>> > >>>I did a simple load testing with JMeter last night and stopped it just > >>>before I went home, so right now there's no incoming request > whatsoever, > >> > >>but > >> > >>>TOP still shows heavy memory usage and swapping, it looks like even > >> > >>though > >> > >>>the load has subsided, Tomcat has not released the memory, what can I > do > >>>except restart the Tomcat instances to release the memory? > >>> > >>>I'm not sure if this is a valid question, so I apologize if I seem to > be > >>>lack of some basic understanding of how things work. > >>> > >>>Thanks in advance. > >>> > >>>Also the tomcats are started with -Xms64 -Xmx256 > >>> > >>> > >>> > >>>Yang > >>> > >>> > >>> > >>>Here's the top output > >>> > >>> > >>> > >>>11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 > >>> > >>>381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped > >>> > >>>CPU states: cpuusernice systemirq softirq iowait > idle > >>> > >>> total1.0%0.0% 56.1% 0.0% 0.0%0.0% > 42.7% > >>> > >>>Mem: 513292k av, 505136k used,8156k free, 0k shrd, > 64872k > >>>buff > >>> > >>> 280548k active, 208500k inactive > >>> > >>>Swap: 1044216k av, 52k used, 515328k free > 7388k > >>>cached > >>> > >>> > >>> > >>> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU > >> > >>COMMAND > >> > >>> 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc > >>> > >>> 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc > >>> > >>> 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc > >>> > >>> 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc > >>> > >>> 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc > >>> > >>> 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > >>> > >>> 8571 tomcat15 0
RE: Question about memory
> -Original Message- > From: Wade Chandler [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 2:55 PM > To: Tomcat Users List > Subject: Re: Question about memory > > Yang Xiao wrote: > > > Hi, > > I have development set to false and fork to true, tomcat still doesn't > > release the memory, any ideas? > > > > Thanks, > > Yang > > > > -Original Message- > > From: Randall Svancara [mailto:[EMAIL PROTECTED] > > Sent: Thursday, May 06, 2004 11:32 AM > > To: Tomcat Users List > > Subject: RE: Question about memory > > > > Just a silly question, but don't you also need to perform some > additional > > production configuration in your web.xml by setting fork equal to true > and > > developement equal to false. It explains it on this page here: > > > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper- > howto.html#Production > > %20Configuration > > > > I made some similar modifications and I noticed that tomcat started to > > release the memory when the server was not as busy. > > > > Randall > > > > > > > > -Original Message- > > From: Yang Xiao [mailto:[EMAIL PROTECTED] > > Sent: Thursday, May 06, 2004 9:07 AM > > To: Tomcat Users List > > Subject: Question about memory > > > > > > Hi list, > > > > I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. > > > > I did a simple load testing with JMeter last night and stopped it just > > before I went home, so right now there's no incoming request whatsoever, > but > > TOP still shows heavy memory usage and swapping, it looks like even > though > > the load has subsided, Tomcat has not released the memory, what can I do > > except restart the Tomcat instances to release the memory? > > > > I'm not sure if this is a valid question, so I apologize if I seem to be > > lack of some basic understanding of how things work. > > > > Thanks in advance. > > > > Also the tomcats are started with -Xms64 -Xmx256 > > > > > > > > Yang > > > > > > > > Here's the top output > > > > > > > > 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 > > > > 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped > > > > CPU states: cpuusernice systemirq softirq iowaitidle > > > >total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% > > > > Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k > > buff > > > >280548k active, 208500k inactive > > > > Swap: 1044216k av, 52k used, 515328k free7388k > > cached > > > > > > > > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU > COMMAND > > > > 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc > > > > 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc > > > > 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc > > > > 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc > > > > 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc > > > > 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc > > > > 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc > > > > 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc > > > > 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01
RE: where to define path to workers2.properties
Hi, By default it's your ${serverRoot}/conf dir, but you can do this LoadModule jk2_module modules/mod_jk2.so JkSet config.file /usr/local/apache/conf/workers2.propertie yang -Original Message- From: Stefan Burkard [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: where to define path to workers2.properties hi tomcat-users i have installed and running apache/tomcat/jk2 on a linux-box. in the meantime i updated apache and because i use a directory with version-number, the path to the apache-rootdir changed. now my mod_jk2-module searches the workers2.properties configfile still in the old apache-directory. can i anywhere define the path to the workers2.properties file? i found some examples for windows where the path is written to the registry, but no example for linux thanks and greetings stefan - 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: Question about memory
Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message----- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat16 0
Question about memory
Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8739 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8741 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8744 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8747 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8751 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8755 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8758 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8761 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8764 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8926 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc
RE: Mod_JK2 not sure if correctly setup!
Hi, Everything looks fine, do you have the AJP connector defined in the server.xml file? yang -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:46 PM To: Tomcat Users List Subject: Re: Mod_JK2 not sure if correctly setup! Yes of course: //WORKERS2.PROPERTIES # Use only for debugging [logger] level=WARN # Shared memory handling. Needs to be set. [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 tomcatId=localhost:8009 # Define the ajp13 worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Define the status worker [status:status] info=Status worker for displaying runtime information # Map the status page url [uri:/jk2-status/*] group=status:status //JK2.PROPERTIES # Set the desired handler list handler.list=request,container,channelSocket # Override the default port for the socketChannel channelSocket.port=8009 channelSocket.address=127.0.0.1 - Original Message - From: "Yang Xiao" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 04, 2004 1:07 PM Subject: RE: Mod_JK2 not sure if correctly setup! > The actual content of your workers2.properties and jk2.properties file would > be helpful to us, don't you think? > > -Original Message- > From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 04, 2004 1:01 PM > To: [EMAIL PROTECTED] > Subject: Mod_JK2 not sure if correctly setup! > > Is it normal to have alot of errors in the Apache error log such as below. > Everything seems to work fine but not > sure why I am getting so many errors: > > //Apache Error Log Output > > [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation > [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation > [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in > scoreboard > [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok > /usr/local/apache2/conf/workers2.properties > [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in > scoreboard > [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok > /usr/local/apache2/conf/workers2.properties > [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in > scoreboard > [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok > /usr/local/apache2/conf/workers2.properties > [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in > scoreboard > [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok > /usr/local/apache2/conf/workers2.properties > [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in > scoreboard > [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok > /usr/local/apache2/conf/workers2.properties > [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 > configured -- resuming normal operations > [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in > scoreboard > [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok > /usr/local/apache2/conf/workers2.properties > [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 > [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down > [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down > [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down > [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down > [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down > [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down > [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving > message body -1 11 > [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error > reading reply > [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable > error 12 > > > > - > 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] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod_JK2 not sure if correctly setup!
The actual content of your workers2.properties and jk2.properties file would be helpful to us, don't you think? -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:01 PM To: [EMAIL PROTECTED] Subject: Mod_JK2 not sure if correctly setup! Is it normal to have alot of errors in the Apache error log such as below. Everything seems to work fine but not sure why I am getting so many errors: //Apache Error Log Output [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in scoreboard [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving message body -1 11 [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error reading reply [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable error 12 - 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: servlet.http?
Hi You need to include the servlet-api.jar under $CATALINA_HOME/common/lib in your classpath. Yang -Original Message- From: Kalin Mintchev [mailto:[EMAIL PROTECTED] Sent: Friday, April 23, 2004 4:03 AM To: [EMAIL PROTECTED] Subject: servlet.http? hi all... this is my first question on this list so please be gentle... i'm trying to use a servlet that talks to a j2me application on some cell phone. the thing is when i try to compile the code on the server machine (i put it under the tomcat's servlet examples) i get an error that i have the clases in the HTTP servlet package missing. i found them (after downloading them again) in the server's java source. my question is where should i put them so the compiler can finde them and compile the servlet? it turns out there are a lot of servlet src folders.. thanks - 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: [newbie] tomcat5+apache2 virtual hosting
Wow, correct me if I'm wrong, but doesn't test.jsp have to be somewhere under $CATALINA_HOME/ROOT no matter how you configure your virtual host in Apache? Yang -Original Message- From: Mark Page [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 1:48 PM To: Tomcat Users List Subject: Re: [newbie] tomcat5+apache2 virtual hosting I fooled myself - forgot to clear-down browser cache after doing some fiddling. :/ Still not working I am using mod_jk2 - and as far as I can tell apache and tomcat do talk, for example if I move my test.jsp to $CATALINA/webapps/ROOT and browse to http:/test.int/test.jsp it works, so I guess that something is wrong with the context for test.int ??? And also, the 404 is from tomcat, so apache is handing over to tomcat for .jsp but tomcat can't find them. On Thu, 2004-04-22 at 18:37, Parsons Technical Services wrote: > What was it > > > - Original Message - > From: "Mark Page" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Thursday, April 22, 2004 1:24 PM > Subject: Re: [newbie] tomcat5+apache2 virtual hosting > > > > I've sorted it - thanks anyway :) > > > > On Thu, 2004-04-22 at 17:59, Mark Page wrote: > > > Hi all, > > > > > > I'm going nuts trying to do something pretty straight forward, namely > > > getting TOMCAT to serve .jsp files via apache virtual hosts and still > > > keep the default tomcat stuff at port 8080. > > > > > > I've read every howto I can find and can only get one or the other to > > > work. My confusion seems to revolve around the element in > > > server.xml. > > > > > > What I want is to be able to do is point at http://localhost:8080 and > > > see the tomcat welcome page. I then want to point to > > > http://test.int/test.jsp and see the .jsp output. > > > > > > The test.jsp file resides in /var/www/html/beta but I keep getting > > > tomcat 404 error, so I guess it's having problems locating the .jsp and > > > therefore suspect my contexts are incorrect. > > > > > > I would be grateful is someone could have a look at my server.xml and > > > hhtpd.conf snippets and enlighten me. > > > > > > Regards. > > > > > > > > > > > > this is how my server.xml is: > > > > > >> >unpackWARs="true" autoDeploy="true" > > >xmlValidation="false" xmlNamespaceAware="false"> > > > > > > > > directory="logs" prefix="localhost_log." suffix=".txt" > > > timestamp="true"/> > > > > > > > > > > > > > > > > > unpackWARs="true" autoDeploy="true"> > > > > > > > > > > > > > > directory="logs" prefix="test_int_log." suffix=".txt" > > > timestamp="true" /> > > > > > > > > > and the relevant bit of httpd.conf: > > > > > > > > > ServerName test.int > > > ServerAdmin [EMAIL PROTECTED] > > > DocumentRoot /var/www/html/beta > > > > > > JkUriSet worker ajp13:localhost:8009 > > > > > > > > > > > > > > > > > > I have also tried using the workers2.properties file instead of the > > > JkUriSet by entering > > > > > > [uri:test.int/*.jsp] > > > worker=ajp13:localhost:8009 > > > > > > but it dosen't seem to make much difference > > > > > > > > > > > > > > > - > > > 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] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: differences between java -s Vs java -X when the JVM is r unning
I think it might be java -server got cut off to java -s Try ps -elf see if that's the case, I don't see a -s option for java. Yang -Original Message- From: Software [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 11:40 AM To: Tomcat Users List Subject: differences between java -s Vs java -X when the JVM is running Importance: High Hi i'm using tomcat 4103, when i'm typing this command ps -ef | grep javai got many theses lines /usr/java/j2sdk1.4.0/bin/java -s What does this line mean and what is the difference between this line and this /usr/java/j2sdk1.4.0/bin/java -X This line affect the performance on the server Thnaks for you help fabian - 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: Catalina.sh startup options
Sorry, I found those are the java options, not Catalina.sh specific. -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 11:14 AM To: Tomcat Users List Subject: Catalina.sh startup options Hi list, Can someone point me to a link with the complete catalina.sh startup options and their descriptions? I'm trying to figure out some of the parameters I have seen people using, but can't find any documentation for it. Thanks, Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina.sh startup options
Hi list, Can someone point me to a link with the complete catalina.sh startup options and their descriptions? I'm trying to figure out some of the parameters I have seen people using, but can't find any documentation for it. Thanks, Yang
RE: Classpath problems with tomcat on Linux 9
Hi, You need the <%@ page import="package" %> directive to tell it where to look for it. Yang -Original Message- From: Andy Wadsworth [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 3:11 PM To: Tomcat Users List Subject: Re: Classpath problems with tomcat on Linux 9 Still no luck. I'm basically trying to do exactly the same thing that the "jsp-examples/checkbox" is doing and I can't get Tomcat to recognize my UserData.class file. I've tried placing my UserData.class file in every location possible, and no luck. My next step will be to downgrade to Tomcat 4 so I can at least try out the examples that are described in the Tomcat Bible (the examples don't work with Tomcat 5). Should I expect Tomcat to find my UserData.class file if I put it in webapps//WEB-INF/classes? Do I need to create a web.xml or should it find the class file without any web.xml customization? If anyone has a very simple example that I could drop in to see if it works, I'd appreciate it. I've already verified that the jsp-examples all work, but there is a lot of stuff in the web.xml that I shouldn't need for what I want to do, and finding what I need is probably where my problems lie. -Andy. On Friday 16 April 2004 07:32 pm, Berry, Layton wrote: > I'm guessing you need to put the UserData class in a package, > and import it into your savename page. > > Quoting from JSP 2.0 spec, "As of JSP 2.0, it is illegal > to refer to any classes from the unnamed (a.k.a. default) package." > > -Layton > > >-Original Message- > > From: Andy Wadsworth [mailto:[EMAIL PROTECTED] > > >Sent: Friday, April 16, 2004 2:26 PM > >To: [EMAIL PROTECTED] > >Subject: Classpath problems with tomcat on Linux 9 > > > > > > > >I'm just getting started with my JSP and tomcat experience, and while > >learning how JSP works, I'm can't get tomcat to recognize supporting > >class definitions that I have placed in /WEB-INF/classes. > > > >Here's my setup: > >* tomcat 5.0.19, running on RedHat Linux 9.0 Pro > >* no customization to $CATALINA_HOME/conf/web.xml > > no customization to $CATALINA_HOME/conf/server.xml > > added my user account as a manager in > >$CATALINA_HOME/conf/tomcat-users.xml > >* I'm running tomcat using the $CATALINA_HOME/bin/startup.sh > >* I'm running tomcat as my normal login id, although I've also > >tried it as > > root just to make sure it wasn't a file permissions issue. > >* I'm able to use the Tomcat manager at > >http://localhost:8080/manager to > > start/stop/reload/deploy applications > >* The jsp-examples appear to work fine > > > >Here's what I'm trying to do: > >* Created the following "index.jsp" and placed it in > > $CATALINA_HOME/webapps/test > > > > > > > >What's your name? > >What's your email? > > > > > > > >* Created the following as $CATALINA_HOME/webapps/test/savename.jsp > > > > > > > >Name: <%= user.getUsername() %> > >Email: <%= user.getEmail() %> > > > > > >* Created a UserData.java file that defines a public class UserData > > with username and email fields as type String. Added public > > access methods for setUsername, getUsername, setEmail, getEmail. > > I compiled UserData.java using javac, and to produce UserData.class > > which I placed in $CATALINA_HOME/webapps/test/WEB-INF/classes. The > > UserData.java class does not define a package nor does it import > > anything (line 1 is "public class UserData") > > > >* deployed the "test" application using the tomcat manager and it shows > > that the application is deployed with no errors. > > > >* Using IE 6.0, I enter the url to test.jsp and it displays the form as > > expected. I enter a name and email value into the form and press the > > submit button and I get the following: > > HTTP Status 500 - > > exception > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: 1 in jsp file: /savename.jsp > > > > Generated sevlet error: > >[javac] Compiling 1 source file > > > ><...>/work/Catalina/localhost/test/org/apache/jsp/savename_jsp.java:42 > > symbol : class UserData > >location: class org.apache.jsp.savename_jsp > >UserDAta user = null > > > > > >I suspect this is a classpath issue but everything I read says > >that if you > >put your classes in /WEB-INF/classes, it will just work. > > > >There must be some basic thing I'm missing. Any help would be very much > >apprciated. > > > >Thanks in advance. > >-Andy. > > > >-- > >### > ># Andy Wadsworth # > ># # > ># BondMart Technologies, Inc. # > ># [EMAIL PROTECTED] # > ># # > >### > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] -- #
RE: Connecting the HTTP Server and Tomcat
Hi, The jsvc utility in commons-daemon is just for this purpose, it allows you to specify a user TC should run as, and if you read the INSTALL.txt and Tomcat5.sh under native/ you will know it's very easy to change the startup method. Yang -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:35 PM To: 'Tomcat Users List' Subject: RE: Connecting the HTTP Server and Tomcat Hi Currently I use catalina.sh start | stop to control tomcat 4.1.x and 5.0.x running as root. Can I change it easily to use commons-daemon (running as non-root)? A lot of command line options are set in catalina.sh. Would I need to do this manually ? Regards, Steffen - 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: How to really destroy a Session
That's if it's a session cookie, is it? You can always use the Cookie API to force the cookie to expire. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, April 16, 2004 9:56 AM To: 'Tomcat Users List' Subject: RE: How to really destroy a Session The cookie is removed when the user closes the browser, no ? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, April 16, 2004 8:34 AM > To: [EMAIL PROTECTED] > Subject: How to really destroy a Session > > > > > > > Hi all, > > I am using Tomcat 5.0.19. > > In my application the generated sessions are identified by a > cookie on the client. I only allow single sign on. Now I want > to destroy the session and I call in a session an > invalidate() and the session isn't available. Then the > application redirect the request to the start page. But > there is still the cookie with JSESSIONID on the client and > there is no new session possible. > > Is there a solution to remove these cookies? > > Thanks, > Marc > > > - > 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: Load balancing with apache2, mod_jk2 & tomcat 5.0
Hi, Hmm. I commented out the shm.file line in my jk2.properties because it doesn't seem to be working, but I just did a test with it uncommented, LD still works fine. However, if I use anything other than file=anon in the workers2.properties file, I don't get the Scoreboard info on the jkstatus page, kind of strange. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:55 PM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 Does the shm play a role in this? I note that you have the following: [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon #size=104856 #debug=1 Do your tomcat servers have a corresponding entry in their jk2.properties file? Like this? channelSocket.port=8019 shm.file=/mnt/logs/jk2.shm Is this even necessary for load balancing? -Tom --- Yang Xiao <[EMAIL PROTECTED]> wrote: > Yes. > > -Original Message- > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 9:42 AM > To: Tomcat Users List > Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > Thanks. The only change that you made to the tomcat server.xml conf file is > assigning your timcatid values to the jvmRoute property, correct? > > jvmRoute="psahammerhead"> > > -Tom > > --- Yang Xiao <[EMAIL PROTECTED]> wrote: > > This is pretty much what I have and it works fine. > > [logger] > > level=DEBUG > > [config:] > > debug=0 > > debigEnv=0 > > > > [uriMap:] > > info=Maps the requests, Options: debug > > debug=0 > > > > # Alternate file logger > > [logger.file:0] > > level=DEBUG > > file=/usr/local/apache/logs/jk2.log > > > > [shm] > > info=Scoreboard. Requried for reconfiguration and status with multiprocess > > servers. > > file=anon > > #size=104856 > > #debug=1 > > > > [workerEnv:] > > info=Global server options > > debug=0 > > logger=logger.file:0 > > > > # Defines a load balancer named lb. Use even if you only have one machine. > > [lb:lb] > > info=Default Load Balancer > > debug=10 > > > > # Example socket channel, override port and host. > > [channel.socket:localhost:8009] > > port=8009 > > host=127.0.0.1 > > lb_factor=5 > > tomcatid=tomcat1 > > > > # Second Scoket Channel > > [channel.socket:localhost:8019] > > port=8019 > > host=127.0.0.1 > > lb_factor=10 > > tomcatid=tomcat2 > > > > # Third Scoket Channel > > [channel.socket:localhost:8029] > > port=8029 > > host=127.0.0.1 > > lb_factor=10 > > tomcatid=tomcat3 > > > > # define the worker > > [ajp13:localhost:8009] > > channel=channel.socket:localhost:8009 > > group=lb > > > > # define the second worker > > [ajp13:localhost:8019] > > channel=channel.socket:localhost:8019 > > group=lb > > > > # define the Third worker > > [ajp13:localhost:8029] > > channel=channel.socket:localhost:8029 > > group=lb > > > > # Map the Tomcat examples webapp to the Web server uri space > > [uri:/jsp-examples/*] > > info=JSP Examples > > group=lb > > > > > > [uri:/webtest/*] > > info=Test JSP Page > > group=lb > > > > [status:] > > > > -Original Message- > > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 15, 2004 7:46 AM > > To: Tomcat Users List > > Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > > > Yes. I did a full stop and start of apache. There are no errors in the > log > > files either. Do you, or anyone else, have a workers2.properties file of > a > > working system that you are willing to share? I've gone through all the > > sections and properties in the latest jakarta jk2 document as well as > other > > How-Tos and don't see what I've missed (I'm afraid I don't understand all > of > > it > > either :). Does the shm section play a part? I interpretted it to be > > needed > > only if one wants to share session data between the differnet tomcat > > servers, > > and does not have anything to do with load balancing. > > > > Thanks, > > -Tom > > > > > > --- Yang Xiao <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Did you restart the Apache2 server? My understanding is JK only reloads > it > > > only if the section you modified in
RE: auto generation of mod_jk.conf in tomcat 5
Hi, In httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /jsp-examples/* router In server.xml Add this under and this under That's all there is to it. Yang -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:35 PM To: Tomcat Users List Subject: auto generation of mod_jk.conf in tomcat 5 When we used tomcat 3.2.3, I configured it to autogenerate the mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use it??? I like it becouse each time a app is deployed I just have to make apache re-read it's conf file to get the new map to work. how do I configure tomcat 5 to auto-generate it??? -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - 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: looking for jk2
http://www.reliablepenguin.com/clients/misc/tomcat/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:18 AM To: [EMAIL PROTECTED] Subject: looking for jk2 I'm running Tomcat 4.1.18 and apache 1.3 on linux Mandrake 9.0 I'm trying to migrate from warp to jk2. Can someone point me an url where I could find a step by step documentation about how to install and configure jk2. thanks in advance. L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access Manager and Admin utilities with load balancing enabled
Hi list, I have to ask this one more time since no one replied to my last post. I have load balancing enabled with TC 5.0.19 and JK2 and I changed the line in server.xml that says to: but I can no longer access the admin and manager utilities, please help. Yang
RE: Load balancing with apache2, mod_jk2 & tomcat 5.0
Yes. -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 9:42 AM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 Thanks. The only change that you made to the tomcat server.xml conf file is assigning your timcatid values to the jvmRoute property, correct? -Tom --- Yang Xiao <[EMAIL PROTECTED]> wrote: > This is pretty much what I have and it works fine. > [logger] > level=DEBUG > [config:] > debug=0 > debigEnv=0 > > [uriMap:] > info=Maps the requests, Options: debug > debug=0 > > # Alternate file logger > [logger.file:0] > level=DEBUG > file=/usr/local/apache/logs/jk2.log > > [shm] > info=Scoreboard. Requried for reconfiguration and status with multiprocess > servers. > file=anon > #size=104856 > #debug=1 > > [workerEnv:] > info=Global server options > debug=0 > logger=logger.file:0 > > # Defines a load balancer named lb. Use even if you only have one machine. > [lb:lb] > info=Default Load Balancer > debug=10 > > # Example socket channel, override port and host. > [channel.socket:localhost:8009] > port=8009 > host=127.0.0.1 > lb_factor=5 > tomcatid=tomcat1 > > # Second Scoket Channel > [channel.socket:localhost:8019] > port=8019 > host=127.0.0.1 > lb_factor=10 > tomcatid=tomcat2 > > # Third Scoket Channel > [channel.socket:localhost:8029] > port=8029 > host=127.0.0.1 > lb_factor=10 > tomcatid=tomcat3 > > # define the worker > [ajp13:localhost:8009] > channel=channel.socket:localhost:8009 > group=lb > > # define the second worker > [ajp13:localhost:8019] > channel=channel.socket:localhost:8019 > group=lb > > # define the Third worker > [ajp13:localhost:8029] > channel=channel.socket:localhost:8029 > group=lb > > # Map the Tomcat examples webapp to the Web server uri space > [uri:/jsp-examples/*] > info=JSP Examples > group=lb > > > [uri:/webtest/*] > info=Test JSP Page > group=lb > > [status:] > > -Original Message- > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 7:46 AM > To: Tomcat Users List > Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > Yes. I did a full stop and start of apache. There are no errors in the log > files either. Do you, or anyone else, have a workers2.properties file of a > working system that you are willing to share? I've gone through all the > sections and properties in the latest jakarta jk2 document as well as other > How-Tos and don't see what I've missed (I'm afraid I don't understand all of > it > either :). Does the shm section play a part? I interpretted it to be > needed > only if one wants to share session data between the differnet tomcat > servers, > and does not have anything to do with load balancing. > > Thanks, > -Tom > > > --- Yang Xiao <[EMAIL PROTECTED]> wrote: > > Hi, > > Did you restart the Apache2 server? My understanding is JK only reloads it > > only if the section you modified in workers.properties has "ver" defined. > > Also, check your jk.log and Catalina.log files for errors. > > Yang > > > > -Original Message- > > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 14, 2004 7:09 PM > > To: Tomcat Users List > > Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > > > Thanks but it doesn't seem to make any difference. For each tomcat server > I > > added sections like the following: > > > > [ajp13:psahammerhead:8009] > > channel=channel.socket:psahammerhead:8009 > > group=lb > > tomcatId=psahammerhead > > > > It still only wants to use one of the servers. There are other properties > > that > > could be used but they're not documented too well. Any other suggestions > > would > > be greatly appreciated. > > > > -Tom > > > > > > --- Yang Xiao <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I think you need to further define the workers with > > > > > > {ajp13:psahammerhead:8009] > > > channel=channel.socket:psahammerhead:8009 > > > group=lb > > > ... > > > etc > > > > > > hope this helps. > > > Yang > > > > > > > > > > > > -Original Message- > > > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, April 14, 2004 10:17 AM > > > To: [EMAIL PROTECTED] > > > Subj
RE: Load balancing with apache2, mod_jk2 & tomcat 5.0
This is pretty much what I have and it works fine. [logger] level=DEBUG [config:] debug=0 debigEnv=0 [uriMap:] info=Maps the requests, Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache/logs/jk2.log [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon #size=104856 #debug=1 [workerEnv:] info=Global server options debug=0 logger=logger.file:0 # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] info=Default Load Balancer debug=10 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 lb_factor=5 tomcatid=tomcat1 # Second Scoket Channel [channel.socket:localhost:8019] port=8019 host=127.0.0.1 lb_factor=10 tomcatid=tomcat2 # Third Scoket Channel [channel.socket:localhost:8029] port=8029 host=127.0.0.1 lb_factor=10 tomcatid=tomcat3 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # define the second worker [ajp13:localhost:8019] channel=channel.socket:localhost:8019 group=lb # define the Third worker [ajp13:localhost:8029] channel=channel.socket:localhost:8029 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] info=JSP Examples group=lb [uri:/webtest/*] info=Test JSP Page group=lb [status:] -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 7:46 AM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 Yes. I did a full stop and start of apache. There are no errors in the log files either. Do you, or anyone else, have a workers2.properties file of a working system that you are willing to share? I've gone through all the sections and properties in the latest jakarta jk2 document as well as other How-Tos and don't see what I've missed (I'm afraid I don't understand all of it either :). Does the shm section play a part? I interpretted it to be needed only if one wants to share session data between the differnet tomcat servers, and does not have anything to do with load balancing. Thanks, -Tom --- Yang Xiao <[EMAIL PROTECTED]> wrote: > Hi, > Did you restart the Apache2 server? My understanding is JK only reloads it > only if the section you modified in workers.properties has "ver" defined. > Also, check your jk.log and Catalina.log files for errors. > Yang > > -Original Message- > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 14, 2004 7:09 PM > To: Tomcat Users List > Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > Thanks but it doesn't seem to make any difference. For each tomcat server I > added sections like the following: > > [ajp13:psahammerhead:8009] > channel=channel.socket:psahammerhead:8009 > group=lb > tomcatId=psahammerhead > > It still only wants to use one of the servers. There are other properties > that > could be used but they're not documented too well. Any other suggestions > would > be greatly appreciated. > > -Tom > > > --- Yang Xiao <[EMAIL PROTECTED]> wrote: > > Hi, > > I think you need to further define the workers with > > > > {ajp13:psahammerhead:8009] > > channel=channel.socket:psahammerhead:8009 > > group=lb > > ... > > etc > > > > hope this helps. > > Yang > > > > > > > > -Original Message- > > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 14, 2004 10:17 AM > > To: [EMAIL PROTECTED] > > Subject: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > > > Hi, > > > > I have set up four tomcat 5.0 servers for load balancing using an apache2 > > server and mod_jk2 on RedHat 9.0. The trouble that I am having is that > most > > of > > the user sessions are routed to only one of the tomcat servers even though > > the > > lb_factor for all is the same, 10. All tomcat servers seem to be working > > since > > I can disable all but one in the workers2.properties file to force that > > tomcat > > server to be used. Chnaging the lb_factor can also cause a different > tomcat > > server to be used most of the time, but I haven't figured out how to > control > > the balancing by lb_factor. > > > > Below is the workers2.properties file that I am using. > > > > Thanks for any help you can provide, > > -Tom > > > > # workers2.properties > > > > [logger] > > level=DEBUG > > > > [config:] > > debug=0 > > debugEnv=0 > > > > [uriMap:] > > info=Maps the req
RE: Load balancing with apache2, mod_jk2 & tomcat 5.0
Hi, Did you restart the Apache2 server? My understanding is JK only reloads it only if the section you modified in workers.properties has "ver" defined. Also, check your jk.log and Catalina.log files for errors. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 7:09 PM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 & tomcat 5.0 Thanks but it doesn't seem to make any difference. For each tomcat server I added sections like the following: [ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb tomcatId=psahammerhead It still only wants to use one of the servers. There are other properties that could be used but they're not documented too well. Any other suggestions would be greatly appreciated. -Tom --- Yang Xiao <[EMAIL PROTECTED]> wrote: > Hi, > I think you need to further define the workers with > > {ajp13:psahammerhead:8009] > channel=channel.socket:psahammerhead:8009 > group=lb > ... > etc > > hope this helps. > Yang > > > > -Original Message- > From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 14, 2004 10:17 AM > To: [EMAIL PROTECTED] > Subject: Load balancing with apache2, mod_jk2 & tomcat 5.0 > > Hi, > > I have set up four tomcat 5.0 servers for load balancing using an apache2 > server and mod_jk2 on RedHat 9.0. The trouble that I am having is that most > of > the user sessions are routed to only one of the tomcat servers even though > the > lb_factor for all is the same, 10. All tomcat servers seem to be working > since > I can disable all but one in the workers2.properties file to force that > tomcat > server to be used. Chnaging the lb_factor can also cause a different tomcat > server to be used most of the time, but I haven't figured out how to control > the balancing by lb_factor. > > Below is the workers2.properties file that I am using. > > Thanks for any help you can provide, > -Tom > > # workers2.properties > > [logger] > level=DEBUG > > [config:] > debug=0 > debugEnv=0 > > [uriMap:] > info=Maps the requests. Options: debug > debug=0 > > # Alternate file logger > [logger.file:0] > level=DEBUG > file=/usr/local/apache2/logs/jk2.log > > #[shm:] > #info=Scoreboard. Required for reconfiguration and status with multiprocess > servers > #file=/usr/local/apache2/logs/jk2.shm > #size=100 > #debug=0 > #disabled=0 > > [workerEnv:] > info=Global server options > debug=0 > timing=1 > # 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] > ver=1 > info=Default load balancer. > debug=10 > > [channel.socket:psahammerhead:8009] > ver=1 > graceful=0 > info=A tomcat instance - psahammerhead. > debug=0 > disabled=0 > group=lb > tomcatId=psahammerhead > lb_factor=10 > > [channel.socket:psashovelhead:8009] > ver=1 > graceful=0 > info=A tomcat instance - psashovelhead. > debug=0 > disabled=0 > group=lb > tomcatId=psashovelhead > lb_factor=10 > > [channel.socket:psabonnethead:8009] > ver=1 > graceful=0 > info=A tomcat instance - psabonnethead. > debug=0 > disabled=1 > group=lb > tomcatId=psabonnethead > lb_factor=10 > > [channel.socket:psawinghead:8009] > ver=1 > graceful=0 > info=A tomcat instance - psawinghead. > debug=0 > disabled=1 > group=lb > tomcatId=psawinghead > lb_factor=10 > > [status:status] > info=Status worker, displays runtime informations > > [uri:/jkstatus] > group=status:status > > # Map the Tomcat examples webbapp > [uri:/myapp/*] > info=Map the whole webapp > group=lb > > > > > > > > __ > Do you Yahoo!? > Yahoo! Tax Center - File online by April 15th > http://taxes.yahoo.com/filing.html > > - > 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] > __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html - 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: Load balancing with apache2, mod_jk2 & tomcat 5.0
Hi, I think you need to further define the workers with {ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb ... etc hope this helps. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 10:17 AM To: [EMAIL PROTECTED] Subject: Load balancing with apache2, mod_jk2 & tomcat 5.0 Hi, I have set up four tomcat 5.0 servers for load balancing using an apache2 server and mod_jk2 on RedHat 9.0. The trouble that I am having is that most of the user sessions are routed to only one of the tomcat servers even though the lb_factor for all is the same, 10. All tomcat servers seem to be working since I can disable all but one in the workers2.properties file to force that tomcat server to be used. Chnaging the lb_factor can also cause a different tomcat server to be used most of the time, but I haven't figured out how to control the balancing by lb_factor. Below is the workers2.properties file that I am using. Thanks for any help you can provide, -Tom # workers2.properties [logger] level=DEBUG [config:] debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache2/logs/jk2.log #[shm:] #info=Scoreboard. Required for reconfiguration and status with multiprocess servers #file=/usr/local/apache2/logs/jk2.shm #size=100 #debug=0 #disabled=0 [workerEnv:] info=Global server options debug=0 timing=1 # 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] ver=1 info=Default load balancer. debug=10 [channel.socket:psahammerhead:8009] ver=1 graceful=0 info=A tomcat instance - psahammerhead. debug=0 disabled=0 group=lb tomcatId=psahammerhead lb_factor=10 [channel.socket:psashovelhead:8009] ver=1 graceful=0 info=A tomcat instance - psashovelhead. debug=0 disabled=0 group=lb tomcatId=psashovelhead lb_factor=10 [channel.socket:psabonnethead:8009] ver=1 graceful=0 info=A tomcat instance - psabonnethead. debug=0 disabled=1 group=lb tomcatId=psabonnethead lb_factor=10 [channel.socket:psawinghead:8009] ver=1 graceful=0 info=A tomcat instance - psawinghead. debug=0 disabled=1 group=lb tomcatId=psawinghead lb_factor=10 [status:status] info=Status worker, displays runtime informations [uri:/jkstatus] group=status:status # Map the Tomcat examples webbapp [uri:/myapp/*] info=Map the whole webapp group=lb __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html - 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 Manager utility + JVM Route
Hi list, I've configured jvmRoute using the following directive in the server.xml file for load balancing but I can no longer access manager utility anymore, does anyone know why and how I can still access it? Thanks, Yang Yang Xiao Oak Hill Platinum Partners, L.L.C. 1100 King Street, Building #4 Rye Brook, NY 10573 Tel: (914) 690-2293 Fax: (914)690-2220 [EMAIL PROTECTED]
RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]
Hem, unfortunately, I tried that, which worked, but then tomcat complains about another XML library not being linked. I'm building Apache from scratch now... please help. Yang -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 3:02 PM To: Tomcat Users List Subject: Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5] Yang Xiao wrote: >Hi, >Thanks for the help >I went back and modified the Makefile with all 3 libraries as you have said, >recompiled and now I'm getting a different error: >INFO: APR not loaded, disabling jni components: java.io.IOException: >java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so: >/usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno > >I'm not too good with C library programming, so can you help to explain what >this is? > > Ugh, looks like there is another link dependency. "libaprutil" wants a link to GDBM library. Try to locate something looking like "/usr/lib/lib*dbm*" and add that to Makefile, without leading "lib", like this "-ldbm". Nix. - 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: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]
-Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 1:49 AM To: Tomcat Users List Subject: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5] Yang Xiao wrote: > Hi list, > I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work > I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so > in /usr/local/apache/modules > But when I start the Tomcat server, I'm getting this error > > INFO: APR not loaded, disabling jni components: java.io.IOException: > java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so: > /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final It is a constant problem with JK2 JNI lib. I've had it on 2.0.2 and on 2.0.4. libjkjni.so needs to be linked against all three APR libs: -lapr -laprutil -lexpat. This is the case on Linux (Mandrake 9.1) and on Tru64 UNIX (4.0D). After modifying the Makefile, it went OK. It loads and works. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi, Thanks for the help I went back and modified the Makefile with all 3 libraries as you have said, recompiled and now I'm getting a different error: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so: /usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno I'm not too good with C library programming, so can you help to explain what this is? Thanks, Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache2+Jk2+Tomcat5
-Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 8:18 PM To: Tomcat Users List Subject: Re: Apache2+Jk2+Tomcat5 On Mon, Apr 12, 2004 at 07:37:31PM -0400, Yang Xiao wrote: : I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work : I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so : in /usr/local/apache/modules : But when I start the Tomcat server, I'm getting this error : : INFO: APR not loaded, disabling jni components: java.io.IOException: : java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so: : /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final The error message is your big clue here ;) Do a web search for the details of what this message means, then run "ldd" on libjkjni.so to determine which shared libs it requires. Notice which libs ldd says don't exist, and set (or append) $LD_LIBRARY_PATH accordingly. -QM -- Thanks, but I double checked the libjkjni.so and LD_LIBRARY_PATH and they show: ldd /usr/local/apache/modules/libjkjni.so libcrypt.so.1 => /lib/libcrypt.so.1 (0x00be5000) libapr-0.so.0 => /usr/local/apache/lib/libapr-0.so.0 (0x00415000) libc.so.6 => /lib/tls/libc.so.6 (0x001b5000) librt.so.1 => /lib/tls/librt.so.1 (0x00c14000) libm.so.6 => /lib/tls/libm.so.6 (0x002f) libnsl.so.1 => /lib/libnsl.so.1 (0x0084c000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x0043f000) libdl.so.2 => /lib/libdl.so.2 (0x00314000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0019d000) $LD_LIBRARY_PATH /lib:/lib/tls:/usr/local/apache/lib:/usr/lib:/usr/local/apr/lib:/usr/local/l ib What am I doing wrong? Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2+Jk2+Tomcat5
Hi list, I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so in /usr/local/apache/modules But when I start the Tomcat server, I'm getting this error INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so: /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final Please help! My jk2.properties file: # Set the desired handler list handler.list=apr,request,channelSocket channelSocket.port=8009 shm.file=/usr/local/tomcat/logs/jk2.shm apr.NativeSo=/usr/local/apache/modules/libjkjni.so workers2.properties: [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: and httpd.conf: LoadModule jk2_module modules/mod_jk2.so JkSet config.file /usr/local/apache/conf/workers2.propertie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache with JK ApacheConfig Class not found!
Argh, found through the old archives, it's changed to org.apache.jk.config.ApacheConfig Yang -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 2:16 PM To: 'Tomcat Users List' Subject: Apache with JK ApacheConfig Class not found! Hi list, I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I have added the following lines to the server.xml file: Under Server container and under Host I have tried using tomcat4 according to the How-to, but none of them work and I get the cnfe which is shown below, thanks in advance! --- Catalina.start: java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java :112) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at org.apache.catalina.startup.Catalina.start(Catalina.java:586) 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 0 ms java.lang.reflect.InvocationTargetException 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.await(Catalina.java:657) at org.apache.catalina.startup.Catalina.start(Catalina.java:617) - 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]
Apache with JK ApacheConfig Class not found!
Hi list, I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I have added the following lines to the server.xml file: Under Server container and under Host I have tried using tomcat4 according to the How-to, but none of them work and I get the cnfe which is shown below, thanks in advance! --- Catalina.start: java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java :112) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at org.apache.catalina.startup.Catalina.start(Catalina.java:586) 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 0 ms java.lang.reflect.InvocationTargetException 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.await(Catalina.java:657) at org.apache.catalina.startup.Catalina.start(Catalina.java:617) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat (4.1) doesn't answer
-Original Message- From: Gianni Pucciani [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 4:21 AM To: Tomcat Users List Subject: Re: Tomcat (4.1) doesn't answer Parsons Technical Services wrote: > Gianni, > > Try using the IP. If you can get to it with an IP then your issue is with > the DNS otherwise you have an issue with your network. I've tryed also with http://myip:8080 without results. > > What OS are you running? Linux RH9. Maybe the problem is in my router configuration. > What error number are you getting? > Connection refused when attempting to contact myhost.mydomain.com. thanks > > Doug > www.paarsonstechnical.com > > > - Original Message - > From: "Gianni Pucciani" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, April 07, 2004 5:50 PM > Subject: Tomcat (4.1) doesn't answer > > > >>Hi all, >>I've installed Tomcat 4.1 and it runs well when I browse >>http://localhost:8080. >>With my firewall port open, when I call http://myhost.mydomain.com:8080 >>I receive connection refused. I use a dinamic dns, that run correctly. >>When scan my 8080 port with a port scanning (grc.com) the port is open. >>Could anyone give me some advice? >>Thanks >> >>Gianni >> >>- >>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] Make sure you disable the iptables firewall, RH9 comes with it configured sometimes. Try #service iptables stop Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]