Re: Tomcat hangs after some time
We are running on the following platform: Windows NT 4.0 SP6a Tomcat 3.3.1a (The problem originally occurred on 3.2.4, we upgraded to 3.3.1a hoping to solve the problem) Sun Java SDK 1.3.1_08 Hi, I have heard of Tomcat hanging in some situations up to 4.1.24. However looking at the above list you are running very old stuff. You might want to upgrade to a new JDK and to Tomcat 4.1.27. I'm pretty sure people are going to tell you to upgrade those before you do anything else. (since they are old... it would be one thing if you are on 4.1.24 but 3.x is very old) -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to obtain a module (.so) for JK2 on Linux (RH9)
I agree with Stuart. Use JK if JK2 won't work. I don't understand what's up with JK2 and RH9. Enough people are having troubles with it. I'm curious enough now to take a look. -e On Mon, 1 Sep 2003, Stuart Stephen wrote: I had a similar problem, it wouldn't compile a .so in RH9. I gave up on it and went back to good old trusty mod_jk 1 in the end. -Original Message- From: jerome moliere [mailto:[EMAIL PROTECTED] Sent: 30 August 2003 09:20 To: Tomcat Users List Subject: Re: Unable to obtain a module (.so) for JK2 on Linux (RH9) Eric J. Pinnell wrote: Hi, thanks eric, JK2 should compile with just the following: ./configure --with-apxs2=/path/to/apache/bin/apxs make yes ,it should . but I still can't have this fu... module compiled It should create mod_jk2.so in the build directory tree not in the directory that you ran configure and make from. I forget exactly where it puts it but a find ./ | grep so from the top level of the source should root it out quick fast. yes the location is ../build/jk2/apache2 but allways empty for me (no .so at all) the find keeps returning nothing for my .so can't spent much time for this problem so I'll use mod_proxy instead Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket Problem with tomcat on Solaris 8
Hi, Other people have had this problem. You might want to try Tomcat 4.1.27 as it has a number of Coyote fixes. As for Solaris settings here are some that I use: (excuse the cut and paste) Install Patch IDs 103582-12 or better -SynFlood Listen Queue management fix 103597-04 or better -TCP patch 104212-13 or better -HME half/full duplex negotiation patch 103093 Required for Netscape 3.x In /etc/system set tcp:tcp_conn_hash_size=8192 set ncsize = 3 set ufs_inode = 3 set rlim_fd_max=4096 Changes the maximum allow files open per process set rlim_fd_cur=1024 Changes the current open files per process set autoup=240 Number of seconds in age for a memory page to be written to disk set tune_t_fsflushr=120 Number of seconds between wake up times for the fsflush daemon NDD Settings tcp_close_wait_interval to 7 - miliseconds to wait before reclaiming the so cket resource tcp_fin_wait_2_flush_interval to 25000 - miliseconds to wait before closing soc ket resources that have missed a FIN packet ip_path_mtu_discovery to 0 - turn off MTU discovery - must retune for IPV6 tcp_conn_req_max_q to 512 - max number of queue size for holding partially star ted connections tcp_conn_req_max_q0 to 1024 - number of connections to wait holding before serv er issues an unable to connect to server message tcp_xmit_hiwat to 65535 tcp_recv_hiwat to 65535 increases the size of the send and receive buffers tcp_cwnd_max to 65535 - increases the congestion window size used with congesti on avoidance and slow start - prevents byte overflows in the tcp stack tcp_keepalive_interval to 9 - miliseconds of idle time on keepalive connect ions tcp_ip_abort_interval to 9 - miliseconds of time retransmissions for connec tions in Established state should be retried. Cleans up hung connections on web servers. tcp_ip_abort_cinterval - 6 - miliseconds of time retransmissions in connect ions started but not established will continue. Protects from over powerful SYN flood attacks as well as dropped proxy connections. tcp_rexmit_interval_initial to 3000 - miliseconds before a retransmit is sent -needs to be lowed due to Internet latency tcp_rexmit_interval_min to 3000 - see above tcp_rexmit_interval_max to 5000 - see above tcp_conn_grace_period to 500 ip_ignore_redirect to 1 - ignores IP level redirects tcp_slow_start_initial to 2 - Microsoft BSD TCP/IP implementations do not follow the RFC (2001) for TCP/IP. When communicating with Solaris this causes a 1- 2 second delay in web page delivery. This fixes. tcp_deferred_ack_interval to 300 - miliseconds before sending delayed ack allow s ACK and response to be combined in 1 send for many HTTP requests -e On Mon, 1 Sep 2003, Haug Thomas wrote: Hi everybody, I have a problem with tomcat 4.1.24 running on Solaris 8 (with JDK 1.4.1_02). A client of mine is sending requests to the Tomcat instance in a loop (but sequentially). After a while the client receives a java.net.ConnectException with the error message Connection timed out: connect. On the server side I do not find any exception trace in the log files of the Tomcat instance. The only remarkable thing I detected is that there are thousands of sockets in the TIME WAIT state: netstat -a | grep 8080 results in myserver.8080 myclient.1679 7480 0 24820 0 TIME_WAIT myserver.8080 myclient.1680 7480 0 24820 0 TIME_WAIT myserver.8080 myclient.1680 7480 0 24820 0 TIME_WAIT ... [many more of these lines] After a while these sockets get collected by the OS. Then the client runs again without getting a connection exception (at least for a while then the 'process' repeats). Has anybody of you experienced a similar behaviour ? Has anybody of you a solution to this problem: Do I need to configure Tomcat in a special way or is it a problem of the OS and I have to configure the OS accordingly. At the moment Tomcat is using the coyote connector in the following way: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUp loadTimeout=true/ As far as I remember is the 'connectionLinger' time disabled if this configuration is not set in the connector. Is this correct and does this configuration affect the problem I am experiencing ? Thank you very much, Thomas - 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: Thread dump - (basic)
Hi, Kill -QUIT will work. It will send the output to catalina.out and not kill the process. It doesn't have to be running in the foreground. -e On Mon, 1 Sep 2003, Euan Guttridge wrote: What is the best method to get a stack dump following a frozen tomcat? I cannot use kill -QUIT (pid) since running in production and do not want to run TC in the foreground. Thanks, Euan J2DSK_1.4.1_03 TC 4.1.24 (Standalone, Coyote connector) Linux RH9. - 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: permissions for Tomcat+Apache integration
Hi, The question is do you need to secure your application from the outside world or do you need to secure it from users that might be logging on to your system? Or both? Usually you want to go with the both scenerio. But to keep it simple, pick a user that you want tomcat to run as. Untar Tomcat and chown -R tomcat jakarta-4.x.x (if the user is named tomcat which isn't a bad name for the Tomcat user ;) Then just run it. It will be ok just like that. If you are running Tomcat and Apache on the same machine really look at why you are running Apache at all. It's a popular misconception that you _must_ run Apache in front of Tomcat. That couldn't be more wrong. Running Tomcat alone will save you the hassle of Apache and the connectors. However you do need to run Apache if you are going to use load balanceing and the apache modules. However most times people just have Apache pipe everything back to Tomcat. In this case you don't need Apache at all. -e On Mon, 1 Sep 2003, [iso-8859-1] Sonja Löhr wrote: Hello! Here is my second question, now concerning Apache+Tomcat integration on Linux: Could someone tell me a reasonable users, groups and file permissions structure for apache, the tomcat-files itself and a typical webapp? - Java security aside. 1. Is it a good idea at all to place the webapps under apache's document root, having to care about all WEB-INF and other sensible directories with deny from all ? 2. Which account in which group? Apache needs access to static files somewhere in the webapp. (Which may be very dispersed f.e. in case of cocoon). If a tomcat user and the apache user account are in the same group with restricted permissions, I can't assign permissions to a group of developers, just another owner (me ;-). Ok, may it be. Additionally, if tomcat unpacks war files, all resulting directories are owned by tomcat alone. So should I put the apache user into the tomcat group? 3.How paranoid must I be about tomcat-files (server-directory f.e)? Tomcat needs write access to some directories, but certainly I don't know all processes tomcat. You probably guess by now that I'm not grown up with Unix-systems. Spent my whole sunday with chmod and chown, now I would be very happy if someone told me something SIMPLE :-) Thank you, Sonja - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)
Hi, JK2 should compile with just the following: ./configure --with-apxs2=/path/to/apache/bin/apxs make It should create mod_jk2.so in the build directory tree not in the directory that you ran configure and make from. I forget exactly where it puts it but a find ./ | grep so from the top level of the source should root it out quick fast. -e On Fri, 29 Aug 2003, jerome moliere wrote: Hi all, i'm not sure that's the right place for such question but I'm unable for 2 days to get the compilation goes to end Everything seems to work but I don't have any so file generated... I'm using a configure with options: ./configure --with-tomcat40=/usr/local/tomcat/ --with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/ --with-apxs2=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr-0.9.3 --with-apache2=/usr/local/httpd where /usr/local/apache2 contains binaries for apache (apxs2) /usr/local/httpd contains src files for apache I'm using the JK 2.0.2 files Apache 2.0.47 on redhat 9 (with GCC 2.96 or 3.2.2) any help greatly appreciated drives me crazy :) cheers Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jakarta connector, jBoss 3.0.6 and iPlanet version 6
Hi, What I had to do is fool netscape into thinking that the file was there. For example: I had http://www.foo.com/index.jsp. I had to touch (write a 0 length file) index.jsp in the netscape docroot so netscape wouldn't throw a 404. Doing this would fool netscape into thinking the file was there. Then the redirection in the obj.conf would kick in and it would serve up the real index.jsp from Tomcat. -e On Wed, 27 Aug 2003, Rick Edwards wrote: Hi all I've compiled version 4.1.27 of the jakarta nsapi_redirector, but can't seem to get anything to redirect. jBoss is for sure working, because I can access the examples directly, using http://norman:8080/idm/ui/ping.jsp However, if I try to access these same examples using http://norman/idm/ui/ping.jsp I get a 404 error - page not found. In my limited understanding of this whole affair, that means that the redirector isn't redirecting. I do have all the proper NameTrans directives in my obj.conf. Any takers?? TIA Rick - 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: apache2, mod_jk2, tomcat4.1.27: server has been restarted orreset this connection
Hi, I get this too. You can add a connectionTimeout to the Connector (I use 12) and you will no longer get a reset INFO message but a connection timed out INFO message. I know that it is possible for the user to get a 400 or 500 error due to these resets. I haven't ran a test with the timeout settings to find out. I have done it with the timeout set to 0 (the default). Also what OS are you using? We spoke about this before and it seemed to be unique to Solaris. Linux didn't have the problem. But no one has figured out an answer to it... at least that I know of. -e On Tue, 26 Aug 2003, Chris Joelly wrote: Hello again! anybody any idea about this behavior? thx, Chris Am Wed, Aug 20, 2003 at 03:42:55PM +0200, Chris Joelly meinte: i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works fine, but the following log messages is written to the mod_jk log file: 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection as i can see this log message is written on every request, so i can change the log level or if there is a real problem would appreciate solving the problem. is this a real problem? and if yes, does anybody know whats the problem? i have tried several things with WORKER.sockt_keepalive and WORKER.socket_timeout, but things don't change... - 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: Modjk2 error log
Hi, It looks like you have a little confusion between JK and JK2. Location /TruckEnqui/ JkUriSet worker ajp13:test2.com:8009 /Location Get rid of these in your httpd.conf. The URIs are defined in workers2.properties. workers2.properties file : [logger.apache2] level=DEBUG [shm] file=c:/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:test3.com:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:test3.com:8009] channel=channel.socket:test3.com:8009 In here you need to do the URI mapping. So as an example: # Uri Mapping [uri:/TruckEnqui/*] worker=ajp13:test3.com:8009 would map everything under /TruckEnqui/ to test3.com on port 8009. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems build mod_jk on Solaris 9
and I get the error: could not find /usr/local/apache/bin/apxs configure: error: You must specify a valid --with-apxs path Apxs is a perl script. Make sure that it is finding perl. Basically make sure that apxs is working. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Total Linux Newbie Question
Hi, That stuff is going to catalina.out in the logs directory. -e On Sat, 23 Aug 2003, Mike Duffy wrote: With all the Windows viruses going around, I've decided to spend the weekend switching from Windows to Linux for my workstation at home. Could someone please help me with a very basic question when running Tomcat under Linux: When I start Tomcat in the Linux terminal using ./startup.sh I don't get to see any of the Tomcat output.In Windows I would get to see a scrolling DOS Window. How can I get to see the output when running under Linux? Thanks. Mike __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - 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: E-Mail to CompuServe Customer Service
Yup. It looks like an auto-responder getting flooded by sobig. So the virus is hitting compuserver support and the (forged) Reply-To is the list address. Otherwise we'd get the attachment. -e On Fri, 22 Aug 2003, Mike Curwen wrote: Is this http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] tml ?? -Original Message- From: CompuServe Customer Service [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 12:27 PM To: Tomcat Users List Subject: E-Mail to CompuServe Customer Service - 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]
[OT] A storm by any other name...
Hi, Someone jsut told me that if you have ever lived through a hurricane (which I haven't) you'd know that there ain't nothing you can do about it. You just gotta sit in the basement until it goes away. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: iPlanet 6 Connector Solaris 8
Hi, Accepting a binary from strangers is risky business, IMHO. Maybe if you post what troubles you are having someone can help? The documentation is in the mod_jk source file. -e On Thu, 21 Aug 2003, Fitzmaurice, Paul wrote: I am having problems building a connector for iPlanet 6 on Solaris 8, does anyone have one built which they would like to share? Also, if you would be so kind as to pass along the iPlanet config settings to connect to a remote Tomcat Server. Thank you, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache2 + mod_jk2 + tomcat problems...
- I've got level=DEBUG in my logger component, and debug=9 in several other components. Yet I am not getting any debug-like info. Alos the jkstatus page shows debug levels=0 for all components. How do I get omore info in my logfile so I have a chance of finding out what my other problems are. Try putting level=DEBUG under all of your [declarations] in your workers2.properties. They all take that argument (I think). - mod_jk maps /examples/ to the tomcat server. but /examples/jsp not. As a result apache complains that ther is no /data/apache/htdocs/examples/jsp dir... Why does the uri map fail to work as exepcted? Very strange. Maybe your debug will help point you in the right direction. Everything looks ok... :/ -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with mod_jk and CoyoteConnector
JK2 works with later versions of Apache 2. Around 2.0.43 the version of JK2 you used was real picky about what version of Apache was being used. But anything after .43 should work with JK2. -e On Thu, 21 Aug 2003, Martin Smith wrote: Hi, I think I'm right in saying that mod_jk2 only works with Apache 2.0.43. What's your exact Apache version??? Martin -Original Message- From: J.P. Wadkin C9951627 [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 15:57 To: tomcat-user Subject: Problem with mod_jk and CoyoteConnector Apache 2 Tomcat 4.1 JDK 1.4 Solaris 8 I've configured a server to use mod_jk with the Coyote connector (mod_jk2 doesn't work for some reason): Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ I've noticed that after about 10 page requests the server randomly starts serving either half a page or no page at all (just blank). It becomes progressively worse. There are no error messages in any of the logs. I've ruled out the Servlet that generates the pages - it works fine on another machine. Looking at the configuration of that other machine I note that the only main differences are that it's configured to use the old AJP13 connector in Tomcat and it uses Apache 1.3 rather than 2.0. Is the Coyote connector stable with Apache 2 and/or mod_jk? I'm reluctant to use deprecated technologies but it looks like I'll have to downgrade to Apache 1.3 and AJP13? Thanks John - 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: About server.xml
Hi, The Wrox Professional Tomcat book does a pretty good job disecting this file. If you don't find your answers in the docs or on the list you might want to look there. -e On Sun, 17 Aug 2003, Alexander Vavilin wrote: Hello all, I am new to Tomcat, so can anybody explain or advice an article about this elements. Specially I cant understand the meaning of elements: Logger, Ejb, Environment, Parameter, Resource, ResourceParams, ResourceLink. Thanks in advance. Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams ResourceLink name=linkToGlobalResource global=simpleValue type=java.lang.Integer/ /Context -- Best regards, Alexander mailto:[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: Getting mod_jk2 : Slackware FreeBSD and Tomcat
Try using the 2.0.2 JK2 source: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/ -e On Sun, 17 Aug 2003, Decio Jr. wrote: Has anyone built a mod_jk2.so file for FreeBSD5.1 and Linux (Slackware)? I got the mod_jk2.so file in Slackware with sucessful but NOT with FreeBSD 5.1. I have libtool 1.4.3 in Slackware and 1.4.2 in FreeBSD and the package jakarta-tomcat-connectors-4.1.27. Any idea? Thanks! Decio - 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: port 8009 security (ajp13)
Hi, Firewalls. In a single box setup you would have a firewall that would only allow access to port 80. Apache would get the request and forward it back to itself on port 8009. This would be behind the firewall so you couldn't access port 8009 directly. In a N-tier setup there would be a firewall between the apache server and the tomcat server. You can control access to port 8009 from the firewall. -e On Sat, 16 Aug 2003, yo wrote: Hi, everyone I have a question about port 8009. I'm using Tomcat 4.1.27, Apache 2.0.47, mod_jk2/2.0.3-dev on Solaris 9. When Tomcat starts, Tomcat says, INFO: JK2: ajp13 listening on /0.0.0.0:8009. (This message is in catalina.out) I guess I have to do something for the Tomcat security... but can't find any configurations about that in server.xml. How do you guys control access to port 8009 ? Any help is highly appreciated. Thanks and Regards. -- yo - 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 Build mod_jk?????
Hi, I don't use ant. I use make. It appears that you are trying to build JK2. In the native2 directory: ./configure --with-apxs2=/path/to/apache/bin/apxs make -e On Sat, 16 Aug 2003, Bongrip wrote: I have been trying to build mod_jk and it seems the documentation is lacking and the instructions do not work. First my system: Solaris 8 64-bit with latest patch cluster gcc 3.3 AND Sun's Forte Dev 7 compiler Tomcat 4.1.27 (installed and running fine) Apache 2.0.47 (installed and running fine) j2sdk1.4.1_04 Ant 1.5.4 I downloaded jakarta-tomcat-connectors-jk2-2.0.2-src and extracted it. I then renamed build.properties.sample to build.properties and edited all the paths. The documentation says to run 'ant', here is the output: Buildfile: build.xml detect: [echo] jakarta-tomcat-connectors prepare: BUILD FAILED file:/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: Warning: Could not find file /root/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar to copy. Total time: 3 seconds I then changed to this directory: jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 % CC=gcc ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tom cat41=/usr/local/jakarta-tomcat-4.1.27 --with-java-home=/usr/j2sdk1.4.1_04 --with-jni % make Make completes and I then get these 2 files in /usr/local/apache2/modules: -rw-r--r-- 1 root other 945542 Aug 16 16:50 mod_jk.a -rw-r--r-- 1 root other663 Aug 16 16:50 mod_jk.la At then end of the make it also says this: libtool: install: warning: remember to run `libtool --finish /usr/local/apache2/modules' So, if I do that: hurley:~/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 #libtool --finish /usr/local/apache2/modules -- Libraries have been installed in: /usr/local/apache2/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - use the `-RLIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. -- Now when I look in /usr/local/apache2/modules: -rw-r--r-- 1 root other 945542 Aug 16 16:50 mod_jk.a -rw-r--r-- 1 root other663 Aug 16 16:50 mod_jk.la What am I missing or what is the problem? Thanks, Chuck - 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: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
I should add that your app should use the connection and the throw it back in the pool rather quickly. Upping the connections might fix it or prolong the inevitable errors. You should really find out why you are not releasing the connections. It is possible you could just have so much traffic that you need another tomcat. -e On Fri, 8 Aug 2003, Eric J. Pinnell wrote: Is it also unlimited (or insanely huge) on the database? -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: i adjusted the pool to unlimited and am still getting these errors. something else seems to be fekachte. barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:11 PM To: Tomcat Users List Subject: Re: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Hi, Your pool of connections to your database is exhausted. Try upping the number. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: we are getting a ton of these errors in our catalina.out and i could use help in fixing it. i know they are related to our connection pooling, but not what to do to fix. my understanding of the underlying mechanics of connection pooling is somewhat limited. i have put two different but related error messages in here: java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java:123) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:110) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.happypuppy.util.HPSql.getConnection(HPSql.java:21) at org.apache.jsp.index_jsp._jspService(index_jsp.java:222) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp._404_jsp._jspService(_404_jsp.java:373) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline
Re: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
Hi, Your pool of connections to your database is exhausted. Try upping the number. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: we are getting a ton of these errors in our catalina.out and i could use help in fixing it. i know they are related to our connection pooling, but not what to do to fix. my understanding of the underlying mechanics of connection pooling is somewhat limited. i have put two different but related error messages in here: java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java:123) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:110) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.happypuppy.util.HPSql.getConnection(HPSql.java:21) at org.apache.jsp.index_jsp._jspService(index_jsp.java:222) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp._404_jsp._jspService(_404_jsp.java:373) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) org.apache.commons.dbcp.DbcpException:
Re: security hole on windows tomcat?
Interesting. WinXP Tomcat 4.1.24 http://localhost:8080/examples/jsp/num/numguess.jsp%20 I get the source. -e On Mon, 11 Aug 2003, John Turner wrote: Let's see the Tomcat-only link. John Angus Mezick wrote: Ok guys, What could I have turned on that would have allowed this bug to happen? I can make it happen in both tomcat and tomcat through apache. (Most recent of both) I can provide a site where it DOES happen so you guys can see what is happening. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:07 PM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? sorry, I don't know - I don't use Apache. This was just a thought that I had. I do not have this problem 4.1.24 on Win2k Charlie - 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: Jvmroute and worker names?
Hi, jvmroute names don't equate to the names of the workers in your properties file. basically all jvmroute does is tack that name on the end of the session id so the connector knows what tomcat to send the session to in a loadbalanced env. It's sticky that way. I'm not sure about the clustering but I had always thought that jvmroutes had to be unique. That way it wouldn't mistake one server for the other. -e On Tue, 5 Aug 2003, Angus Mezick wrote: Does the name of the JvmRoute in server.xml have to equal the name of the host in worker2.properties when linking apache and tomcat to get proper session affinity? Can I have 4 tomcats, each paired together with session clustering and identical jvmroutes and then have apache use session affinity to send requests correctly to each cluster of 2 tomcats? Sorry for the crosspost. Didn't even get a nibble on users yesterday so I am assuming this is deep withing the app. Angus Mezick GuideStar - Philanthropic Research Inc. 427 Scotland St. Williamsburg, Virginia 23185 PHONE: (757)299-4631 x35 FAX:(757)229-8912 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.guidestar.org http://www.guidestar.org - 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 on Solaris 8 - symbol apr_socket_timeout_set: referencedsymbol not found
Hi, I've have it working on Solaris 7 and Solaris 9. -e On Thu, 14 Aug 2003, J.P. Wadkin C9951627 wrote: Has anyone managed to get mod_jk2 working on Solaris? I can't find any references to the apr_socket_timeout_set error in any of the archives or on the web nor can I find any mention of it in the bugs database. John -Original Message- From: J.P. Wadkin C9951627 Sent: 12 August 2003 17:23 To: Tomcat Users List Subject: RE: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found I know - it struck me as odd. I would expect the configure script to only need a JDK if you were enabling JNI, which I'm not and it doesn't appear to do anything anyway (no extra .so created or anything). John -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 17:17 To: Tomcat Users List Subject: Re: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found There's no need to specify any of the Java stuffthe module is a C module built for Apache, references to Java are superfluous, and AFAIK ignored. John J.P. Wadkin C9951627 wrote: Yep. I tried building with specific connector sources and with the source bundle that contains all the connectors. The VM is in /usr/java If I had the JAVA_HOME variable set I expect that the script would correctly find the Java installation (?), but it shouldn't make any difference whether I use an environment variable or a switch to specify the location? John -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 16:06 To: Tomcat Users List Subject: RE: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found Are you using: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v 2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz ? You shouldn't have to declare a VM. It should compile (and work) fine with just apxs. -e - 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 on Solaris 8 - symbol apr_socket_timeout_set: referencedsymbol not found
Are you using: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz ? You shouldn't have to declare a VM. It should compile (and work) fine with just apxs. -e On Tue, 12 Aug 2003, J.P. Wadkin C9951627 wrote: Thanks for the reply. Without specifying the location of the Java JDK the configure script generates an error. If I specify the JDK, I still get a mod_jk2 that doesn't work. I've tried many combinations - environment variables, software versions, etc. - but nothing works. I'm out of ideas. John -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 15:35 To: Tomcat Users List Subject: Re: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found Hi, Try to compile it with just: ./configure --with-apxs2=/path/to/apache/bin/apxs make -e On Tue, 12 Aug 2003, J.P. Wadkin C9951627 wrote: I'm trying to get mod_jk2 to work with Apache 2.0.43 on Solaris 8. I downloaded the mod_jk2 binary but Apache gives me this error message: Cannot load /usr/local/apache2/modules/mod_jk2.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/modules/mod_jk2.so: symbol apr_socket_timeout_set: referenced symbol not found It's taken about 3 days to build mod_jk2 from source but I still get the above error. I'm using GNU software including GCC 2.95 (I tried with 3.3 but it didn't make any difference). Thinking it might be an APR issue I downloaded APR/APU and installed them. Apache 2 won't build against them and nor will mod_jk2: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr-lib=/usr/local/apr/lib --with-apr-include=/usr/local/apr/include The above command fails due to something missing from the include directory. Next I tried using the apr source directory to build mod_jk2 (I gave up on building Apache2 against a downloaded APR): ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr=/export/home/stsejw/supgrade/aprsrc This time mod_jk2 compiled but I got the same symbol apr_socket_timeout_set: referenced symbol not found error on starting Apache. Next I tried using the lib and include directories in the Apache2 home directory: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr-lib=/usr/local/apache2/lib --with-apr-include=/usr/local/apache2/include Again mod_jk2 compiled - and again I got the same symbol apr_socket_timeout_set: referenced symbol not found error on starting Apache. I've also tried setting all manner of environment variables - mod_jk2 either doesn't compile or it complies and doesn't work. What next? It seems that mod_jk2 just doesn't work. Thanks John - 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: Oracle connection pooling
Hi, Firewalls, and I'm not speaking for all of them, as a rule of thumb close _idle_ connections after an hour. Your connections should be done well before that. -e On Fri, 8 Aug 2003, Cristopher Daniluk wrote: We are running a fairly large ecommerce site consisting of 3 apache 2.0.48 servers being balanced between using UltraMonkey/ldirector and 2 tomcat servers with AJP1.3. Everything is Linux except the back end which is a fairly hefty and firewalled Sun running Oracle8i. The webapps build a connection pool to oracle via the oracle.jdbc.pool.* connection pool. The pool instantiates fine and everything is great, but gradually the pool begins to break down. Idle connections are closed by Oracle (not sure if its oracle itself or the fw..), but the oracle pool doesn't figure it out. If someone happens to get the dead connection, Tomcat completely hangs on all threads until the session-timeout expires. Even the session replication code stops and the apache servers and the other tomcat in the cluster mark it offline. During the peak traffic it isn't so bad but at the end of the day after load goes back down, it's a big problem. We initially used DBCP but it didn't work for crap with Oracle. Is there a better pool to use with Oracle and Tomcat in a cluster environment and if not, is there a way we can get the Oracle pool to recycle some of these bad connections without blowing up the server? Thanks, Cris Daniluk - 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: Clustering applications
Hi, Tomcat 5 has this functionality. The code has been backported to Tomcat 4. It's in CVS somewhere (the place escapes me) but if you search the list archives you will find it. -e On Tue, 12 Aug 2003, Sean Leblanc wrote: Suppose I wanted to set up Tomcat and share some common info across apps running on the instances of Tomcat. How would I do this? When googling for a bit, I came across JavaSpaces. Is anyone else using this, or is that barking up the wrong tree? Thanks, Sean LeBlanc - 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: uri mapping with mod_jk2
when you get the 404 is it an apache style 404 or a tomcat style 404? On Thu, 14 Aug 2003, Madere, Colin wrote: Although I'm not a JK2 expert, this looks correct. It may be something with the rest of your configuration. I know I am having success without using explicit worker definitions. IOW, leaving jk2.properties as default (nothing in it but comments) and leaving out the worker=xxx lines in workers2.properties. You might post the rest of the JK2-related config files (or sections) so the JK2 experts will answer :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:23 AM To: [EMAIL PROTECTED] Subject: uri mapping with mod_jk2 Hello all, I have mod_jk2 loading correctly in apache2, and have the following in my workers2.properties file: # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 My problem is that when I try to get http://hostname/examples/ I get the directory content from Tomcat, so that URL is forwarded correctly. But when I try to get http://hostname/examples/jsp/index.html I get an not found error from the apache server. From the apache logfiles I get the impression that apache is not sending this to the Tomcat server. When I try to get http://hostname:8080/examples/jsp/index.html (the port my tomcat runs its http connector) I get the examples without much fusss... How do I solve this? I want every URL that starts with examples to be sent to Tomcat... Krist --- Krist van Besien Unix Specialist BZBD Bundesamt für Informatik und Telekommunikation BIT Monbijoustrasse 74, CH-3003 Bern Tel. +41 31 322 24 46 added interaction www.informatik.admin.ch - 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: Jvmroute and worker names?
Yes, it remembers which engine sent which jvmroute. It will return the session to that same engine as long as that engine is up. I don't think the workers names have anything to do with the jvmroute. They can be different. The jvmroute names have to be unique across all engines that are in the load balanced cluster. -e On Tue, 5 Aug 2003, Angus Mezick wrote: Yup, I guess this is more of a JK2 question. Does it remember which server returned which jvmroute? Or does jk2 use the worker name somehow. All examples have them being the same so it is slightly confusing. -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:40 AM To: Tomcat Users List Subject: Re: Jvmroute and worker names? Hi, jvmroute names don't equate to the names of the workers in your properties file. basically all jvmroute does is tack that name on the end of the session id so the connector knows what tomcat to send the session to in a loadbalanced env. It's sticky that way. I'm not sure about the clustering but I had always thought that jvmroutes had to be unique. That way it wouldn't mistake one server for the other. -e On Tue, 5 Aug 2003, Angus Mezick wrote: Does the name of the JvmRoute in server.xml have to equal the name of the host in worker2.properties when linking apache and tomcat to get proper session affinity? Can I have 4 tomcats, each paired together with session clustering and identical jvmroutes and then have apache use session affinity to send requests correctly to each cluster of 2 tomcats? Sorry for the crosspost. Didn't even get a nibble on users yesterday so I am assuming this is deep withing the app. Angus Mezick GuideStar - Philanthropic Research Inc. 427 Scotland St. Williamsburg, Virginia 23185 PHONE: (757)299-4631 x35 FAX:(757)229-8912 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.guidestar.org http://www.guidestar.org - 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: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
I'm pretty sure can't create socket means it can't connect to the DB for some reason. I would wager the DB (or something) is refusing the connection. The fact that it said can't create socket means that tomcat is trying to do so. So that part of it seems alright. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: well, i followed the dbcp comment that says set to 0 for unlimited and that turns out to be wrong. i also tried -1 and that is equally unuseful in terms of setting it to unlimited. so i tried setting maxActive to 10 and so far it is generating no errors. no, i'm wrong. connecs shot up to around 600 or maybe more, then we started getting the java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. the db has an insanely huge connection limit of 99,999 we think. barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:27 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Is it also unlimited (or insanely huge) on the database? -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: i adjusted the pool to unlimited and am still getting these errors. something else seems to be fekachte. barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:11 PM To: Tomcat Users List Subject: Re: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Hi, Your pool of connections to your database is exhausted. Try upping the number. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: we are getting a ton of these errors in our catalina.out and i could use help in fixing it. i know they are related to our connection pooling, but not what to do to fix. my understanding of the underlying mechanics of connection pooling is somewhat limited. i have put two different but related error messages in here: java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java:123) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:110) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.happypuppy.util.HPSql.getConnection(HPSql.java:21) at org.apache.jsp.index_jsp._jspService(index_jsp.java:222) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp._404_jsp._jspService(_404_jsp.java:373) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext
[OT]Re: Tomcat 4.1.24 behind a proxy
Hi, We had this happen once. We were behind a proxy firewall that wasn't transparent. Kinda like when you have to enter a proxy server in your settings in IE or netscape. It was one of those types of proxies/firewalls rather than something like a PIX which is transparent. Rather than recode in order to deal with it (and I don't know what that would entail) we found the three sites our site needed to access and allowed our site direct access to them with no proxy by changing the firewall rules. -e On Wed, 6 Aug 2003, Tim Funk wrote: Unless I am missing something, tomcat by default does not have the ability to make outbound HTTP requests. Unless someone else interjects in the converation - you'll need to look at how your webapp makes external HTTP connections. System properties may also be set via the JAVA_OPTS environment variable. -Tim [EMAIL PROTECTED] wrote: In that case, it sounds like an application error. I don't think so because the problem appears since I updated Tomcat to 4.1.24. It worked well before. Sylvain -Message d'origine- De: Tim Funk [mailto:[EMAIL PROTECTED] Date: mercredi, 6. août 2003 13:59 À: Tomcat Users List Objet: Re: Tomcat 4.1.24 behind a proxy So the webserver is making HTTP Requests (as well as receiving them)? In that case, it sounds like an application error. How is your webapp making HTTP requests? (Venturing into off-topic mode) -Tim [EMAIL PROTECTED] wrote: Hello Tim, That doesn't help me. I'm looking how to configure my Tomcat server (which is behind the proxy server of my company) to allow web applications to be able to access to external locations (URL). Now my web applications can access only to internal locations. Thanks Sylvain -Message d'origine- De: Tim Funk [mailto:[EMAIL PROTECTED] Date: mercredi, 6. août 2003 13:17 À: Tomcat Users List Objet: Re: Tomcat 4.1.24 behind a proxy http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html ? -Tim [EMAIL PROTECTED] wrote: Hello, My Tomcat server runs behind a proxy. I set on my Windows 2000 server this environment variable to be able to access to external locations: CATALINA_OPTS = -DproxySet=true -DproxyHost=myproxy.blabla.com -DproxyPort=8080 It worked very well since I updated Tomcat to 4.1.24. Now it doesn't work anymore. Is there something wrong with my configuration? Thanks Sylvain - 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_init Error ??
Hi, This message is also normal. JK2 is just initializing. I know it's not the best message. -e On Wed, 13 Aug 2003, NormW wrote: I'll take the 'scoreboard' question... It's the shared memory area for mod_jk2... it facilitates the creation the /jkstatus page it is also saved to disk and is represented in workers2.properties under the [shm] section, with details such as shm file path+name and file size attributes. I think if you did a text search for 'scoreboard' in the Tomcat docs there might be a bit more information. Norm - Original Message - From: Richard Park [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 2:59 PM Subject: jk2_init Error ?? Hi, here's my setup: --- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 --- Occasionally when I startup Apache and check the Apache error log I see the following: --- [error] mod_jk child init 1 0 [error] jk2_init() Can't find child 7299 in scoreboard [error] mod_jk child init 1 -2 --- The number 7299 is not always the same - it varies - but the other numbers are always the same. Does anyone here know: 1/ what the 7299 signifies? 2/ what the scoreboard is? 3/ what the init 1 0 and init 1 -2 mean? NOTES: - All tomcat examples work fine via mydomain.com/ and mydomain.com:8080/ - There are no other error messages - Tutorials from Beginning JSP 2.0 work fine as well 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: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referencedsymbol not found
Hi, Try to compile it with just: ./configure --with-apxs2=/path/to/apache/bin/apxs make -e On Tue, 12 Aug 2003, J.P. Wadkin C9951627 wrote: I'm trying to get mod_jk2 to work with Apache 2.0.43 on Solaris 8. I downloaded the mod_jk2 binary but Apache gives me this error message: Cannot load /usr/local/apache2/modules/mod_jk2.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/modules/mod_jk2.so: symbol apr_socket_timeout_set: referenced symbol not found It's taken about 3 days to build mod_jk2 from source but I still get the above error. I'm using GNU software including GCC 2.95 (I tried with 3.3 but it didn't make any difference). Thinking it might be an APR issue I downloaded APR/APU and installed them. Apache 2 won't build against them and nor will mod_jk2: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr-lib=/usr/local/apr/lib --with-apr-include=/usr/local/apr/include The above command fails due to something missing from the include directory. Next I tried using the apr source directory to build mod_jk2 (I gave up on building Apache2 against a downloaded APR): ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr=/export/home/stsejw/supgrade/aprsrc This time mod_jk2 compiled but I got the same symbol apr_socket_timeout_set: referenced symbol not found error on starting Apache. Next I tried using the lib and include directories in the Apache2 home directory: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr-lib=/usr/local/apache2/lib --with-apr-include=/usr/local/apache2/include Again mod_jk2 compiled - and again I got the same symbol apr_socket_timeout_set: referenced symbol not found error on starting Apache. I've also tried setting all manner of environment variables - mod_jk2 either doesn't compile or it complies and doesn't work. What next? It seems that mod_jk2 just doesn't work. Thanks John - 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: security hole on windows tomcat?
I think at this point this might be a worthwile canidate for Sun's bugparade. At least get it on their radars (if they don't know about it already). It's interesting that the bug doesn't show up in Tomcat 4.1.27. When 1.4.2 was released 4.1.24 was the latest stable build. Regardless the JDK/appserver/whatever should never puke it's guts and spit out the source code when it gets a request it doesn't know how to deal with. Upon failure it should result in some kind of error. Sun might care about this... -e On Tue, 12 Aug 2003, Jeff Tulley wrote: It is highly possible that this is dependent on the JVM you have installed. I actually finally WAS able to see this on Windows XP, but only if Tomcat was running on JVM 1.4.2. The problem did NOT happen with 1.4.1. Of course, JVM version is the one item I left off of my poll in my email below. :) I'm trying to verify this on other OS's and track down what the actual problem is. But, if you run Tomcat on JVM 1.4.2, verify if you have this problem. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 4:10:53 PM Tomcat 4.0.6 on Win2K via direct connection to Tomcat on localhost via either port 8080 or port 80 - pages return fine without the %20 suffix, always return http 404 with the suffix. Murray -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: Wednesday, 13 August 2003 02:41 To: [EMAIL PROTECTED] Subject: RE: security hole on windows tomcat? So this issue is confusing. It seems that indeed there IS an issue, though most cannot see a problem. Talking to some people off-list, it seems that some think it is a JK2 / workers2.properties issue. But I'm pretty sure that others have seen this going directly to port 8080. We probably need to take a quick poll: If you have seen this security problem of being able to view JSP source, in what scenario(s)? Tomcat version OS version Directly to Tomcat (8080) or through Apache - JK or JK2? (If you've seen the problem, please include your workers or workers2.properties file, with a .txt extension) Browser version(s) url's where this was seen or not seen If you have seen this in multiple scenarios, and not in others, please list each separately. I have NOT seen it in the following scenarios: Tomcat 4.1.18, 4.1.24, 4.1.26, 4.1.27 Windows 2000 5.00.2195 Service Pack 4 Directly to port 8080 Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 Tomcat 4.1.18, 4.1.24, 4.1.26, fairly standard distributions (only adding one JNDIRealm beyond the default config) Novell NetWare 6.5 Directly to port 8080, and through Apache - mod_jk.nlm Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 and https://(url)/tomcat/admin/index.jsp%20 Hopefully this mail gets through; I haven't been seeing my emails show up on tomcat-user for some reason (I un/resubscribed today...) It would be really good to get to the bottom of this! Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 6:02:55 AM can you turn on debugging for the default servlet(conf/web.xml) and also turn on the requestdumpervalve(server.xml) and post the log. - 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: security hole on windows tomcat?
Yup. WinXP Tomcat 4.1.27 http://localhost:8080/examples/jsp/num/numguess.jsp%20 = 404 it's interesting on 4.1.24. I have been goofing around with the examples and sometimes I get source and on others I just get freaky output. For example snoop.jsp doesn't show any source but just blank header info. -e On Mon, 11 Aug 2003, John Turner wrote: http://localhost:8080/examples/jsp/num/numguess.jsp%20 = 404 Win 2K Pro Tomcat 4.1.27 John Eric J. Pinnell wrote: Interesting. WinXP Tomcat 4.1.24 http://localhost:8080/examples/jsp/num/numguess.jsp%20 I get the source. -e On Mon, 11 Aug 2003, John Turner wrote: Let's see the Tomcat-only link. John Angus Mezick wrote: Ok guys, What could I have turned on that would have allowed this bug to happen? I can make it happen in both tomcat and tomcat through apache. (Most recent of both) I can provide a site where it DOES happen so you guys can see what is happening. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:07 PM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? sorry, I don't know - I don't use Apache. This was just a thought that I had. I do not have this problem 4.1.24 on Win2k Charlie - 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 on Solaris 8 - symbol apr_socket_timeout_set: referencedsymbol not found
Odd. When I use the source file below I never have to declare JAVA_HOME or give configure the directory of the VM. I'm not sure if it uses JAVA_HOME or if you have to give it to configure. -e On Tue, 12 Aug 2003, J.P. Wadkin C9951627 wrote: Yep. I tried building with specific connector sources and with the source bundle that contains all the connectors. The VM is in /usr/java If I had the JAVA_HOME variable set I expect that the script would correctly find the Java installation (?), but it shouldn't make any difference whether I use an environment variable or a switch to specify the location? John -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 16:06 To: Tomcat Users List Subject: RE: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found Are you using: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v 2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz ? You shouldn't have to declare a VM. It should compile (and work) fine with just apxs. -e On Tue, 12 Aug 2003, J.P. Wadkin C9951627 wrote: Thanks for the reply. Without specifying the location of the Java JDK the configure script generates an error. If I specify the JDK, I still get a mod_jk2 that doesn't work. I've tried many combinations - environment variables, software versions, etc. - but nothing works. I'm out of ideas. John -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: 12 August 2003 15:35 To: Tomcat Users List Subject: Re: mod_jk2 on Solaris 8 - symbol apr_socket_timeout_set: referenced symbol not found Hi, Try to compile it with just: ./configure --with-apxs2=/path/to/apache/bin/apxs make -e On Tue, 12 Aug 2003, J.P. Wadkin C9951627 wrote: I'm trying to get mod_jk2 to work with Apache 2.0.43 on Solaris 8. I downloaded the mod_jk2 binary but Apache gives me this error message: Cannot load /usr/local/apache2/modules/mod_jk2.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/modules/mod_jk2.so: symbol apr_socket_timeout_set: referenced symbol not found It's taken about 3 days to build mod_jk2 from source but I still get the above error. I'm using GNU software including GCC 2.95 (I tried with 3.3 but it didn't make any difference). Thinking it might be an APR issue I downloaded APR/APU and installed them. Apache 2 won't build against them and nor will mod_jk2: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr-lib=/usr/local/apr/lib --with-apr-include=/usr/local/apr/include The above command fails due to something missing from the include directory. Next I tried using the apr source directory to build mod_jk2 (I gave up on building Apache2 against a downloaded APR): ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr=/export/home/stsejw/supgrade/aprsrc This time mod_jk2 compiled but I got the same symbol apr_socket_timeout_set: referenced symbol not found error on starting Apache. Next I tried using the lib and include directories in the Apache2 home directory: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat40=/usr/local/tomcat41 --with-java-home=/usr/java --with-apr-lib=/usr/local/apache2/lib --with-apr-include=/usr/local/apache2/include Again mod_jk2 compiled - and again I got the same symbol apr_socket_timeout_set: referenced symbol not found error on starting Apache. I've also tried setting all manner of environment variables - mod_jk2 either doesn't compile or it complies and doesn't work. What next? It seems that mod_jk2 just doesn't work. Thanks John - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: Hardware loadbalancing with JK2
Hi, Using the CSS between Apache and Tomcat seems a bit overkill as Tomcat provides all the functionality that a CSS would. However I think you can get it to work. All you need is a single worker to the CSS. From there the CSS should bust it out and spread it across the various Tomcats. There wouldn't be any loadbalancing in the JK2 configuration. Just like a web server might have multiple hosts behind it, to the outside world you only see one IP. Same thing goes for JK2. I don't have a properties file handy but search the archives and you'll find an example. You just want a real basic single worker config. I think there might be one in the JK2 docs. Make sure to configure the CSS to make the sessions sticky by some mechanism (unless you are using clustering) otherwise Tomcat could goof up. -e On Mon, 11 Aug 2003, Mark Gastel wrote: Hi, I am trying to get hardware load balancing to work between apache 2.0.46/mod_jk2, a cisco css and tomcat 4.1.27. The way this works is an ajp13 service has been created on the css. Apache talks to this css ajp service which is split among several tomcat instances... Now the problem: Because mod_jk2 seems to have some form of connection caching going, when I disable a tomcat instance it still receives ajp13 connections. Is there a way to disable the connection caching in JK2 and forcing it to establish a new connection with every hit? I know this would give a performance hit, but it will give me fine grain control over how traffic is distributed. If you could attach a piece of a workers2.properties file I would really appreciate it!! Thanks Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone running jk2 with Stronghold 4.0?
Hi, I'm going to guess an say that you should try to install it just like the instructions say to install JK2 on apache. As I remember stronghold is apache with a proprietary ssl module. I don't see how that would prevent the apache from loading the JK2 module. -e On Fri, 8 Aug 2003, jherschel wrote: I emailed the list earlier in the week and was told that the WARP connector was deprecated and not much fun to use. Unfortunately, we use Stronghold on our web servers here and WARP is the only connector provided. Has anyone on this list gotten jk2 to run with Stronghold? How did you get it installed? I mailed the Stronghold list and have not gotten any kind of reply and Google doesn't turn anything up. Thanks! James - 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: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
Sorry, I sent this a little to soon... Get 5 or 10 thread dumps in a row real fast... just bam, bam, bam, etc... From that you can tell what the threads are doing. They should be moving through methods (or classes) very quickly. If they are sticking they are waiting on something and that's typically bad. Find what they are sticking on and fix it. :) Simple, eh? -e On Fri, 8 Aug 2003, Eric J. Pinnell wrote: Hi, You could get a thread dump and see where your connections are hanging. When you get your errors kill -QUIT the pid. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: ok, well, at least we have concrete proof of it. now, given that i can confirm that i am closing connections (calling close() on them, which returns them to the pool), can you suggest how i might locate where those connections are not getting released? i have read some stuff about dbcp not being entirely reliable in releasing connections. is that true? argh. thanks again, barclay -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:27 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Yup, and when nothing is happening, the # of active connections should be 0. If it isn't you aren't releasing connections properly. -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:19 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions cool. that works for me. so, let's say i want to watch my sql server connections monitor and run this pool monitor from a jsp at the same time. shouldn't i expect to see the # of active + # of idle on the jsp add up to the # of connections that sql server knows about? (assuming tomcat is the only user of connections to this db) trying to check my assumptions here. barclay -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Oh, here is the code that will work with a JNDI resource: javax.naming.Context initContext; try { initContext = new InitialContext(); javax.naming.Context envContext = (javax.naming.Context)initContext.lookup(java:/comp/env); BasicDataSource ds = (BasicDataSource)envContext.lookup(jdbc/SessionDB); if(ds!=null){ pageContext.getOut().println( jdbc/SessionDB: Active: + ds.getNumActive() + Idle: + ds.getNumIdle() + br); } } catch (NamingException e) { // TODO Auto-generated catch block //e.printStackTrace(); } -Original Message- From: Angus Mezick Sent: Friday, August 08, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Here is a little snippet I use inside of a custom tag to disply pool health: private void printPoolStatus() throws IOException { PoolingDriver driver = new PoolingDriver(); pageContext.getOut().println(brbDbcp Pool Data:/b br); ObjectPool gop = driver.getPool(SessionManager); if (gop != null) { pageContext.getOut().println( SessionManager: Active: + gop.getNumActive() + Idle: + gop.getNumIdle() + br); } gop = driver.getPool(CommerceServer); if (gop != null) { pageContext.getOut().println( CommerceServer: Active: + gop.getNumActive() + Idle: + gop.getNumIdle() + br); } } You WILL need to change the getPool names. --Angus -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 2:47 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions ah! there's the rub. i am also searching the archives of the jakarta-commons-users list for insight and must also post to that list if i can't figure it out myself, but we think no, they are not getting closed correctly. i can claim 100% of the time i am calling conn_.close(), but when we watch our db connections they go up but they never come down. so we think no. as i mentioned before, i do not fully grok the workings of dbcp and am thus in over my head. i could use a little step-by-step on how to test this (other than the logical deduction my sysadmin and i are using right now). thanks a million
Re: Starting tomcat from init scripts (HP/UX)
Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - 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: Hardware loadbalancing with JK2
Make sure you have a connectionTimout defined in your server.xml for the coyote connector. By default it's 0 (which I gather to be infinite). Setting it to 6 or 12 will make the connection timeout. I am unsure about the cache thing you are talking about because I just use the normal JK2 loadbalancing but it seems that if you make the connections timeout it won't send a keepalive. -e On Mon, 11 Aug 2003, Mark Gastel wrote: Hi Eric, Thanks. At this point I'm a bit more comfortable using a hardware loadbalancer over the jk2 stuff. we've been using a css in production for well over a year. Unlike tomcat or apache I've seen very little movement in the jk2 code base and the documentation is very confusing at times. My problem is not the basic configuration ...I have a working setup. My problem is because mod_jk2 is using a connection cache (keepalive connections or something) it is sending requests to a service that has been disabled. This really sucks if you want to upgrade a tomcat instance. If I can get jk2 to establish a new connection with every request this problem disappears. No matter what I do I can't get this to happen. Thanks! Mark -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 5:04 PM To: Tomcat Users List Subject: Re: Hardware loadbalancing with JK2 Hi, Using the CSS between Apache and Tomcat seems a bit overkill as Tomcat provides all the functionality that a CSS would. However I think you can get it to work. All you need is a single worker to the CSS. From there the CSS should bust it out and spread it across the various Tomcats. There wouldn't be any loadbalancing in the JK2 configuration. Just like a web server might have multiple hosts behind it, to the outside world you only see one IP. Same thing goes for JK2. I don't have a properties file handy but search the archives and you'll find an example. You just want a real basic single worker config. I think there might be one in the JK2 docs. Make sure to configure the CSS to make the sessions sticky by some mechanism (unless you are using clustering) otherwise Tomcat could goof up. -e On Mon, 11 Aug 2003, Mark Gastel wrote: Hi, I am trying to get hardware load balancing to work between apache 2.0.46/mod_jk2, a cisco css and tomcat 4.1.27. The way this works is an ajp13 service has been created on the css. Apache talks to this css ajp service which is split among several tomcat instances... Now the problem: Because mod_jk2 seems to have some form of connection caching going, when I disable a tomcat instance it still receives ajp13 connections. Is there a way to disable the connection caching in JK2 and forcing it to establish a new connection with every hit? I know this would give a performance hit, but it will give me fine grain control over how traffic is distributed. If you could attach a piece of a workers2.properties file I would really appreciate it!! Thanks Mark - 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: is there a way to download a jsp file from server withoutexecuting it?
Or stealing :) -e On Fri, 8 Aug 2003, Tim Funk wrote: I hope not, we tend to call that a security flaw. -Tim Prince wrote: hi is there a way to download a .jsp file without executing it? ie i need the content od jsp file, not the result of that jsp file. same question goes with .cgi, .asp, .pl etc regds Prince - 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: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
Hi, Do a ps -ef (or ps -aux) and find out the PID of the java process (your sys-admin can help here). Then do a 'kill -QUIT PID' where PID is the PID of the java process. It will send the thread dump to the catalina.out file. Deciphering the thread dump is a little difficult if you have never done it before and it is out of the scope of this list. Suffice it to say you can see what lines of code your threads are on. Typically when you hang up your DB connections you will see a bunch of threads hung up on the same class. Then you will see one just a little further ahead. Typically this is the thread and class that all the others are waiting for to finish... so the other threads can finish. It's important to get as many thread dumps as you can as fast as you can right in a row. You have to read up, so to speak. Google is your friend. Hope this helps. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: thanks to eric for your ideas. this is a new idea but i don't know exactly how to get a thread dump. i guess it's outside the range of my experience so far. :) can you spell it out for me? much appreciated. thanks, barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 10:20 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Sorry, I sent this a little to soon... Get 5 or 10 thread dumps in a row real fast... just bam, bam, bam, etc... From that you can tell what the threads are doing. They should be moving through methods (or classes) very quickly. If they are sticking they are waiting on something and that's typically bad. Find what they are sticking on and fix it. :) Simple, eh? -e On Fri, 8 Aug 2003, Eric J. Pinnell wrote: Hi, You could get a thread dump and see where your connections are hanging. When you get your errors kill -QUIT the pid. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: ok, well, at least we have concrete proof of it. now, given that i can confirm that i am closing connections (calling close() on them, which returns them to the pool), can you suggest how i might locate where those connections are not getting released? i have read some stuff about dbcp not being entirely reliable in releasing connections. is that true? argh. thanks again, barclay -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:27 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Yup, and when nothing is happening, the # of active connections should be 0. If it isn't you aren't releasing connections properly. -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:19 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions cool. that works for me. so, let's say i want to watch my sql server connections monitor and run this pool monitor from a jsp at the same time. shouldn't i expect to see the # of active + # of idle on the jsp add up to the # of connections that sql server knows about? (assuming tomcat is the only user of connections to this db) trying to check my assumptions here. barclay -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Oh, here is the code that will work with a JNDI resource: javax.naming.Context initContext; try { initContext = new InitialContext(); javax.naming.Context envContext = (javax.naming.Context)initContext.lookup(java:/comp/env); BasicDataSource ds = (BasicDataSource)envContext.lookup(jdbc/SessionDB); if(ds!=null){ pageContext.getOut().println( jdbc/SessionDB: Active: + ds.getNumActive() + Idle: + ds.getNumIdle() + br); } } catch (NamingException e) { // TODO Auto-generated catch block //e.printStackTrace(); } -Original Message- From: Angus Mezick Sent: Friday, August 08, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Here is a little snippet I use inside of a custom tag to disply pool health: private void printPoolStatus() throws IOException { PoolingDriver driver = new PoolingDriver(); pageContext.getOut().println(brbDbcp Pool Data:/b br); ObjectPool gop
Re: Problem with mod_jk2
Hi, http://jakarta.apache.org/tomcat/faq/connectors.html -e On Wed, 6 Aug 2003 [EMAIL PROTECTED] wrote: Hello, I've compiled mod_jk2, and installed it intirely according to the instructions on the website. I'm using apache 2.0.47 and tomcat 4.1.24 I have the impression that the mod_jk2 modules is loaded correctly, but that it is completely ignoring my workers2.properties file. No URL mappings work. I do have an apache installation that is a bit peculiar. To make ist short, conf is not a subdir of ${serverroot}. Now the website says the following: The config file is named workers2.properties, located by default in ${serverRoot}/conf, where ${serverRoot} is the web server dir, like /usr/local/apache. It is possible to modify the location of the file using server-specific directives. Can someone enlighten me as to which server-specific directive I can use to tell mod_jk2 where the workers2.properties file is? (JkWorkersFile as in mod_jk doesn't work, it throws a syntax error from Apache...) TIA Krist van Besien --- Krist van Besien Unix Specialist BZBD Bundesamt für Informatik und Telekommunikation BIT Monbijoustrasse 74, CH-3003 Bern Tel. +41 31 322 24 46 added interaction www.informatik.admin.ch - 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: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
Is it also unlimited (or insanely huge) on the database? -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: i adjusted the pool to unlimited and am still getting these errors. something else seems to be fekachte. barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:11 PM To: Tomcat Users List Subject: Re: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Hi, Your pool of connections to your database is exhausted. Try upping the number. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: we are getting a ton of these errors in our catalina.out and i could use help in fixing it. i know they are related to our connection pooling, but not what to do to fix. my understanding of the underlying mechanics of connection pooling is somewhat limited. i have put two different but related error messages in here: java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java:123) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:110) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.happypuppy.util.HPSql.getConnection(HPSql.java:21) at org.apache.jsp.index_jsp._jspService(index_jsp.java:222) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp._404_jsp._jspService(_404_jsp.java:373) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
Re: Can I get an answer please -- Re: Why integrate Tomcat with aweb server?
Hi, I agree. That is what I have always read and I think it's a wide conception that is out there. If this isn't true could someone enlighten us? -e On Fri, 8 Aug 2003, Rick Roberts wrote: Of course not. I'm only regergitating stuff I have read. But I have seen it from several different sources, so I took it as truth. Do you have benchmarks to prove otherwise? -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * * http://www.ait-web.com * *** Shapira, Yoav wrote: Howdy, Because a web server serves static content (html, images, etc.) much faster than tomcat will. Really? Do you have a benchmark using tomcat 4.1.x that supports the above? Yoav Shapira - 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: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions
' Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Ok, I'm the sysamdin of which is being spoken. So I checked netstat, as I normally do. Here's a bit of info: netstat -an | grep 172.16 | grep ESTABLISHED | wc -l (172.16 refers to the DB connection on the internal network, on a separate VLAN than the rest of the network traffic) This elicits a response of : 45 , which if I watch the sysmon on the SQL server, it shows 45 connections currently. Same command with TIME_WAIT instead, shows: 15 So at least right now, it doesn't seem to be so much a connection problem to the DB. We did his some too many open files errors in the Catalina.out, which I temporarily resolved by changing ulimit -n from 1024 to 8092. --- robert engstrom -Original Message- From: Lawrence, Gabriel [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:47 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Try running netstat on the linux box to see how many connections are out there. This might give you some more visibility into what network connections are actually being used and where they are going. -gabe -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 10:43 AM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions your logic seems on target to me. my sysadmin (who's just as stymied as i am) says that according to his sources, sockets on linux are open files so if the open file limit is exceeded, it would affect sockets as well. any thoughts on this? barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:38 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions I'm pretty sure can't create socket means it can't connect to the DB for some reason. I would wager the DB (or something) is refusing the connection. The fact that it said can't create socket means that tomcat is trying to do so. So that part of it seems alright. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: well, i followed the dbcp comment that says set to 0 for unlimited and that turns out to be wrong. i also tried -1 and that is equally unuseful in terms of setting it to unlimited. so i tried setting maxActive to 10 and so far it is generating no errors. no, i'm wrong. connecs shot up to around 600 or maybe more, then we started getting the java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. the db has an insanely huge connection limit of 99,999 we think. barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:27 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Is it also unlimited (or insanely huge) on the database? -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: i adjusted the pool to unlimited and am still getting these errors. something else seems to be fekachte. barclay -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:11 PM To: Tomcat Users List Subject: Re: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Hi, Your pool of connections to your database is exhausted. Try upping the number. -e On Fri, 8 Aug 2003, Barclay A. Dunn wrote: we are getting a ton of these errors in our catalina.out and i could use help in fixing it. i know they are related to our connection pooling, but not what to do to fix. my understanding of the underlying mechanics of connection pooling is somewhat limited. i have put two different but related error messages in here: java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(Aband
RE: Starting tomcat from init scripts (HP/UX)
Tim is right. In HP/UX there is a default start script (I forget what it's called). You plug in the name of your service and add any other stuff it might need. You define you service as being active somewhere else. (I know I'm not much help but it's been a while). That way when it starts you get the [OK] message. -e On Thu, 7 Aug 2003, Lott, Carey wrote: I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes the first part of the script which displays the variables that are being used, but it doesn't do anything more. We haven't been able to find any errors to give us an idea of what the problem is. I'm sorry I think I forgot to say in the initial email that I am running Tomcat 4.0.4 on HP/UX 11.00. I appreciate any suggestions you can offer. signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:11 PM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.ja r:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - 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: how to suppor 30000 concurrent users
I would also do a serious reality check on the 30,000 concurrent users number. After going through something like the drill below you will find that you have architected yourself one big system. The sticker shock alone might be enough for people to go back and seriously reconsider their numbers. Marketing people are sometimes on crack. Bigger sites (like eBay) work on seperating their services. So their frontpage is static and gets updated every so often. The second you search you are thrown to another server that just does searches. When you want to buy/bid you move to another server that just does that. -e On Tue, 5 Aug 2003, Ralph Einfeldt wrote: build a model like - each user is on the site for n Minutes - each user makes n requests - the mean time between to page requests is n seconds - each page request creates n http requests - specify the average size for an http request - specify the average ratio of request/db access . With that you can compute memory usage, requests/per second, concurrent databae connection etc. With these number you have to test your application (not tomcat) and see what your application can handle. There is no rule of thumb. (It can't be, it's like predicting the time to ride by horse fom New York to Frisko, whithout knowing the rider, the baggage and without having a map) Depending on the structure of the site and the effort you want to invest you can improve the result by building groups of users, pages, requests and estimate these. -Original Message- From: Heart Prince [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:57 PM To: [EMAIL PROTECTED] Subject: how to suppor 3 concurrent users howmany concurrent users does tomcat support? if i want to design a web application for 30,000 concurrent users, what is the step? clustering is related to this? how many servers i need if i am clustering _ Latest movie trailers. On your mobile. http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS. - 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: Tomcat 5.0.2 and IIS
The IIS connector is ajp13. The coyote connector is ajp13 compliant so I think an experiment would be in order. I would guess it would work. -e On Tue, 5 Aug 2003, vikas jain wrote: If someone knows tomcat 5.0.2 works with IIS??? I tried to search for it, I got to know tomcat 3.3 works withIIS but there are no docs for tomcat 5.0 verison. If someone knows about this, please help me out. Thanks, Vikas _ Going on a holiday? Want to study abroad? http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt Need a personal loan? - 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: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2
Hi, I have gotten Tomcat 5.0.4/Apache 2.0.47/JK2 2.0.2 working on a Solaris 7 box. I set it up just like you would set it up in the FAQs. My comment echos John's advice. Forget the jni and just stick to TCP sockets. -e On Tue, 5 Aug 2003, Pat Pomatto wrote: Hi, I'm running on Linux Apache 2.0.47, Tomcat 5.0.5 and trying to use JK2 connector 2.0.2 which I built successfully. I configured the connector with jni. I cannot seem to get the connector to work. In my apache/logs/error_log the error generated is: [Tue Aug 05 10:31:53 2003] [error] vm.init(): no jvm_dll_path, will use LD_LIBRARY_PATH libjvm.so [Tue Aug 05 10:31:53 2003] [error] Can't load native library libjvm.so : libjvm.so: cannot open shared object file: No such file or directory [Tue Aug 05 10:31:53 2003] [error] jni.loadJvm() Error - can't load jvm dll [Tue Aug 05 10:31:53 2003] [error] workerEnv.initChannel() init failed for channel.jni:jni [Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Tue Aug 05 10:31:53 2003] [error] shm.init(): No file [Tue Aug 05 10:31:53 2003] [error] uriEnv.init() map to invalid worker /jsp-examples/* ajp13:localhost:8009 [Tue Aug 05 10:32:05 2003] [error] mod_jk.handle() No worker for /jsp-examples/index.html Any ideas? Has anyone successfully gotten jk2 connector 2.0.2 working with Tomcat 5? Thanks in Advance, Pat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
Hi, Just an FYI... I'm looking our JK2 config now and DirectoryIndex is not set with index.jsp. The only thing that I can find is the welcome-file is index.jsp. The application pulls up index.jsp by default when you go to http://host/context/ I don't see any redirects as this application passes everything back to tomcat. -e On Thu, 31 Jul 2003, John Turner wrote: This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
works. It doesn't appear, at least on the surface, that they developer did anything special to get it to operate that way. -e On Thu, 31 Jul 2003, John Turner wrote: What about http://host/context without the trailing /? John Eric J. Pinnell wrote: Hi, Just an FYI... I'm looking our JK2 config now and DirectoryIndex is not set with index.jsp. The only thing that I can find is the welcome-file is index.jsp. The application pulls up index.jsp by default when you go to http://host/context/ I don't see any redirects as this application passes everything back to tomcat. -e On Thu, 31 Jul 2003, John Turner wrote: This came up yesterday. According to one poster, putting DirectoryIndex index.jsp in your httpd.conf VirtualHost block would cause Apache to translate http://192.168.168.45/rtizon; into http://192.168.168.45/rtizon/index.jsp;. However, it doesn't work at all for me, never has, and I have always understood it to be a limitation of using mod_jk (and possibly mod_jk2). What happens when you try http://192.168.168.45/rtizon/;? John Ray Madigan wrote: I have mod_jk working with two workers and a loadbalancer. when i use http://192.168.168.45:8080/rtizon the browser completes the line with /index.jsp. Same is true with the other worker and the correct page comes up when i use http://192.168.168.45/rtizon i get a page not found error? and when I complete the url with http://192.168.168.45/rtizon/index.jsp i get the correct page My JkMount entries are JkMount /*.jsp loadbalancer JkMount /rtizon loadbalancer JkMount /rtizon/*.jsp loadbalancer Is this the expected behaviour or should apache complete the url as tomcat does cause it is making the call to tomcat? And, do I need the second JkMount /rtizon loadbalancer? 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] - 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: Help with mod_jk2 + Coyote connector + Apache 2 + TC 4.1.24
Hi, Try playing with the connectionTimout setting in your server.xml. By default it is set at 0. Try using 12. Also experiment with -1. I have found that the connector resets every once in a while with a 0. With 12 the connection doesn't reset but times out. I have heard that a -1 means it niether times out or resets, but I haven't tried it. -e On Thu, 31 Jul 2003, Mauricio [iso-8859-1] Nuñez wrote: Hi Someone can help me, please My configuration is the following: 1) load balancer ( Hardware ) 2) 2 Apache2 using mod_jk2 (RedHat 9) 3) 2 Tomcat4 listen at 8009 using Coyote Connector (RedHat 9) jdk sun 1.4.2 4) 1 Mysql server. (Redhat 7.2 , Mysql 4.0.13) Our monitor alerts about a 15s timeout after 2-3 hours of activity, but i can't get the exact problem. Any help, tip, solution, etc :-) The Apaches show MaxClients rearched, but incrementing this number not seem a good idea. The workaround is reboot Tomcats, to release the connections ajp13, but i need a better solution TIA Mauricio From my httpd.conf IfModule worker.c ServerLimit 16 StartServers 2 MaxClients 400 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule From my workers2.properties: [channel.apr:tomcat5] tomcatId=tomcat5 port=8009 host=10.0.0.22 timeout=2 group=lb [channel.apr:tomcat6] tomcatId=tomcat6 port=8009 host=10.0.0.23 timeout=2 group=lb [lb:lb] timeout=5 recovery=30 attempts=2 debug=0 From my server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=512 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ - 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: Help with mod_jk2 + Coyote connector + Apache 2 + TC 4.1.24
Someone can explain how analize data from a kill -3 ( thread dump ) . I can see nothing rare. Google for this. You could write a book about this subject and I don't think this is the right place to do it. Basically it's used to see if threads are blocked or hanging on a piece of code. If you are experiencing this you will notice that you have a bunch of threads all stuck in one place and then one that's just a little bit further along. Typically that's the one all the other threads are waiting on to finish up whatever it's doing so they can move forward. Find out what it's doing and debug that code/DB call/whatever. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CiscoLB jk2 problem
Hi, This is why you want to spread your application across two or more tomcats. I'm not sure if you can tweak the behavior of the error because what you are getting is indeed a internal server error. If you are going to load balance you should try to load balance all the way down the stack. Try giving each apache two or more tomcats to send sessions too. JK2 will see that tomcat A is down and move to tomcat B. Your application monitoring software should then kick of an alert to notify someone that a tomcat is down and might need human intervention. -e On Thu, 31 Jul 2003, Angus Mezick wrote: I need to let apache fail nicely when a tomcat instance has crashed, been stopped or is being restarted. Right now this is what happens through the jk2 connector: I stop apache:10061 - Connection refused I stop one tomcat webapp: HTTP Status 404 I stop the tomcat server: 500 Internal Server Error Directly to tomcat: I stop apache:Nothing happens, not using it :) I stop one tomcat webapp: HTTP Status 404 I stop the tomcat server: 10061 - Connection refused I would like to see apache return 10061 - Connection refused when I stop tomcat instead of error 500 because this can cause problems with the cisco load balancer noticing that a server has dropped out of the loop. We are doing a simple one apache - one tomcat setup on 6 machines that are HW load balanced. Each tomcat has multiple webapps each accessible through a virtual host. Do I just need to switch to JNI? My current workers2.properties: only at beginnin. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=/ApacheGroup/Apache2/logs/jk2.shm size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=wbdevweb5.guidestar.net # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] worker=status:status # Uri mapping [uri:bdevweb5.guidestar.net/*] worker=ajp13:localhost:8009 [uri:bdevweb5/*] worker=ajp13:localhost:8009 My jk2.properties: handler.list=channelSocket,request channelSocket.port=8009 --Angus - 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: Possible configuration error in JK2-Environment (Apache 2.0.46,Tomcat 4.1.18/24)
Hi, Here is a minimal JK2 config. This is a default config so you need to change port 8009 below to port 9000 per your server.xml workers2.properties: bash-2.05$ more workers2.properties [shm] file=${serverRoot}/logs/shm.file size=1048576 # socket channel [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/*] worker=ajp13:localhost:8009 http.conf: (change the path on the JkSet line for your system) LoadModule jk2_module modules/mod_jk2.so JkSet config.file /full/system/path/to/workers2.properties jk2.properties should be all commented out. server.xml should just the default JK2 settings. That's it, nothing more nothing less. It should work. Then you want to go back and adjust workers2.properties for your contexts, maybe add a logger, whatever. -e On Thu, 31 Jul 2003 [EMAIL PROTECTED] wrote: Hi, i get the order to configure a new webhost with apache as the exclusive connection. Behind the apache should be in furher future a tomcat farm on serveral servers. Therefor, i install (a) an blank ger- man linux-distribution (SuSE 8.2) with binaries for Apache 2.0.46 and Tomcat 4.1.18; read (b) a lot of Documentation and change (c) several config-files. The first goal, two running standalone servers with one donain, i reached very quickly. The second goal, standalone servers with named virtual hosts(!), are a bit more complex, but reached too. Now should hide tomcat behind the apache. I create the workers2.prop- erties and the jk2.properties, set JkUri Statements in apaches vir- tual host section, change tomcats server.xml to use an other connector and so one. In worst case, it happens nothing. In best case i get an lot of errors if i ask the apache for an index.jsp. This implied for me, that the basic communication are existing, but the speak suaheli and esperanto and don't understanding each other. It was irrelevant what i do, as install the binaries of tomcat 4.1.24, or tries other possibilities in the config-files, i was not able to change the situation. In the best case (they talk together, or tries at least) i get messages like following in apaches error log: ..[error] msgAjp.receive(): Bad signature 00 ..[notice] BAD MESSAGE: pos=4 len=4 max=8192 ..[notice] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..[error] channelSocket.receive(): Bad header ..[error] workerEnv.processCallbacks() Error reading reply ..[error] ajp13.service() ajpGetReply recoverable error 12 On tomcat side it look like: .. PM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.NullPointerException at org.apache.jk.common.ChannelSocket .processConnection (ChannelSocket.java:597) at org.apache.jk.common.SocketConnection .runIt (ChannelSocket.java:707) at org.apache.tomcat.util.threads .ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run (Thread.java:536) I think i have do all what i can. The next (and last) step are take the source-code and begin with debugging. In the appendix i add more or less my config-files. I build an hole *.tar.bz2 with the complete relevant files (i think), but this is with 38KB to big for the list. Therfor i add short snipplets from the right config-files. Maybe had someone a running minimal configuration, or know where is one available. Thanks for help. Christian. PS.: The apache-error.log has for every apache-thread one line like follow: ..[error] jk2_init() Can't find child 12957 in scoreboard Over this i readed a little bit in the mailing list, but the change of the start-sequence don't kill this messages. Had it an effect of the hole system? /etc/apache2/httpd.conf: --- : IfModule mod_jk2.c JkSet config.file /etc/apache2/workers2.properties /IfModule : NameVirtualHost * VirtualHost* DocumentRoot /opt/jakarta/tomcat/current/webapps/ ServerNamebotanix-vhost00.muthpartners.de ServerAlias botanix-vhost00.muthpartners ServerAlias botanix-vhost00 ErrorLog /var/log/apache2/vhost00-error.log CustomLog /var/log/apache2/vhost00-access.log common JkSet uri:botanix-vhost00/*.jsp.group ajp13:localhost:9000 # DirectoryIndex index.jsp Directory/opt/jakarta/tomcat/current/webapps AllowOverride None Options +Indexes +FollowSymLinks Order deny,allow deny from all allow from localhost allow from 172.16.0 /Directory /VirtualHost : /etc/apache2/workers2.properties --- : [logger.apache2] level=DEBUG [status:status] info=Status Worker
Re: Possible configuration error in JK2-Environment (Apache 2.0.46,Tomcat 4.1.18/24)
heh. Sorry. Forget the first line in my workers2.properties. I got a little wild with my cut and paste. -e On Thu, 31 Jul 2003, Eric J. Pinnell wrote: Hi, Here is a minimal JK2 config. This is a default config so you need to change port 8009 below to port 9000 per your server.xml workers2.properties: bash-2.05$ more workers2.properties [shm] file=${serverRoot}/logs/shm.file size=1048576 # socket channel [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/*] worker=ajp13:localhost:8009 http.conf: (change the path on the JkSet line for your system) LoadModule jk2_module modules/mod_jk2.so JkSet config.file /full/system/path/to/workers2.properties jk2.properties should be all commented out. server.xml should just the default JK2 settings. That's it, nothing more nothing less. It should work. Then you want to go back and adjust workers2.properties for your contexts, maybe add a logger, whatever. -e On Thu, 31 Jul 2003 [EMAIL PROTECTED] wrote: Hi, i get the order to configure a new webhost with apache as the exclusive connection. Behind the apache should be in furher future a tomcat farm on serveral servers. Therefor, i install (a) an blank ger- man linux-distribution (SuSE 8.2) with binaries for Apache 2.0.46 and Tomcat 4.1.18; read (b) a lot of Documentation and change (c) several config-files. The first goal, two running standalone servers with one donain, i reached very quickly. The second goal, standalone servers with named virtual hosts(!), are a bit more complex, but reached too. Now should hide tomcat behind the apache. I create the workers2.prop- erties and the jk2.properties, set JkUri Statements in apaches vir- tual host section, change tomcats server.xml to use an other connector and so one. In worst case, it happens nothing. In best case i get an lot of errors if i ask the apache for an index.jsp. This implied for me, that the basic communication are existing, but the speak suaheli and esperanto and don't understanding each other. It was irrelevant what i do, as install the binaries of tomcat 4.1.24, or tries other possibilities in the config-files, i was not able to change the situation. In the best case (they talk together, or tries at least) i get messages like following in apaches error log: ..[error] msgAjp.receive(): Bad signature 00 ..[notice] BAD MESSAGE: pos=4 len=4 max=8192 ..[notice] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..[error] channelSocket.receive(): Bad header ..[error] workerEnv.processCallbacks() Error reading reply ..[error] ajp13.service() ajpGetReply recoverable error 12 On tomcat side it look like: .. PM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.NullPointerException at org.apache.jk.common.ChannelSocket .processConnection (ChannelSocket.java:597) at org.apache.jk.common.SocketConnection .runIt (ChannelSocket.java:707) at org.apache.tomcat.util.threads .ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run (Thread.java:536) I think i have do all what i can. The next (and last) step are take the source-code and begin with debugging. In the appendix i add more or less my config-files. I build an hole *.tar.bz2 with the complete relevant files (i think), but this is with 38KB to big for the list. Therfor i add short snipplets from the right config-files. Maybe had someone a running minimal configuration, or know where is one available. Thanks for help. Christian. PS.: The apache-error.log has for every apache-thread one line like follow: ..[error] jk2_init() Can't find child 12957 in scoreboard Over this i readed a little bit in the mailing list, but the change of the start-sequence don't kill this messages. Had it an effect of the hole system? /etc/apache2/httpd.conf: --- : IfModule mod_jk2.c JkSet config.file /etc/apache2/workers2.properties /IfModule : NameVirtualHost * VirtualHost* DocumentRoot /opt/jakarta/tomcat/current/webapps/ ServerNamebotanix-vhost00.muthpartners.de ServerAlias botanix-vhost00.muthpartners ServerAlias botanix-vhost00 ErrorLog /var/log/apache2/vhost00-error.log CustomLog /var/log/apache2/vhost00-access.log common JkSet uri:botanix-vhost00/*.jsp.group ajp13:localhost:9000 # DirectoryIndex index.jsp Directory/opt/jakarta/tomcat/current/webapps AllowOverride None Options +Indexes +FollowSymLinks
RE: CiscoLB jk2 problem
No, I think you mentioned that. :) -e On Thu, 31 Jul 2003, Angus Mezick wrote: Dang, I forgot to mention that we have 6 machines set up like this (or to be set up like this). -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:18 PM To: Tomcat Users List Subject: Re: CiscoLB jk2 problem Hi, This is why you want to spread your application across two or more tomcats. I'm not sure if you can tweak the behavior of the error because what you are getting is indeed a internal server error. If you are going to load balance you should try to load balance all the way down the stack. Try giving each apache two or more tomcats to send sessions too. JK2 will see that tomcat A is down and move to tomcat B. Your application monitoring software should then kick of an alert to notify someone that a tomcat is down and might need human intervention. -e On Thu, 31 Jul 2003, Angus Mezick wrote: I need to let apache fail nicely when a tomcat instance has crashed, been stopped or is being restarted. Right now this is what happens through the jk2 connector: I stop apache:10061 - Connection refused I stop one tomcat webapp: HTTP Status 404 I stop the tomcat server: 500 Internal Server Error Directly to tomcat: I stop apache:Nothing happens, not using it :) I stop one tomcat webapp: HTTP Status 404 I stop the tomcat server: 10061 - Connection refused I would like to see apache return 10061 - Connection refused when I stop tomcat instead of error 500 because this can cause problems with the cisco load balancer noticing that a server has dropped out of the loop. We are doing a simple one apache - one tomcat setup on 6 machines that are HW load balanced. Each tomcat has multiple webapps each accessible through a virtual host. Do I just need to switch to JNI? My current workers2.properties: only at beginnin. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=/ApacheGroup/Apache2/logs/jk2.shm size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=wbdevweb5.guidestar.net # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] worker=status:status # Uri mapping [uri:bdevweb5.guidestar.net/*] worker=ajp13:localhost:8009 [uri:bdevweb5/*] worker=ajp13:localhost:8009 My jk2.properties: handler.list=channelSocket,request channelSocket.port=8009 --Angus - 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: Best Tomcat Book, Recommendations??? PART 2
You're right,I guess you can always use it to prop your monitor up. :) -e On Wed, 30 Jul 2003, Aggarwal, Gautam (IE03) wrote: Can a book ever be 'Pure Garbage'? Please think about it! Gautam -Original Message- From: Tony LaPaso [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:50 AM To: Tomcat Users List Subject: Re: Best Tomcat Book, Recommendations??? PART 2 First, as I said, my comment about the Wrox books was a generalization. There's nothing illogical about making generalizations. The Wrox books I've seen were pure garbage. When I'm at the bookstore now I don't even bother to browse those big red books, knowing my effort will probably be a waste of time. I usually stick with O'Reilly and Manning. Perhaps Wrox's quality has improved and I should browse them again. As for what I'm looking for -- basically, Tomcat Admin. There are other books that teach servlets/JSPs/JSTL/XML, etc. I'm interested in all aspects of using TC from an admin's point of view and from a programmer's point of view. I guess that's another generalization. :) Specifically, setting up TC, using it w/Apache and IIS, TC Security, clustering TC servers, setting up JNDI resources. I suspect any good TC book will have a good deal of overlap w/the servlet spec v2.4 which is fine. I know several books cover these topics (and others) but as I said, I was hoping to get some recommendations on the best ones. Perhaps the Wrox one is the best. Thanks very much for all the input. I really appreciate everyone taking the time to write. Tony - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 7:28 AM Subject: Re: Best Tomcat Book, Recommendations??? PART 2 What, exactly is it that you want to know? You say I want a Tomcat book but then you say I don't want anything about servlets. So what is it you want? An admin reference (the Wrox book is focused that way)? A performance tuning book? People can't answer you or help you unless you are specific! Do you have specific questions? Have you asked them here or on tomcat-dev? Why wait for a book? You have access to the people who are actually writing Tomcat and using Tomcat in heavy-duty production situations right here, right now. John Tony LaPaso wrote: Sorry, but I forgot to mention: I'm really only interested in Tomcat specifically, not how to program servlets/JSPs. Some of the TC books I've seen like to make themselves nice and plump by describing servlet programming, what HTTP is, what XML is, etc., etc. I don't need that extra fat. Thanks again... - 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: Problem with buildconf.sh
What version of solaris is this? I wasn't paying attention. -e On Wed, 30 Jul 2003, John Turner wrote: Sorry, I don't have access to a Solaris play box anymore, so I'm at a loss on how to help you resolve this. Hopefully someone else has the answer. John [EMAIL PROTECTED] wrote: Greetings, I still can't get buildconf.sh to run without an error - this is what happens when I try to run it # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file -- I've tried untaring it with the new GNU tar - doesn't help - I've also looked for weird characters in the buildconf.sh and configure.ac files - but there are none. I'm at a loss as to what to do - any help would be appreciated. Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: Problem with buildconf.sh
Ok, Solaris 9 works for me. I had to install libtool-1.5, autoconf-2.57, and automake-1.7. I also had to install m4-1.4. jakarta-tomcat-connectors-jk-1.2.4-src/jk/native: bash-2.05$ ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy configure.in: installing `scripts/build/unix/install-sh' configure.in: installing `scripts/build/unix/mkinstalldirs' configure.in: installing `scripts/build/unix/missing' autoconf bash-2.05$ Dunno what's going on over there. -e On Wed, 30 Jul 2003, Eric J. Pinnell wrote: What version of solaris is this? I wasn't paying attention. -e On Wed, 30 Jul 2003, John Turner wrote: Sorry, I don't have access to a Solaris play box anymore, so I'm at a loss on how to help you resolve this. Hopefully someone else has the answer. John [EMAIL PROTECTED] wrote: Greetings, I still can't get buildconf.sh to run without an error - this is what happens when I try to run it # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file -- I've tried untaring it with the new GNU tar - doesn't help - I've also looked for weird characters in the buildconf.sh and configure.ac files - but there are none. I'm at a loss as to what to do - any help would be appreciated. Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: Problem with tomcat and ssl
You can't send http and https requests to the same port. -e On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote: Greetings, This will work - http://placeanad.classifiedmarketplace.net:8080/AdWebster but this will not https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: Problem with buildconf.sh
check your permissions and all that unixy kinda of stuff. make sure you can create and read the file. just a thought. -e On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote: Yeah I installed all of that but it's still coming up with the error for me - not sure what's going on either Thanks, Bobbie -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:44 AM To: Tomcat Users List Subject: Re: Problem with buildconf.sh Ok, Solaris 9 works for me. I had to install libtool-1.5, autoconf-2.57, and automake-1.7. I also had to install m4-1.4. jakarta-tomcat-connectors-jk-1.2.4-src/jk/native: bash-2.05$ ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy configure.in: installing `scripts/build/unix/install-sh' configure.in: installing `scripts/build/unix/mkinstalldirs' configure.in: installing `scripts/build/unix/missing' autoconf bash-2.05$ Dunno what's going on over there. -e On Wed, 30 Jul 2003, Eric J. Pinnell wrote: What version of solaris is this? I wasn't paying attention. -e On Wed, 30 Jul 2003, John Turner wrote: Sorry, I don't have access to a Solaris play box anymore, so I'm at a loss on how to help you resolve this. Hopefully someone else has the answer. John [EMAIL PROTECTED] wrote: Greetings, I still can't get buildconf.sh to run without an error - this is what happens when I try to run it # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file -- I've tried untaring it with the new GNU tar - doesn't help - I've also looked for weird characters in the buildconf.sh and configure.ac files - but there are none. I'm at a loss as to what to do - any help would be appreciated. Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 -- --- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with buildconf.sh
and you are building it as root? If so I'm out of ideas. -e On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote: Yeah I did that - I even chmod'ed to 775 instead of 755 and I still get the same message -rwxrwxr-x 1 root root 295 Oct 8 2002 buildconf.sh -- # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file Anything else? -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:59 AM To: Tomcat Users List Subject: RE: Problem with buildconf.sh check your permissions and all that unixy kinda of stuff. make sure you can create and read the file. just a thought. -e On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote: Yeah I installed all of that but it's still coming up with the error for me - not sure what's going on either Thanks, Bobbie -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:44 AM To: Tomcat Users List Subject: Re: Problem with buildconf.sh Ok, Solaris 9 works for me. I had to install libtool-1.5, autoconf-2.57, and automake-1.7. I also had to install m4-1.4. jakarta-tomcat-connectors-jk-1.2.4-src/jk/native: bash-2.05$ ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy configure.in: installing `scripts/build/unix/install-sh' configure.in: installing `scripts/build/unix/mkinstalldirs' configure.in: installing `scripts/build/unix/missing' autoconf bash-2.05$ Dunno what's going on over there. -e On Wed, 30 Jul 2003, Eric J. Pinnell wrote: What version of solaris is this? I wasn't paying attention. -e On Wed, 30 Jul 2003, John Turner wrote: Sorry, I don't have access to a Solaris play box anymore, so I'm at a loss on how to help you resolve this. Hopefully someone else has the answer. John [EMAIL PROTECTED] wrote: Greetings, I still can't get buildconf.sh to run without an error - this is what happens when I try to run it # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file -- I've tried untaring it with the new GNU tar - doesn't help - I've also looked for weird characters in the buildconf.sh and configure.ac files - but there are none. I'm at a loss as to what to do - any help would be appreciated. Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 -- --- 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] - 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: Hooking Tomcat to Apache HTTPD
Hi, Why don't you slim down that file and try something simple first. Like: [shm] file=${serverRoot}/logs/shm.file size=1048576 # socket channel [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 -e On Wed, 30 Jul 2003, Julien Martin wrote: Hello, I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k platform. I configured the workers2.properties file as follows: ** [logger] level=DEBUG [config:] #file=${serverRoot}/conf/workers2.properties file=D:/system/Apache Group/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] info=Default load balancer. debug=0 #[lb:lb_1] #info=A second load balancer. #debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 #[channel.socket:localhost:8019] #info=A second tomcat instance. #debug=0 #tomcatId=localhost:8019 #lb_factor=1 #group=lb #group=lb_1 #disabled=0 #[channel.un:/opt/33/work/jk2.socket] #info=A second channel connecting to localhost:8019 via unix socket #tomcatId=localhost:8019 #lb_factor=1 #debug=0 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 5.0/server/lib//commons-logging.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 ARG=start disabled=0 stdout=D:/system/Apache Group/Apache2/logs/stdout.log stderr=D:/system/Apache Group/Apache2/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: #[uri:127.0.0.1:8003] #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it #alias=myVirtualHost:8003 #[uri:127.0.0.1:8003/ex] #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 ) #context=/ex #group=lb_1 [uri:/examples] info=Example webapp in the default context. context=/jsp-examples debug=0 #[uri:/examples1/*] #info=A second webapp, this time going to the second tomcat only. #group=lb_1 #debug=0 [uri:/examples/servlets/*] info=Prefix mapping [uri:/examples/*.jsp] info=Extension mapping [uri:/examples/*] info=Map the whole webapp [uri:/examples/servlets/HelloW] info=Exampel with debug enabled. debug=10 ** I get a tomcat style 404 error when I try to access the following url: http://localhost/examples Here is what I get in the apache error log file: ** [Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748 [Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running [Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program Files\Java\j2re1.4.1_03\bin\client\jvm.dll [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 5.0/server/lib//commons-logging.jar [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Dtomcat.home=${TOMCAT_HOME} [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Dcatalina.home=${TOMCAT_HOME} [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M [Wed Jul 30 17:28:31 2003] [notice] vm.open2() done [Wed Jul 30 17:28:31 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter [Wed Jul 30 17:28:32 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter [Wed Jul 30 17:28:32 2003] [error] Can't find class org/apache/jk/apr/AprImpl java.lang.NoClassDefFoundError: javax/management/MBeanRegistration at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at
Re: SOS Tomcat 5 and Apache httpd 2.0.47 on windows w2k
Is tomcat listening on port 8009? -e On Wed, 30 Jul 2003, Julien Martin wrote: Hello, I am still trying to run tomcat 5 together with apache httpd. I altered the workers2.properties file as one of you suggested. Here it is now: ** [shm] file=${serverRoot}/logs/shm.file size=1048576 # socket channel [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 ** I get a tomcat-style 404 error when I try the following url: http://localhost/examples I am stuck, can anyone please help? Thanks in advance, Julien. - 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: SOS Tomcat 5 and Apache httpd 2.0.47 on windows w2k
doy. it's listening. forget about that. you have checked to make sure that the file (index.jsp or index.html) is there? if you go to change the uri in workers2.properties to /* instead of /examples/* and go to http://localhost/ what do you get. Do you see anyting in the logs? -e On Wed, 30 Jul 2003, Eric J. Pinnell wrote: Is tomcat listening on port 8009? -e On Wed, 30 Jul 2003, Julien Martin wrote: Hello, I am still trying to run tomcat 5 together with apache httpd. I altered the workers2.properties file as one of you suggested. Here it is now: ** [shm] file=${serverRoot}/logs/shm.file size=1048576 # socket channel [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 ** I get a tomcat-style 404 error when I try the following url: http://localhost/examples I am stuck, can anyone please help? Thanks in advance, Julien. - 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: Tomcat 4.1.18 crash.
Hi, If it hangs get a thread dump by sending a 'kill -QUIT' to the process (Unix only). That will tell you more of whats going on in the VM than the logs do. From it you can tell where the threads are getting stuck. Hopefully that will point you in the right direction to debug. I think there is a way to get a thread dump on Windows but I don't know what it is. Google is your friend. Reading the thread dump might be a little confusing if you haven't done it before. Again, google is you friend. -e On Tue, 29 Jul 2003, EXT / ALTIOR CABOU Carl (DRT) wrote: Hi all. I'm using Tomcat 4.1.18 with Axis 1.0. Sometimes I must restart Tomcat because it crashes and hangs up (I only get the message Exception in thread main in catalina.log). I'm moving to Tomcat 4.1.24, maybe it will helps. Any idea ? Best regards. Carl. - 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_init() Can't find child xxx in scoreboard
Hi, Is this right at startup? If so it's not an error. It is just initializing. It should work correctly after startup. -e On Tue, 29 Jul 2003, [iso-8859-1] Jørgen[iso-8859-1] [iso-8859-1] Nørgaard wrote: Hello, there has been some recent discussion of this problem but no solution yet (?) I am trying to use mod_jk2 to connect tomcat 4.1.x to apache 2.0.4x but I seem to be unable to get past this error. Does anybody have a clue as to what is the problem? From apache2's error_log: [Tue Jul 29 15:56:04 2003] [error] mod_jk child init 1 0 [Tue Jul 29 15:56:04 2003] [error] jk2_init() Can't find child 18100 in scoreboard [Tue Jul 29 15:56:04 2003] [error] mod_jk child init 1 -2 Regards, -- /jørgen nørgaard SmartTV A/S [EMAIL PROTECTED] Phone: +45 3332 5770 http://smarttv.dk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Off Topic: List Server for Tomcat
Hi, Is java a requirement? You could save yourself a lot of time and troubles not reinventing the wheel. Majordomo has been around forever... -e On Tue, 29 Jul 2003, Pitre, Russell wrote: I think this is what i'm looking forexcept, its written in PerlI would like an implementation in Java instead. Thanx Russ -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 10:34 AM To: Tomcat Users List Subject: Re: Off Topic: List Server for Tomcat Majordomo? http://www.greatcircle.com/majordomo/ Pitre, Russell wrote: Hello All, This may be off topic. I need a quick fix for an office politics problem which involves a list server. Does anyone know of a free list server for Tomcat? Time is an issue here, so writing one is not really an option..Thanx in advance.. Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - 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 testing tomcat
Hi, My humble opinion is that you can't beat LoadRunner. It is expensive, but you get what you pay for. The reports are awesome and it doesn't goof up as bad as many other tools. It's scripting language is very rich. But like I said it isn't free. In fact unless you have budgeted for it chances are it will be difficult to cough up the dough for it. -e On Tue, 29 Jul 2003, Mark W. Webb wrote: does anyone have experience load testing tomcat? I am especially interested in mutually authenticate SSL load testing where tomcat runs in conjunction with apache 2.0.47. What tools are people using to test tomcat/apache? thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Crashing on Linux
Hi, Check to make sure you aren't throwing a lock down somewhere and stacking up threads behind it. -e On Tue, 29 Jul 2003, Rick Roberts wrote: I had not seen this problem before I recently started implementing JDBCRealm on these servers. Anyone else having stability problems when using Oracle JDBCRealm? Rick Roberts wrote: Also, The only way I can clear this error is to reboot the machine. Here is another piece of info I get from catalina_log.2003-07-29.txt when I try the 2nd restart (/etc/init.d/tomcat restart) 2003-07-29 11:06:33 JDBCRealm[Standalone]: Exception closing database connection java.sql.SQLException: Io exception: Broken pipe at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269) at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:557) at org.apache.catalina.realm.JDBCRealm.close(Unknown Source) at org.apache.catalina.realm.JDBCRealm.stop(Unknown Source) at org.apache.catalina.core.ContainerBase.stop(Unknown Source) at org.apache.catalina.core.StandardService.stop(Unknown Source) at org.apache.catalina.core.StandardServer.stop(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) 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(Unknown Source) Rick Roberts wrote: Tomcat is crashing every 2 - 3 days on 2 different Linux machines. Both machines are running pretty much identical software configurations. Both machines are serving the same web application so, it's almost certainly something in my web app code that causes the problem. However; the logs from my web app do not tell me anything. I am seeing this error on 2 different Linux machines. Tomcat just stops responding to my requests. Also when I restart Tomcat (using: /etc/init.d/tomcat restart), I get this: [EMAIL PROTECTED] root]# /etc/init.d/tomcat4 restart waiting for processes to exit [ OK ] waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit The only info from logs I can find is from catalina.out: Jul 29, 2003 10:54:06 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerSocket SEVERE: Caught exception trying to unlock accept. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Jul 29, 2003 10:54:07 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerSocket SEVERE: Caught exception trying to close socket. java.lang.NullPointerException at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:338) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Jul 29, 2003 10:54:07 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket I'm using: RH 9 (kernel 2.4.20-19.9) Tomcat 4.1.24 ( RPM tomcat4-4.1.24-full.2jpp) Sun JDK 1.4 (j2sdk1.4.2) Any help greatly appreciated.
Re: Tomcat Crashing on Linux
Earlier today we were talking about thread dumps. You might want to generate some next time this is happening. It will show you if a thread is locked and what it is waiting on. send a kill -QUIT to the VM when it is hanging. It's often a good idea to get like 5 or 6 thread dumps right in a row very quickly. -e On Tue, 29 Jul 2003, Rick Roberts wrote: You are correct. Crashing is the wrong way to describe it. There is a process still active in my process list. This has become frequent enough that I should be able to track it down. However; I don't know what triggers the failure. I only know that it happens every few days on both computers. Thanks for the advice I will follow it and let you know what I discover. Thanks, Rick Oscar Carrillo wrote: You might want to look at how many processes/threads are listed for tomcat and your database. You might see that one of them or both is creating and keeping too many threads around. At least that would be a start. For tomcat, I have a daemon script that has a status command that tells you all the pid's of processes for tomcat. You can get it off my web page: http://daydream.stanford.edu/tomcat/install_web_services.html You can just use the command I use for that which is on the web page also. You should do something similar for Oracle to see how many processes are in the process table. You could try and restarting the database, which would clear out connections that aren't timing out, and see if tomcat starts responding again. You say it's crashing, but is it really? It clearly has problems restarting and is not responding. But that may not be the same as crashing. Are there processes showing tomcat is still up? Oscar - 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 over seperate servers
Hi, How about posting your workers2.properties file? -e On Mon, 28 Jul 2003, Martin Smith wrote: Sorry guys - school boy error. - Original Message - From: Martin Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 28, 2003 12:55 PM Subject: Re: jk2 over seperate servers Sorry... That's Apache 2.0.43 and Tomcat 4.1.18-LE-jdk14 - Original Message - Hi, I have got jk2 (mod_jk2-2.0.43.so) working with Apache and Tomcat on the same server (Windows XP). Now I want to use a RedHat 8 box for Apache and the XP box for Tomcat. I have setup the workers2.properties file as per some examples I have seen, but I get an Internal Server Error when I try it out. Apache reports: [error] channelSocket.open() connect failed localhost:8009 111 Connection refused Why is it trying to connect to localhost when I have specified otherwise in workers2.properties?? How does the shared memory file work when Apache and Tomcat are on sperate servers??? Martin - 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: coonnectionTimeout
Hi, Good question. I always thought of '0' as being infinite and I wasn't aware of -1. One difference I see, and this seems to be Solaris specific, is that when I use '0' I get INFO: connection reset messages in Tomcat from the Connector. When I give it a time out of say 12 I no longer get reset messages but I get INFO: connection timed out in the logs. I'm planning on running a test to see what the user experience is with a timeout. I know that during the resets the user sees HTTP 400 and 500 errors. I'll also now test with -1. -e On Mon, 28 Jul 2003, Geralyn M Hollerman wrote: I have a question about the connectionTimeout attribute of a Connector element in server.xml; from what I've read, the default value is 6 (milliseconds), but the server.xml that came with the 4.1.24 that I downloaded is set to 0. Is there a reason for this? Does 0 do anything special? According to the sample server.xml, -1 disables connection timeouts - under what situations would I want to do that? Thanks! -- Lynn Hollerman. - 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 Education
The Professional Apache Tomcat book is a good foundation how Tomcat works but it is intended for more of a sys-admin type than a developer. I thought it was pretty good on that aspect. Not many books cater to the poor admins who could really care less about the inner workings of someones tag library. Various servlet and Struts books can help you with the java. This list is a good place to learn. It is the only source you will find that is up to date. By the time somebody gets around to writing a book and it gets published it's already out of date. -e On Mon, 28 Jul 2003, Ben Johnson wrote: Hello all, I'm new to the Tomcat world and I'm desperately trying to find some good resources to learn from. I bought Professional Apache Tomcat (Wrox) and it's decent but it's for version 3.0 or something. I also have a Servlet book from O'Reilly but it doesn't help when integrating with Tomcat. I've spent an inordinate number of hours just trying to figure out how to pull DataSources using the admin tool and I still haven't figured it out. Anybody have any resource or book ideas? Thanks! Ben Johnson Senior Software Developer Collect America, LTD. 1999 Broadway, Suite 2150 Denver, CO 80202 [p]: 303.296.3345 x124 - 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: A problem with configuring tomcat with apache.
Hi, This is the mod_webapp config that comes with Solaris. I think I ran it for about a day or two. in httpd.conf the last line is: include /etc/apache/tomcat.conf tomcat.conf: LoadModule webapp_modulelibexec/mod_webapp.so AddModule mod_webapp.c WebAppConnectionconnwarplocalhost:8008 WebAppDeployexamplesconn/examples/ # WebAppInfo /webapp-info So not much different from your file except for a trailing slash on /examples/ . They also comment out WebAppInfo by default for security reasons. There is no ifmodule statement. If you want to turn tomcat off you comment out the include from httpd.conf. -e On Mon, 28 Jul 2003, J. Joe Wang wrote: Hi John, Thanks for the reply! Yeah, there is only one LoadModule/AddModule pair for mod_webapp. Here is the LoadModule/AddModule block in my httpd.conf. LoadModule php4_modulelibexec/libphp4.so LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c The line 1035 is IfModule mod_webapp.c The line 1036 is WebAppConnection warpConn warp localhost:8008 The line 1037 is WebAppDeploy examples warpConn /examples The line 1038 is WebAppInfo /webapp-info And the line 1039 (last line of httpd.conf) /IfModule If I remove line 1037 and 1038, then the apache can be started. Thanks! On Mon, 2003-07-28 at 10:42, John Turner wrote: Are you sure there is only one LoadModule/AddModule pair for mod_webapp? What is on line 1037 of httpd.conf? John J. Joe Wang wrote: Dear all, I am trying to configure tomcat 4.0.4 with apache 1.3.26 on redhat 7.2. The installation of apache is a normal one. i.e. ./configure, make, make install. The installation of tomcat 4.0.4 is also a normal one. And I followed the install.txt come with webapp_module. i.e. (1)copy mod_webapp.so apache directory/libexec/., (2)modified apache httpd.conf with LoadModule webapp_module libexec/mod_webapp.so and AddModule mod_webapp.c, (3)add IfModule mod_webapp.c WebAppConnection warpConn warp localhost:8008 WebAppDeploy examples warpConn /examples WebAppInfo /webapp-info /IfModule to the end of httpd.conf. But when I tried to start the apache, it gave out a warn and couldn't be started. Here is the message. [warn] module mod_webapp.c is already added, skippingSyntax error on line 1037 of /usr/local/apache/conf/httpd.conf: Both of the WebAppDeploy examples warpConn /examples and WebAppInfo /webapp-info can give out this warn message. If I removed them, then the apache can be started. So can anybody help me out with this problem. I guess it is due to some mis-configuration, but I really have no idea what is wrong. Any information will be highly appreciated! Thanks, Joe - 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: rename workers2.properties file?
Hi, Although I haven't heard of anyone doing this you could add in your httpd.conf: JkSet config.file /full/system/path/to/workers2.properties I don't see why you couldn't change that to anything you want. -e On Mon, 28 Jul 2003, Sullivan, Patrick wrote: With mod_jk it was easy to have a unique file name but with mod_jk2 I do not see a directive to change the file name from workers2.properties, can it be done? Thank you, Patrick Sullivan Centura Health This communication is for the use of the intended recipient only. It may contain information that is privileged and confidential. If you are not the intended recipient of this communication, any disclosure, copying, further distribution or use thereof is prohibited. If you have received this communication in error, please advise me by return e-mail or by telephone and delete/destroy it. - 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: Best Tomcat Book, Recommendations??? PART 2
Hi, I don't usually push books... people have different tastes. But I like the Wrox book. It's an administrators book. Basically how Tomcat is designed from an architecture standpoint (containers, contexts, valves, realms, what the directories are for, etc) and how to configure it (connectors, JDBC, JNDI, etc). It leaves out java and it assumes you know xml. Of course it's getting more and more out of date as we speak. I think Tomcat 6 will be out before a decent Tomcat 5 book hits the shelves. -e On Mon, 28 Jul 2003, Tony LaPaso wrote: Sorry, but I forgot to mention: I'm really only interested in Tomcat specifically, not how to program servlets/JSPs. Some of the TC books I've seen like to make themselves nice and plump by describing servlet programming, what HTTP is, what XML is, etc., etc. I don't need that extra fat. Thanks again... - 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: Need Help For Iplanet Tomcat Configuration
Hi, I'm not sure if cross posting like that was such a good idea... But since I just had to figure this out last week I will share what I learned. I had to play with this a bit befor I was able to get it to work. I was using Solaris so I can't help you with the correct version of the redirector DLL. I hope this will help. Object name=servlet ObjectType fn=force-type type=text/plain Service fn=jk_service worker=ajp13 /Object The documentation isn't entirely correct here. Put servlet in quotes. Otherwise iPlanet doesn't see the object name and the assigment you made in the default object section won't work (you will get that error once you fix the stuff below). It also wouldn't hurt to put text/plain in quotes. workers.worker file workers.tomcat_home=C:\Tomcat workers.java_home=C:\jdk1.3 ps=\ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I just used to last four lines of what you have here. But that shouldn't matter. I tried this url http://localhost:81/examples/servlet/HelloWorldExample [25/Jul/2003:12:59:08] warning ( 212): for host 127.0.0.1 trying to GET /examples/servlet/HelloWorldExample, send-file reports: can't find C:/iPlanet/Servers/docs/examples/servlet/HelloWorldExample (File not found) That's exactly what it is doing. So you have to fool it. In your iPlanet docroot create the directory examples. iPlanet will see it and think it's there. Then when it tries to serve it the changes in obj.conf will kick in and send the request to tomcat. In some cases you will find that you have to touch (create 0 length files) in some cases to fool netsacpe into thinking it's there. Usually it's just index.jsp. I also connect to the Coyote/JK2 AJP1.3 connector on the tomcat side and not the older AJP 1.3 connector. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: buiding 4.24
Hi, If you go to the top level of the tomcat-connectors tree and do a find ./ | grep mod_jk you don't see a mod_jk2.so somewhere? That's really odd. Time for science: :) cd /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/ ./configure --with-apxs2=/path/to/apxs make (it has to be GNU make) cd /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2 bash-2.04$ ls -l mod_jk2.so -rwxr-x--x 1 users 2554976 Jul 25 09:30 mod_jk2.so Hmm. I just did that and it worked for me. It's interesting that you aren't generating the file. -e On Fri, 25 Jul 2003, Mark F wrote: Eric J. Pinnell wrote: || Hi, || || For the JK2 connector you should use the 2.0.2 source. || || Then compile with: || || ./configure --with-apxs2=/path/to/apxs || || then make || || then mod_jk2.so should be in down in the build directory. || || You need to manually copy the file to the apache modules directory. || || The complete step by step is in the archives. But that's the long || and short of it. || || -e || || On Thu, 24 Jul 2003, Simon Pabst wrote: || ||| hmm weird, mod_jk2.so should be there after a successful make with ||| no errors, what connector source release did you download? ||| ||| What was your jk2 configure? ||| If you used --with-apache2 instead of --with-apxs2 then mod_jk2 ||| won't be built as .so but instead as static module into httpd core. ||| ||| Maybe its somewhere else, try a find: ||| find /path/to/jk - name '*.so' ||| ||| At 14:23 24.07.2003 -0400, you wrote: ||| Ugh...I've seen this posted before but I don't use mod_jk2 so I didn't pay much attention to the answer. It will be in the archives somewhere, or perhaps someone else has the answer. John Mark F wrote: | The compile completed with no problems but there is no 'make | install' it says to remember to execute | 'libtool --finish /usr/local/apache/modules' so I did but it | didn't do anything that I can see. Also I can't find a | mod_jk2.so. in the jk/build/jk2/apache2 directory there is | mod_jk2.o but no mod_jk2.so ? Thanks, | -Mark | Source is 2.0.2, Platform Solaris 8 Still doing the same thing. My configure is simply: ./configure --with-apxs2=/usr/local/apache/bin/apxs Everything but a .so file is created in the build directory. Thanks, -Mark - 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_jk on Solaris - has anyone actually ever built it?
You might want to try JK2. I am able to build mod_jk2.so on Solaris 7 and 2.6 and 7 are pretty close to each other. You might want to give it a whirl. -e On Fri, 25 Jul 2003, John Turner wrote: I built it for Solaris 8. Good luck building it for 6, it took me three days and 2 reinstalls of the OS to get it to build on 8. John Max Jester wrote: Help! I am having trouble building mod_jk.so on Solaris 2.6 - and the binary directory for 2.6 at the jakarta site is empty. Has anyone actually succeeded in getting it built from source? The instructions don't seem to refer to the actual directory layout. Or, failing that, can anyone point me to an ftp site that has the built module? Thanks Max - 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: iPlanet and Tomcat integration on solaris
a) The remoteUser is not being passed from iPlanet to Tomcat. My JSPS are reading the remoteUser using the request.getRemoteUser() method. I am using the RequestDumperValve to see what is being passed to Tomcat. The remoteUser value is invariably set to null. I looked at the source code for the version of nsapi_connector.so that I built from jakarta-tomcat-connectors-4.1.24.src. It looks to be assigning to remoteUser the value of auth-user in the request-vars pblock. this value is definitely set in that pblock. Not sure why it doesn't get set in the request sent to Tomcat If it's any consolation we have that problem too. We are trying to concoct a solution now. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working behind a NAT?
I still think you are barking up the wrong tree here. If I had to guess I would say that 95% of all internet faceing Tomcat servers are behind some kind of NAT device. One thing to consider. NAT only translates the IP in the IP header and doesn't change the data payload. So if you are, for whatever reason, using an IP address that is getting sent along in the payload and trying to redirect to it or whatever, NAT won't change that. Kinda how SQLNet doesn't like NAT devices. Because the users IP is embedded in the payload as part of the protocol. So it goofs up when the IP header and the IP in the payload don't match. But what you are thinking below is the first thing I would do. Make sure the machine on the outside see's the correct hostname/IP number and the machine on the inside see's that same hostname as the inside IP address. You can do that via the hosts file if you like. -e On Fri, 25 Jul 2003, Erin Dalzell wrote: For this particular Servlet call we are not accessing any databases. DTDs? Not really familiar with those...I will check. I don't think we are trying to resolve hosts. Here is something we got from our client: -- The sniffer log showed the NATed address in one of the http requests ... following along the line of tomcat not using a localhost for addressing requests even if they're local to the system ... What options are there to specify the address for tomcat under which to start ? It must perform a lookup on DNS to translate the address, can we use the /etc/hosts file to create a 'fixed' address that won't be affected by DNS ? This may not resolve it either ... as which one would you actually put in to allow both 'local' access vs 'outside' access ... -- Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 5:46 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? It shouldn't use high ports. Are you running any database services or other services? Are your dtd's not correct and its trying actually pull foriegn assets via http? Are you trying to resolve hosts in your access log? (or similar) Use your sniffer to see the type of request being performed on the hight port. -Tim Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working behind a NAT?
My question is, is that forward call a full http request? If so, what ip address will it use? I think that it is trying to use the 3.3.3.3 address and the NAT doesn't like it. Well ya. That's kinda what I've been saying. Don't hardwire the IP. So instead of using an IP use a hostname. For example www.myapp.com = 3.3.3.3 on the external DNS. Then on your Tomcat systems host file (or internal DNS) put 2.2.2.2 www.myapp.com So when/if Tomcat need to use the URL for some reason when it goes to resolve the IP it gets the correct internal IP number. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TCP/IP issues with tomcat 4.1.24
Hi, That's interesting. I haven't seen it but it's interesting. Just curious, when the systems is exhibiting this behavior and you try to bring up a browser and re-inact a testing scenerio what happens? Is the system still responsive? Can you duplicate the error by hand? When you get that error what is the user experience? I spend about as much time debugging testing tools as I do application systems. So I'm wondering what could be so different in 4.1.24 that would cause that. I think it's odd that it would goof up on the TCP because that's handled at a much lower level. It's also odd that the clients exit out instead of chalking it up as an error and restarting themselves. That just might be a limitation of your testing tool though. Check on the health of your testing tool (RAM, CPU) when it cracks up. I don't know what kind of system you are using but make sure to check the basics. Make sure you have forced the systems (and the testing tools and any switches in between) interfaces at 100 FDX (no auto-negogiate) and tune the TCP settings. That makes a world of difference. -e On Fri, 25 Jul 2003, McClure, Timothy J(IndSys, GE Interlogix) wrote: We have a testsuite that sends 3 messages per second from 100 clients. With Tomcat version 4.1.18 this test runs for 24 hours. With tomcat 4.1.24 the clients all eventually exit with a socket connect error after 2 hours. Does anyone know why this might be happening? Any help would be greatly appreciated Tim McClure [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: Env var serverRoot or JkSet config.file
Hi, I use: JkSet config.file /usr/local/apache/conf/workers2.properties you have to have the full system path in there. You can't shortcut it like you can in a LoadModule statement. (i.e. modules/mod_jk2.so) -e On Thu, 24 Jul 2003, [iso-8859-1] Ivan Montoro wrote: Nicolas, Simon, many thanks for the previous response. To everybody else, hi again! I'm a bit lost about configuration files with Apache 2.0+Tomcat 4.1+mod_jk2... I was trying to lower workers2.properties logger level to ERROR instead of INFO/DEBUG, but at startup Tomcat told me: (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers2.properties I was using JkSet config.file at httpd.conf just after LoadModule mod_jk2. Following instructions from Nicolas' documents I did a export serverRoot=/opt/apache2/ and everything worked fine. Did Tomcat/Apache ignored my order or I was doing something wrong? I would rather prefer to have a config line rather than another line in my mega shell script... Thanks everybody Ivan Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - 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: Env var serverRoot or JkSet config.file
Hi, In your jk2.properties on the tomcat side comment everything out. Since tomcat isn't running jk (apache is) tomcat doesn't need to know about it. I think that's where tomcat is getting the bad info from. -e On Thu, 24 Jul 2003, [iso-8859-1] Ivan Montoro wrote: Thanks Eric, I forgot to mention is just set after mod_jk2 LoadModule with full path, and file exists LoadModule jk2_module modules/mod_jk2.so JkSet config.file /opt/httpd/conf/workers2.properties --- Eric J. Pinnell [EMAIL PROTECTED] wrote: Hi, I use: JkSet config.file /usr/local/apache/conf/workers2.properties you have to have the full system path in there. You can't shortcut it like you can in a LoadModule statement. (i.e. modules/mod_jk2.so) -e On Thu, 24 Jul 2003, [iso-8859-1] Ivan Montoro wrote: Nicolas, Simon, many thanks for the previous response. To everybody else, hi again! I'm a bit lost about configuration files with Apache 2.0+Tomcat 4.1+mod_jk2... I was trying to lower workers2.properties logger level to ERROR instead of INFO/DEBUG, but at startup Tomcat told me: (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers2.properties I was using JkSet config.file at httpd.conf just after LoadModule mod_jk2. Following instructions from Nicolas' documents I did a export serverRoot=/opt/apache2/ and everything worked fine. Did Tomcat/Apache ignored my order or I was doing something wrong? I would rather prefer to have a config line rather than another line in my mega shell script... Thanks everybody Ivan Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - 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] Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - 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 not working behind a NAT?
Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not working behind a NAT?
Heh.. ya. That didn't all come out right. Use a host name instead of IP numbers and have internal and external DNS set up with the internal and external IP numbers of the host respectively. That's better. -e On Thu, 24 Jul 2003, John Turner wrote: Made sense to me. :) John Eric J. Pinnell wrote: Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - 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: buiding 4.24
Hi, For the JK2 connector you should use the 2.0.2 source. Then compile with: ./configure --with-apxs2=/path/to/apxs then make then mod_jk2.so should be in down in the build directory. You need to manually copy the file to the apache modules directory. The complete step by step is in the archives. But that's the long and short of it. -e On Thu, 24 Jul 2003, Simon Pabst wrote: hmm weird, mod_jk2.so should be there after a successful make with no errors, what connector source release did you download? What was your jk2 configure? If you used --with-apache2 instead of --with-apxs2 then mod_jk2 won't be built as .so but instead as static module into httpd core. Maybe its somewhere else, try a find: find /path/to/jk - name '*.so' At 14:23 24.07.2003 -0400, you wrote: Ugh...I've seen this posted before but I don't use mod_jk2 so I didn't pay much attention to the answer. It will be in the archives somewhere, or perhaps someone else has the answer. John Mark F wrote: The compile completed with no problems but there is no 'make install' it says to remember to execute 'libtool --finish /usr/local/apache/modules' so I did but it didn't do anything that I can see. Also I can't find a mod_jk2.so. in the jk/build/jk2/apache2 directory there is mod_jk2.o but no mod_jk2.so ? Thanks, -Mark - 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: crazy iPlanet/Tomcat question.
Hi, Thanks. I forgot about that... I had to touch an index.jsp file in the Netscape docroot to trick it into thinking a file was there. Now it works. Netscape - iPlanet - SunONE. That's marketing for ya... :) -e On Mon, 21 Jul 2003, Bill Barker wrote: I haven't used iPlanet since it was called Netscape ;-). I believe that you have to 'index.jsp' an index file to iPlanet. You could also try enabling the auto-config and compare that to what you have. Follow the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig and s/ApacheConfig/NSConfig/. Eric J. Pinnell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have seached and looked through the archives with no luck. I have also experimented quite a bit and have a question: I currently have iPlanet 4.1 connected to Tomcat 4.1.18 via the NSAPI redirector on Solaris. However it will not load the default page (welcome page) such as index.jsp. If I put the full URL in (http://host.com/context/index.jsp) it works but if I just put in the context without the index.jsp I get a page not found error. Anyone seen this before? BTW I have iPlanet set to server index.jsp as a default page and my welcome page in my web.xml is index.jsp. I'm wondering if there is something I can do with the connector/connector config or if I have to configure a redirect through the server. Thanks for any help in advance! -e obj.conf: Init fn=load-modules funcs=jk_init,jk_service shlib=/apps/netscape/iws/http s-webshares/plugins/nsapi_redirector.so Init fn=jk_init worker_file=/apps/netscape/iws/https-webshares/config/workers .properties log_level=debug log_file=/apps/netscape/iws/https-webshares/logs /nsapi-redirector.log Object name=default NameTrans fn=assign-name from=/servlet/* name=servlet NameTrans fn=assign-name from=/examples/* name=servlet NameTrans fn=assign-name from=/newcontext/* name=servlet snip Object name=servlet ObjectType fn=force-type type=text/plain Service fn=jk_service worker=worker1 /Object workers.propeties worker.list=worker1 worker.worker1.port=48109 worker.worker1.host=localhost worker.worker1.type=ajp13 - 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, jk2 and apache
Hi, Look through the archives and you will find numerous discussions on this subject. -e On Sun, 20 Jul 2003, Seamus Hanly wrote: Hi, I am trying to set up Apache/2.0.40 to talk to Tomcat 4.1.24 using jk2 connector on Red Hat 9.0. This is my first time setting something like this up so can you please tell me where I can get a version mod_jk2.so compatible with Apache/2.0.40 ? or should I use mod_jk.so? or some other connector? Thanks! __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
crazy iPlanet/Tomcat question.
Hi, I have seached and looked through the archives with no luck. I have also experimented quite a bit and have a question: I currently have iPlanet 4.1 connected to Tomcat 4.1.18 via the NSAPI redirector on Solaris. However it will not load the default page (welcome page) such as index.jsp. If I put the full URL in (http://host.com/context/index.jsp) it works but if I just put in the context without the index.jsp I get a page not found error. Anyone seen this before? BTW I have iPlanet set to server index.jsp as a default page and my welcome page in my web.xml is index.jsp. I'm wondering if there is something I can do with the connector/connector config or if I have to configure a redirect through the server. Thanks for any help in advance! -e obj.conf: Init fn=load-modules funcs=jk_init,jk_service shlib=/apps/netscape/iws/http s-webshares/plugins/nsapi_redirector.so Init fn=jk_init worker_file=/apps/netscape/iws/https-webshares/config/workers .properties log_level=debug log_file=/apps/netscape/iws/https-webshares/logs /nsapi-redirector.log Object name=default NameTrans fn=assign-name from=/servlet/* name=servlet NameTrans fn=assign-name from=/examples/* name=servlet NameTrans fn=assign-name from=/newcontext/* name=servlet snip Object name=servlet ObjectType fn=force-type type=text/plain Service fn=jk_service worker=worker1 /Object workers.propeties worker.list=worker1 worker.worker1.port=48109 worker.worker1.host=localhost worker.worker1.type=ajp13 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need a working mod_jk2 for RH Apache 2.0.40
I think one way is to remove the rpm from redhat and install the httpd server from apache.org and not use package management . But I was hoping to avoid if I can . That's the best thing you can do. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with performance issue - Tomcat 4.1.X
ditto. There is no sure fire way from the system aspect (CPU, run queue, etc) that will tell you what's going on. You need to peek inside the VM and see what it's doing. -e On Fri, 11 Jul 2003, John Turner wrote: Like I said, I'm no guru. Sounds like you need to bust out a profiler. John On Fri, 11 Jul 2003 20:34:40 +, [EMAIL PROTECTED] wrote: But again, the mx is only setting the heap size, not the whole JVM. The thread stack is controlled with an entirely different parameter for example. I found this with a quick search: The -Xmx setting controls the maximum size of the Java heap. However, the Java heap represents only part of the memory taken up by a running Java application. There is space required for code, data space used by the JIT, plus any memory malloced by native code drivers associated with the application running in the JVM. So the overall memory picture for Java applications turns out to be more complex than just the -Xmx value. -- Dave I have no idea, but based on past experience, if you are using more RAM than you've allocated, then you have a swap situation. If the max setting wasn't an actual max, and you could blow past it whenever you needed it, why on earth would you need it in the first place? John On Fri, 11 Jul 2003 20:24:48 +, [EMAIL PROTECTED] wrote: I definitely don't know enough about how the memory settings in java to be of much use on this part. I do not know if we've tried 512. We probably should. As for the 327, is that actually unreasonable? The mx setting specfies the maximum heap size. Can the thread stack (specified using -Xss, which we're not using) be taking up the remaining 75MB? We have about 40 threads started right now. Like I said, I don't know enough about java's memory allocation, but I didn't think that the -Xmx set the maximum allowable total memory for the JVM. Am I mistaken? Even if memory were a problem, which it may be, would that account for a 20 second delay between serving a page and closing the connection? Remember that we currently have no load and only a couple users on the system. -- Dave I'm certainly no guru, but if you are setting a max of 256 and then your app is soaking up 327 with no load whatsoever, I'd say you have a problem. Have you tried a max of 512? John On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] wrote: We are currently starting up with -Xmx256M. Java is currently using about 327MB and has been that way for hours. I haven't really seen any fluxuations at all, which leans me away from the garbage collection issue. I created a hello.jsp, which is completely separate from our application. Same results. It takes about 30 seconds to return. In the hello.jsp, the results of the page return instantly to the browser, but then it's as if tomcat just won't close the connection to the browser. The page is there, fully rendered, but just sits there waiting for the server to tell it it is done. Is there some way that the tomcat connections could be failing to terminate properly? Our current maxProcessors = 75 acceptCount = 10 (which is probably low but right now we have only a couple users on the system). We're not using 1.4 so those options are out. -- Dave Could be a Memory Leak/Garbage Collection issue (we had a similar problem with a memory intensive app), maybe your heap is too small and java is running many Full GC's. Start java with -verbose:gc and look in tomcat/logs/catalina.out for Garbage Collections. (set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh to do this in Tomcat) Try using a bigger Heapsize (though if you've got a Memory Leak that will only delay your problem) or set initial Heapsize to same as maximum, for example 128MB: -Xmx128m -Xms128m Modify the Connector you are using to access Tomcat (in tomcat/conf/server.xml) and try using more Tomcat Processors (maxProcessors=XX) or a bigger accept queue length (acceptCount=XX) (test value for acceptCount: at least concurrent users x 3) Try using another method of garbage collection, if you're using JDK 1.4.1 i'd try either ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines): -XX:+UseConcMarkSweepGC -XX:+UseParNewGC or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap usage analyzing :-) : -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy A good article on GC can be found here: http://wireless.java.sun.com/midp/articles/garbagecollection2/ At 18:04 11.07.2003 +, you
Re: Another JK2 question
Hi, mod_jk and JK2 are configured totally different from each other. No more JkMount's or anything. Since I'm not a pro at mod_jk I can't tell you what's exactly is still supported but just by looking at it I'd say slim to none. -e On Sat, 12 Jul 2003, Jay Garala wrote: Folks, Maybe i should try this before posting(hmm) .. Does JK2 support the same directives as JK in Apache? I know of JkSet and Jk(??)URI. But how about the others?? Thanks Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2
Hi, I use unix sockets when both apache and tomcat are on the same server because they are fast. Although before I install it I always ask myself if they are on the same box do I need to run Apache at all? If you aren't using any of the tricked out features of Apache you would be better off just having tomcat listen on port 80. If they are on seperate machines I use TCP sockets. This is for a typical serious production setup where you have a firewall between Apache and Tomcat. -e On Fri, 11 Jul 2003, Nicolas wrote: Hi i've got tomcat 4.1.24 and apache 2.0.47 utilizing JK2 and currently connected over normal sockets. there are other methods like APR sockets, UNIX sockets and over JNI channel. how do they in short work and which one is solution for a server (linux) where apache and tomcat run on both servers, and which would be the best one if they'd run on different ? and last question do they work at all since http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19917 regards, nicolas - 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]