Re: [OT] login form on directly referenced page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeroen Kransen wrote: | Hello, | | I think I already found the answer elsewhere (it is not possible!), | but I would be very frustrated and disappointed, and that's why I'm | trying here. What I want is to have a login form on the (publicly | accessible) main page of my web site, so that a user can enter | username/password whenever he feels like it, and gets more options after | being logged in. When I put the form on the page, with j_usermane, | j_password and j_security_check, I get a message Invalid direct | reference to form login page. This is true, because the login page in | this case is the main page. How can I solve this problem, or what are | the cleanest possible work-arounds? Hi Jeroen, You can't load the login page directly if you are using the realm implementations in Tomcat, AFAIK. But you can use something like SecurityFilter to give you that ability. I did a little write-up about it here : http://cymulacrum.net/writings/secfil/t1.html. Hope this helps! - -- ~ -- ~ Pascal Chong -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCLQG6mVdpiRJSldgRAljzAKCucRQMvBthQVqrInuAWo7TQNdH8QCg0N6M zMZvtiS5i0/3a1O2cUkQSUg= =dhdv -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc.exec error on FC3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill Barker wrote: | Chong Yu Meng [EMAIL PROTECTED] wrote in message | news:[EMAIL PROTECTED] | | The daemon starts up ok, but when shutting down, I get this error: | | Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause | INFO: Pausing Coyote HTTP/1.1 on http-8080 | jsvc.exec error: Service exit with a return value of 143 | | When I do a shutdown using the shutdown.sh script, Tomcat shuts down | gracefully. | | Is there a way to shutdown jsvc gracefully? | | Yes. Don't use the version that ships with Tomcat. Hi Bill, I just downloaded and compiled the source version from the Commons website (http://www.apache.org/dist/jakarta/commons/daemon/binaries/). Unfortunately, I still get the same error. Any ideas? Perhaps you could point me to the site you downloaded your jsvc sources from, because the date stamp on the two sites I visited were different -- although the results were the same. - -- ~ -- ~ Pascal Chong -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCJaUgmVdpiRJSldgRAo8/AJ0QnHZ9OAiWCnYZ307u+2f1MyMOAwCgksRt h0KffKXJ+tk+cU3JXD3TT7U= =Vgbu -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsvc.exec error on FC3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm trying to configure jsvc to work on a Fedora Core 3 system running Blackdown Java 1.4.2. I managed to do a configure and compile jsvc all right. I used the Tomcat5.sh script to start up and shutdown jsvc. The daemon starts up ok, but when shutting down, I get this error: Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 jsvc.exec error: Service exit with a return value of 143 When I do a shutdown using the shutdown.sh script, Tomcat shuts down gracefully. Is there a way to shutdown jsvc gracefully? - -- ~ -- ~ Pascal Chong -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCItLzmVdpiRJSldgRAvmvAKCm9a0bCgMM/MyqAK3Z+didFbljDACeMLCI mTEsiSSYMKZjLouLXON4/Eo= =L0kT -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing tomcat 4.1.27 on linux
I've written a kind of quick start guide that hopefully will be useful to you. You can find it here : http://cymulacrum.net. Just scroll down and look for the Tomcat 4 on Linux link. I'm currently updating my Tomcat 5 write-up with help from some volunteers. I've stopped updating my Tomcat 4 write-up, so if you find anything there that doesn't work, please post to this mailing list. Regards, pascal chong Stephen Charles Huey wrote: Sounds good to me! Usually when we move Tomcat to a new Windows machine, we just use that same executable zip (jakarta-tomcat-4.1.27.exe) to install Tomcat on the new machine, and then copy over our directories from the original machine to replace the Tomcat directory that got created. I know this might be a really dumb question, but will that .exe file run and install everything on the Linux box, or will I have to use jakarta-tomcat-4.1.27.zip and extract everything? It's all slowly and hazily making sense...I hope...on Red Hat I won't have to install it quite as much as Windows which needs to put things into the registries, etc, right? So I just extract it and put some kind of symbolic link to the Tomcat executable in usr/local/bin or something like that, huh? But will that be enough to mimic the functionality we usually have, since typically on Windows we run it as a service? Sorry for my rambling... - Original message - From: Robert F. Hall [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Date: Thu, 12 Aug 2004 15:21:24 -0700 Subject: Re: installing tomcat 4.1.27 on linux Howdy, Tomcat is written in Java and is OS independent, you don't need a linux specific install. We have the same Tomcat install running on Solaris, Linux, and Windoze. -Robert Stephen Charles Huey wrote: We're moving Tomcat over to a Linux box, and we're under pressure to get it done as quickly as possible and put it into production right away even though none of us knows Linux all that well beyond me using Solaris back in my school days! So, I'm looking for Tomcat 4.1.27 for Linux, and I don't see that available here: http://jakarta.apache.org/site/binindex.cgi However, in searching around, I found this, and I'm wondering if this is the right thing for me to be using: http://rpmfind.net/linux/RPM/suse/9.0/i386/suse/i586/jakarta-tomcat-4.1.27-63.i586.html I've heard about RPM only in the last day or so when looking around for utilities for Linux. I'll probably want the RPM version for Tomcat, right? This page talks about RPM: http://www.rpm.org/ But I'm wondering if it comes with Red Hat 8 (I can't tell yet--my boss is installing Red Hat across town and I'm just doing my homework so I'm ready to roll when he's done with all the things he has to do on his end). Thanks, Stephen - 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] -- === Pascal Chong email: [EMAIL PROTECTED] web: http://cymulacrum.net /\ \ / ASCII ribbon campaign X against HTML mail / \ and postings === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat4 won't start
Hi Matt, I almost deleted your message, because today I was inundated by spam ! Not sure if you are starting Tomcat from the command prompt. I know that when you install on Win9x, you can get some funky errors. This is a hint from another site that I can't seem to get access to: You may need to extend the environment space. Click on *Windows* Start button, then Run, then type sysedit. Add the following to the C:\CONFIG.SYS: shell=c:\*windows*\*command*.com /p /e:4096 Also checked out this URL: http://johnturner.com/howto/winxp-howto.html Hope this helps !! Regards. pascal Matt Buffington wrote: Hello all. I am a new user of Tomcat4, running on a Windows 2000 server. I am a Canto Cumulus user; Tomcat4 is used to publish my image database. I have upgraded all my software recently (including Tomcat4), and after following ALL of the suggestions of Canto, I cannot get Tomcat4 to start (whether using the startup.bat file or manually starting through the Manager. I get an error message that tells me Windows cannot start Tomcat4, and this may be a Windows error, and I should see the administrator. I get no log files to check. I have installed the JRsdk 1.4.2_05, and verified that JAVA_HOME is set correctly. Has anyone encountered this type of error, and if so, what sort of solutions are needed? Thanks for any help, Matt M.L. Buffington Dept. of Entomology UC Riverside, Riverside, CA 92521 USA 909-787-5740 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Pascal Chong email: [EMAIL PROTECTED] web: http://cymulacrum.net /\ \ / ASCII ribbon campaign X against HTML mail / \ and postings === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: horrible problems with TC4.1 under RedHat Advanced Server
I think RHAS is running NPTL. If you're using IBM's Java 1.4, 1.3.x or earlier and RH9, RHEL, RHAS , you need to set LD_ASSUME_KERNEL=2.2.5. If you're using IBM's Java 1.4.1 or better on RH9, RHEL (not sure about RHAS), you don't need to set LD_ASSUME_KERNEL at all If you're using IBM's Java 1.4.1 or better on Fedora Core 2, you definitely need to upgrade your kernel version to 2.6.6-1 or better. Though, if you're using the latest 2.6.6-1.435.2.3, you may get some strange problems if you're running on a Thinkpad, so use the earlier 2.6.6-1.435 (if you can do without the security update). I have not used Sun's Java on Red Hat systems, so I cannot say what will happen. I have used Blackdown's 1.4.1, compiled with gcc 3.2 on FC2 and they work fine, even on the stock install kernel (though freezes can still happen). Although benchmarks (Volano Report) show Blackdown to be slower and possibly less scalable, I find that it performs on a wider range of Linux platforms. I find the following procedure helps me to identify the problem: After installing Java on your system, just execute java -version. If you get a segmentation fault, you should try setting LD_ASSUME_KERNEL to 2.2.5, then 2.4.1. 2.2.5 bypasses the NPTL. See which setting works for you. If you don't get a segmentation fault, try running the SwingSet2 application which should come with your Java distribution. On FC2's stock kernel, this can freeze your desktop so bad that you'll need to power down your system manually. Upgrade to the latest (or next to latest kernel) and you should be fine. There may be other problems I'm not aware of. Please post them here. I'm especially interested in hearing from people using the Sun JVM. Regards, pascal chong Peter Lin wrote: this is most definitely an issue with glibc, since I've seen it in the past on my machine. I've had it happen with Sun jvm and IBM jvm for redhat in the past. your best bet is to search the redhat mailing list for solutions to the problem. peter On Sun, 01 Aug 2004 10:54:51 -0700, David Rees [EMAIL PROTECTED] wrote: Steve Summit wrote, On 8/1/2004 6:22 AM: I've got a big, complicated web application (too complicated to go into the details of here), and I'm having problems moving from Red Hat 9 to Red Hat Advanced Server / Enterprise Server. (The move is for support reasons.) I suspect that there's some pernicious incompatibility between this version of Tomcat, this version of j2sdk, and the C libraries in these releases of RedHat. (When I built these machines, I think I had to manually install a C compatibility library to get Java to work at all.) There was a message to this list a month or so ago from Harald Henkel describing some similar-sounding problems, but it doesn't look like he got an answer. He mentioned setting LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it sounded like that only slightly ameliorated, but didn't fix, his problem. It's definitely some sort of JVM/OS issue, and not directly related to Tomcat. What glibc version are you running, are you running all errata for the system (up2date)? Also upgarde to the latest JDK, and finally, if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5. -Dave - 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] -- === Pascal Chong email: [EMAIL PROTECTED] web: http://cymulacrum.net /\ \ / ASCII ribbon campaign X against HTML mail / \ and postings === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there such a beast ? (virtual directories)
Hi Mike, Mike Curwen wrote: Hm... would that work in this case: host ... context docBase=/path/to/web-app/root/ path=/foo-app ... / context docBase=/some/other/path path=/images / /host I think this syntax would confuse Tomcat. I thought only one context tag is allowed ...? I could be wrong. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 ./configure problem/query
Tim Wills wrote: Sorry to say but I have gone through the whole process 3 times now (including re-installing Redhat itself) and I still get error 503 Service Temporarily Unavailable. I reckon it must be a permissions problem but where? I have tried the following: chmod 666 jk2.socket I tried changing the path to the file workers2.properties in httpd.conf. Doing this changes the error message to 404, page not found so the file workers2.properties is being read. I have done as instructed on permissions but i wonder if Apache still doesn't have any rights to call the Tomcat engine. I have Tomcat running fine as a standalone. Any further ideas? What user did you build Apache as? What group? Also, what user and group is Apache running under? Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tc 5.019, web app deployment location?
Hi David, I wrote a tutorial on Tomcat here : http://cymulacrum.net/writings/tomcat5/book1.html Hope this helps. Regards, pascal chong [EMAIL PROTECTED] wrote: I'm confused over terminology. The 'root' application seems to reside at ${catalina.home}/webapps/ROOT Logically then (with a tree analogy) other web apps would reside within that directory? Some of the documentation seems to imply they should be in ${catalina.home}/webapps/myapp, for instance. I.e. all reside directly beneath ${catalina.home}/webapps/ If there are alternatives, where is it specified please? From //tomcat-docs/config/host.html#Automatic%20Application%20Deployment Any XML file in the $CATALINA_HOME/conf/[engine_name]/[host_name] directory is assumed to contain a Context element (and its associated subelements) for a single web application. The docBase attribute of this Context element will typically be the absolute pathname to a web application directory, or the absolute pathname of a web application archive (WAR) file (which will not be expanded). Which implies that *where* they should be is quite flexible, but I'm unsure? Regards DaveP. snip here * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 ./configure problem/query
Tim Wills wrote: Reading your article more thoroughly, I am a bit confused on a number of matters. 1. Why am I seemingly editing Apache's Makefile (I assume from the directory you have given) and not mod_jk2? Does the apxs command read that file? 2. I checked Apache's make file and it has no reference to JK_LDFLAGS. 3. How do you actually know which apu-config? I have found 2 under /usr path being: /usr/local/apache2/bin /usr/local/httpd-2.0.49/srclib/apr-util/ I assume the top one ?? That's odd. Why would you have two different Apache directories under /usr/local ? Can you check if you have another Apache installed ? Try rpm -qa | grep httpd Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to tie Tomcat 4.1 with VisiBroker 6.0
arseny wrote: Hello, I need to tie Tomcat 4.1 with VisiBroker Standalone 6.0 and have no idea how to do that. Could anyone help me? Google is your friend : try http://www.google.com/search?q=visibroker+tomcatsourceid=mozilla-searchstart=0start=0ie=utf-8oe=utf-8 Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache2, Tomcat5 and mod_jk2 configuration problems
Hi Ryan, It sounds like an error similar to one Andrew Clute encountered on Red Hat Enterprise Linux 3 (apr_md5_final). I transcribed some of the steps he took here : http://cymulacrum.net/writings/tomcat5/a1375.html Can you test it first ? If it works, I would like to add a comment to the document that says that the steps apply to Red Hat 9 as well. Regards, pascal chong Ryan McConigley wrote: Greetings, I have a problem. I am trying to get Tomcat (5.0.25), Apache (2.0.49) and mod_jk2 (2.0.4) all to talk to each other under RedHat 9.0. So far I can get Apache up and working on port 80 and Tomcat works fine on port 8080. However, my users want to be able to use .jsp pages on their virtual hosts. I did have it working fine on the old machine we had (Redhat 7.3, Apache 1.3, Tomcat 4 and mod_jk) but we upgraded and now its not working. One thing I have noticed is when Tomcat starts up there is the message: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/httpd-2.0.49/modules/jkjni.so: /usr/local/httpd-2.0.49/modules/jkjni.so: undefined symbol: apr_md5_final I assumed I was getting this because Apache was not compilied in with apr support, so I recompiled it with --with-apr and --with-apr-util. Apache still works, but when I tried to recompile mod_jk2 it tells me now that my apxs can not be found, even though prior it was finding it ok and its quite clearly in the location specified. I'm not sure if that is a critical error or not or how to overcome it. I have been trying different compile options, but still not getting much luck. When you click on a .jsp page, all that happens is the browser just sits there continually loading. In the tomcat logs you get a line which says INFO: No next and thats it. Can anyone shed some light on my problem, before I do physical harm to the box in question. The configuration files are as follows: Also, can I have .jsp files enabled for some virtual servers and not for others, or is it an all or nothing affair? --worker2.properties # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/usr/local/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 #UNIX domain socket [channel.un:/usr/local/tomcat/work/jk2.socket] tomcatId=localhst:8009 debug=0 # define the worker #[ajp13:/usr/local/tomcat/work/jk2.socket] #chanel=channel.un:/usr/local/tomcat/work/jk2.socket [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Announce a status worker pstatus:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] [uri:projects.csse.uwa.edu.au/*.jsp] worker=ajp13:localhost:8009 [uri:perth-agentcity.csse.uwa.edu.au/*.jsp] worker=ajp13:localhost:8009 ---jk2_mod.conf (included in the apache.conf file)-- # Sample mod_jk2.conf 08-Feb-2004, located at: # http://www.gknw.com/development/apache/docs/win32/mod_jk2/mod_jk2x.conf # # Load the mod_jk2 module # LoadModule jk2_module modules/mod_jk2.so IfModule mod_jk2.c #--- # Set the Apache2 logger level #--- # JkSet2 logger level debug #--- # Set the alternate log file #--- # JkSet2 logger.file:0 file ${serverRoot}/logs/jk2.log JkSet2 logger.file:0 level debug #--- # Set the scoreboard file #--- # JkSet2 shm: file ${serverRoot}/logs/jk2.shm JkSet2 shm: size 1048576 #--- # Where to find the workers2.properties file #--- # #JkSet config.file ${serverRoot}/conf/workers2.properties #--- # Alternatively setup the workers here #--- # JkSet2 channel.socket:localhost:8009 info Ajp13 forwarding over socket JkSet2 status: info Status worker, displays runtime information JkSet2 workerEnv: logger logger.file:0 #--- # Configure the /jkstatus handler #--- # Location /jkstatus JkUriSet group status: JkUriSet info Map the /jkstatus handler to the Web server uri space /Location #--- # Configure Tomcat Example Applications
Re: Apache2, Tomcat5 and mod_jk2 configuration problems
Hi Ryan, I should have asked this earlier, but are you using the RPM version of Apache or compiling the source tarball ? I notice that your directory is /usr/local, which indicates that you are probably using the source tarball (for RH9 rpms, it would be /etc/httpd). If you are using the source tarball, there are a LOT of things that are different. I believe you are missing a package, hence the gdbm error. I cannot recall at the moment what the name of the package is -- can you do a search on rpmfind ? Another thing: apxs is located inside /usr/local/httpd-2.0.49 -- just do a find /usr/local/httpd-2.0.49 -name apxs to locate it. Did you do a Minimal install for Red Hat ? You will need to ensure that you have the necessary packages installed. See this for a short list : http://cymulacrum.net/writings/tomcat5/c875.html#JK2_INTEGRATION_SETUP You probably don't need apr and apr-util because you installed Apache from source. Regards, pascal chong Ryan McConigley wrote: At 10:09 PM 23/06/2004 +0800, you wrote: Hi Ryan, It sounds like an error similar to one Andrew Clute encountered on Red Hat Enterprise Linux 3 (apr_md5_final). I transcribed some of the steps he took here : http://cymulacrum.net/writings/tomcat5/a1375.html Can you test it first ? If it works, I would like to add a comment to the document that says that the steps apply to Red Hat 9 as well. Regards, pascal chong Thanks for that. I gave that a whirl, putting in the extra library and that solved the problem of the undefined symbol apr_md5_final error, but now I'm getting the following error instead: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/httpd-2.0.49/modules/jkjni.so: /usr/local/httpd-2.0.49/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno Which would appear that that linked library isn't correct. Any hints? Ryan McConigley wrote: Greetings, I have a problem. I am trying to get Tomcat (5.0.25), Apache (2.0.49) and mod_jk2 (2.0.4) all to talk to each other under RedHat 9.0. So far I can get Apache up and working on port 80 and Tomcat works fine on port 8080. However, my users want to be able to use .jsp pages on their virtual hosts. I did have it working fine on the old machine we had (Redhat 7.3, Apache 1.3, Tomcat 4 and mod_jk) but we upgraded and now its not working. One thing I have noticed is when Tomcat starts up there is the message: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/httpd-2.0.49/modules/jkjni.so: /usr/local/httpd-2.0.49/modules/jkjni.so: undefined symbol: apr_md5_final I assumed I was getting this because Apache was not compilied in with apr support, so I recompiled it with --with-apr and --with-apr-util. Apache still works, but when I tried to recompile mod_jk2 it tells me now that my apxs can not be found, even though prior it was finding it ok and its quite clearly in the location specified. I'm not sure if that is a critical error or not or how to overcome it. I have been trying different compile options, but still not getting much luck. When you click on a .jsp page, all that happens is the browser just sits there continually loading. In the tomcat logs you get a line which says INFO: No next and thats it. Can anyone shed some light on my problem, before I do physical harm to the box in question. The configuration files are as follows: Also, can I have .jsp files enabled for some virtual servers and not for others, or is it an all or nothing affair? *snip* -- Ryan McConigley - Systems Administrator _.-, Computer Science University of Western Australia.--' '-._ Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089 _/`- _ '. [EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan ''._`.. \ ` \; You're just jealous because the voices are talking to me;_\ - 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]
[ANN] : Tomcat 5 on Linux Step-By-Step
The document has been updated. Contributions and Help: - Andrew Clute : Building mod_jk2 on Red Hat Enterprise Linux 3 (resolving the 'undefined symbols: apr_md5_final ' error) - Patricia Karsten : Eclipse + Tomcat + Tomcat Deployer - Trevor Butler : Configuring mod_jk2 and Apache-Tomcat integration on Mandrake - Josh Rehman : Deploying web applications (using the context descriptor) Changes: - Deploying web applications : the section now describes using the context descriptor instead of adding Context entries directly into the server.xml. This revision was thanks to input from Josh Rehman. - Warnings added for Fedora Core 2 -- users, please update to latest kernel to avoid hangs. Additions: - Reverse proxy method of integrating Apache and Tomcat 5 I know that some people have been mirroring my document without asking for my permission. I'm not going to come after you, don't worry, but I would appreciate it if you would just ask me about it. I probably won't say no, because I want to keep traffic on my site down to an affordable level. But please sync with the latest document version, so I don't get emails asking about stuff I already amended or deleted. The latest version is always at http://cymulacrum.net (look for the Tomcat 5 link). This document is also mirrored at http://www.connecties.com/cymulacrum/tomcat5/book1.html (thanks go out to Werner van Mook for his generosity! The latest version should be on its way over to that site soon). If this document was useful to you, please drop me an email or send me something from my Amazon.com wish list. Disclaimer: this document is not an official publication of the Apache group nor any of its affiliates. This document is a compilation of unofficial notes, and sometimes highly subjective perspectives. This document is provided AS IS, WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You use the information contained in the document AT YOUR OWN RISK. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question
Hi Angelo, Please read my write-up on Tomcat 5 here : http://cymulacrum.net/writings/tomcat5/book1.html I am currently updating the document, but what you need now is right there. Regards, pascal chong [EMAIL PROTECTED] wrote: I put my web application under webapps... (moved the entire subtree of my application) now what do i do to have it running? How do i connect to it? Angelo Hi, Didn't we discuss this last week? ;) Anyways, don't put your webapp under webapps/ROOT: put it under the webapps folder itself. Put all your classes in packages to establish a good habit. Use explicit imports for your classes unless they're in the same package as the class using the imports. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 10:39 AM To: tomcat-user Subject: question Question, please. I have a web application... named matrici/web so i have a tree like this matrici/web/ -many jsp files -WEB-INF/ --web.xml --classes/ --lib/ my application is under $CATALINA_HOME/webapps/ROOT I put my extern class, CreaServizio.class in WEB-INF/classes/ is it right? do i have to create a package for that class? or do i have to use an explicit import instruction? It returns me an error cannot resolve symbol symbol : variable CreaServizio CreaServizio is a class Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connecting Tomcat and Apache
Hi Graeme, You need to install gcc. Regards, pascal chong Graeme wrote: Hi all, when I try this command: ./configure --with-apxs=/usr/sbin/apxs I get the following output. How can I sort out this C compiler? [EMAIL PROTECTED] native]# ./configure --with-apxs=/usr/sbin/apxs checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. [EMAIL PROTECTED] native]# Cheers, Graeme - Original Message - From: David Goldschmidt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 17, 2004 9:26 PM Subject: Re: Connecting Tomcat and Apache Maybe you need to cd to the $CONN_SRC_HOME/jk/native directory first? Then do the ./buildconf.sh command locally within that directory? DaveG Graeme wrote: Evening all, I'm trying to connect Tomcat and Apache, I've been following this tutorial: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html In order to run the buildconf.sh I installed libtool, httpd-devel, autoconf and automake because I found on a site that redhat 9 users need httpd-devel, the rest are dependencies. After I installed all of this and tried to run the buildconf.sh script I got this: [EMAIL PROTECTED] root]# $CONN_SRC_HOME/jk/native/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 [EMAIL PROTECTED] root]# How do I sort this out? I'm a bit lost :( Cheers in advance, Graeme :) - 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.x and RHEL3.0 problem
Hi Eyup, If you are using JDK 1.3.x, you will need to set an environment variable: export LD_ASSUME_KERNEL=2.2.5 I have written something about this here : http://cymulacrum.net/writings/java/ibm-java.html#APPENDIX_A I do not work for IBM or Sun or Red Hat, so please do not complain to me. Regards, pascal chong Eyup TEKIN wrote: hi jdk1.3.x rhel3.0 tomcat4.1.x and mod_jk2 in redhat bugzilla they say that there is a bug.and advice a solution but i coulnt succeed to solve the bug.is there anybody solve it? i dont have a chance to paste error thanks sincerely - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 4:43 PM Subject: Re: tomcat 4.1.x and RHEL3.0 problem On Wed, Jun 16, 2004 at 04:43:18PM +0300, Eyup TEKIN wrote: : is there any bug solution with tomcat 4.1.x and rhel3.0 : it gives jdk error Maybe. Share the error, and someone may share a more thorough answer. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fedora Core 2 and mod_jk2
Hi Lars, You're lucky ! My FC2 system locks up hard when running any kind of Java. Complete freeze. I have to reboot the computer using the power switch because the keyboard doesn't work. Apparently, there is a known problem with running Java on FC2. See this : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121902 I read somewhere that a possible work around is to use the i586 kernel instead of the i686 one. Or you could try with the testing kernel released recently, though the changelog doesn't mention a fix for Java yet. Regards, pascal chong Lars Nielsen Lind wrote: Hi. I have problems with mod_jk2 2.0.4 and Fedora Core 2. I use Jakarta-Tomcat 4.1.30, Apache 2.0.49, OpenSSL 0.9.7d and J2SDK 1.4.2_04. I am able to execute *.html files from the server - but I cannot execute JSP files. Previously I have used mod_jk2 2.0.2 and Fedora Core 1. I used to compile mod_jk2 this way: 1.) ./buildconf.sh 2.) /configure --with-apxs2=/opt/apache-2.0.49/bin/apxs --with-tomcat41=/opt/jakarta-tomcat-4.1.30 --with-java-home=/opt/j2sdk1.4.2_04 --with-jni 3.) make Are the any known problems that I should be aware of? Any one that have the/a solution? Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? SUCCESS!!
Excellent Andrew !! Excellent news ! Sorry I couldn't be more help -- I've been down with a migraine caused by the terrible heat the whole of Sunday. Can I include this inside my document ? (also, do you know of any migraine medicine that works ?) Andrew Clute wrote: Well, I finally got it work! It took piecing somethings together, but here is what I did... On RHEL3 with pretty much stock everything. my configure: ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib --with-tomcat-41=/usr/local/jakarta-tomcat-4.1.30 --with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni Then the key to getting libarputil linked into libjkjni.so: After running .configure, I modified the makefile inside of ./server/apache2. I changed the following block: ifdef APR_LIBDIR_LA JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt else JK_LDFLAGS=-lcrypt ${APR_LIBS} endif to: ifdef APR_LIBDIR_LA JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt else JK_LDFLAGS=-lcrypt ${APR_LIBS} -laprutil-0 endif (NOTE: addition of -laprutil-0 to second declaration line) I had followed this from somewhere else, but added the -laprutil-0 to the first line, and not the else. When I added it to only the else, it worked! I am not sure why, my Linux C programing is really rusty, as I am a Java Developer! :) Works now! So the original question remains: When HTTPD and Tomcat are on the same box, is Unix Socket better than TCP? Is there any discussion about the pros/cons of Unix socket? On May 15, 2004, at 1:50 PM, Chong Yu Meng wrote: Andrew Clute wrote: /usr/sbin/apxs exist -- as I have used it to do the second statement you talked about. Although I am not sure how running apxs against mod_jk2.so will change libjkjni.so Err, it won't. Just reminding you that you have to run it. One last attempt : did you run buildconfig before configure ? I understand from someone else running RHEL that you need to run that. Regards, pascal chong - 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 and HTTPD on the same box: What's the best mod_jk2 protocol?
Hi Andrew ! Ok, I need to tell you something : it's getting really HOT in Singapore now, and I'm having a little difficulty focusing. And my wife turned on the lamp that is like Kenny Roger's rotisserie machine oven (I think I should just pull out the bulb or something).So I'll try to make this really brief : Try this: ./configure --with-apxs2=/usr/sbin/apxs \ --with-apr-lib=/usr/lib \ --with-tomcat-41=/opt/jakarta-tomcat-4.1.30 \ --with-java-home=/usr/java \ --with-jni Notice that I specified with-apr-lib, pointing to the location of libaprutil.* Also, please substitute your JAVA_HOME in with-java-home Ok, I gotta go open the fridge or something. Tell me how it goes. How hot is it where you are ? Regards, pascal chong Andrew Clute wrote: Sounds like we are on to something I used the following for my configure: ./configure --with-apxs2=/usr/sbin/apxs --with-tomcat41=/usr/local/tomcat-4.1.30 --with-jni Also here is the output for ldd: [EMAIL PROTECTED] root]# cd /etc/httpd/modules/ [EMAIL PROTECTED] modules]# ldd libjkjni.so libcrypt.so.1 = /lib/libcrypt.so.1 (0xb759f000) libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0xb758) libc.so.6 = /lib/tls/libc.so.6 (0xb7448000) librt.so.1 = /lib/tls/librt.so.1 (0xb7434000) libm.so.6 = /lib/tls/libm.so.6 (0xb7412000) libnsl.so.1 = /lib/libnsl.so.1 (0xb73fd000) libdl.so.2 = /lib/libdl.so.2 (0xb73f9000) libpthread.so.0 = /lib/tls/libpthread.so.0 (0xb73e9000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) There is no libaprutil-0.so.0 attached to it. Wonder I get that. BTW, I do have a libaprutil in /usr/lib/libaprutil-0.so.0 Thanks for all the help! On May 15, 2004, at 1:06 AM, Chong Yu Meng wrote: Further to my previous message: This is what you should expect to see with ldd jkjni.so after you build it: [EMAIL PROTECTED] apache2]# ldd jkjni.so libcrypt.so.1 = /lib/libcrypt.so.1 (0x008e3000) libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0x00179000) libpcre.so.0 = /lib/libpcre.so.0 (0x00bb5000) libpcreposix.so.0 = /usr/lib/libpcreposix.so.0 (0x00713000) libaprutil-0.so.0 = /usr/lib/libaprutil-0.so.0 (0x00342000) libc.so.6 = /lib/tls/libc.so.6 (0x00e65000) librt.so.1 = /lib/tls/librt.so.1 (0x00686000) libm.so.6 = /lib/tls/libm.so.6 (0x005a3000) libnsl.so.1 = /lib/libnsl.so.1 (0x00839000) libdl.so.2 = /lib/libdl.so.2 (0x00615000) libldap.so.2 = /usr/lib/libldap.so.2 (0x002f6000) liblber.so.2 = /usr/lib/liblber.so.2 (0x00111000) libgdbm.so.2 = /usr/lib/libgdbm.so.2 (0x00361000) libdb-4.1.so = /usr/lib/tls/libdb-4.1.so (0x00199000) libexpat.so.0 = /usr/lib/libexpat.so.0 (0x00571000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x00b29000) libpthread.so.0 = /lib/tls/libpthread.so.0 (0x0011d000) libresolv.so.2 = /lib/libresolv.so.2 (0x0012d000) libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x00d99000) libssl.so.4 = /lib/libssl.so.4 (0x0013f000) libcrypto.so.4 = /lib/libcrypto.so.4 (0x003fb000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x0055d000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00723000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x00174000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x0025a000) libz.so.1 = /usr/lib/libz.so.1 (0x0027c000) Or something similar. Do you see this ? Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Hmm... you have another problem : no apxs given Can you check if you have /usr/sbin/apxs ? I don't know what RHEL names it, apxs or apxs2. Also, there is an additional step, if you are using version 2.0.4 for mod_jk2 : After you have finished configure and make, assuming that your download directory is /downloads, you need to execute this: [EMAIL PROTECTED] downloads]# cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build/jk2/apache2 [EMAIL PROTECTED] apache2]# /usr/sbin/apxs -n jk2 -i mod_jk2.so You should not need libaprutil sources, I don't think. I never had to download them. Regards, pascal chong Andrew Clute wrote: Not hot here at all in Ohio. Anyways, I tried your suggestion and it did not include the libaprutil. Here is my configure statement: [EMAIL PROTECTED] native2]# ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib --with-tomcat-41=/usr/local/jakarta-tomcat-4.1.30 --with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni here is the output from configure: checking build system type... i686-redhat-linux-gnu checking host system type... i686-redhat-linux-gnu checking target system type... i686-redhat-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to run the C++ preprocessor... g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag CXX to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking for shl_load... (cached) no checking for shl_load in -ldld... (cached) no checking for dlopen... (cached) no checking for dlopen in
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Andrew Clute wrote: /usr/sbin/apxs exist -- as I have used it to do the second statement you talked about. Although I am not sure how running apxs against mod_jk2.so will change libjkjni.so Err, it won't. Just reminding you that you have to run it. One last attempt : did you run buildconfig before configure ? I understand from someone else running RHEL that you need to run that. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html The thing is, I have several friends who have tried to follow it but have all failed to get mod_jk2 going. The common thing in all these deployments is that they were ALL using RHEL 3, and the error was all the same. I don't have RHEL running on my system, so I cannot tell where the problem may be. Previously I was able to troubleshoot an unrelated problem on Mandrake because I was given SSH access to the box, but I have no such access to the RHEL boxes because of corporate and governmental confidentiality issues (which I understand perfectly). Perhaps you could try my instructions on the website mentioned above, paying special attention to the system requirements and tell me if it works or not. If not, where and how did it fail. I'm preparing for a major revision of my documents because many generous individuals far more intelligent than me, have contributed ideas, corrections and feedback on my scribblings, and I'd like to include this as an appendix (I shall be crediting them all in my revised document ). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Hi Andrew ! Oops ! I should have told you also that the Fedora packages do not work on RHEL. Some people already tried it. Hmm... that's odd. Did you install the devel package for httpd also ? Regards, pascal chong Clute, Andrew wrote: I took a look at your document, and tried to follow it, but I couldn't all of the way. You talked about need the apr packages, but those are not an option for install with RHEL3. I downloaded the packages for Fedora, but it would not install because of the following error: [EMAIL PROTECTED] apr]# rpm -ivh apr-0.9.4-2.i386.rpm Preparing...### [100%] file /usr/lib/libapr-0.so.0.9.4 from install of apr-0.9.4-2 conflicts with file from package httpd-2.0.46-32.ent Looks like the httpd package that commes with RHEL already includes that file. -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 10:43 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html The thing is, I have several friends who have tried to follow it but have all failed to get mod_jk2 going. The common thing in all these deployments is that they were ALL using RHEL 3, and the error was all the same. I don't have RHEL running on my system, so I cannot tell where the problem may be. Previously I was able to troubleshoot an unrelated problem on Mandrake because I was given SSH access to the box, but I have no such access to the RHEL boxes because of corporate and governmental confidentiality issues (which I understand perfectly). Perhaps you could try my instructions on the website mentioned above, paying special attention to the system requirements and tell me if it works or not. If not, where and how did it fail. I'm preparing for a major revision of my documents because many generous individuals far more intelligent than me, have contributed ideas, corrections and feedback on my scribblings, and I'd like to include this as an appendix (I shall be crediting them all in my revised document ). Regards, pascal chong - 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 and HTTPD on the same box: What's the best mod_jk2 protocol?
apr_md5_final is part of the APR utils package. What is that equivalent in RHEL ? (see : http://lxr.webperf.org/ident.cgi?i=apr_md5_final) Do you have a apr-util directory on your system? Clute, Andrew wrote: I took a look at your document, and tried to follow it, but I couldn't all of the way. You talked about need the apr packages, but those are not an option for install with RHEL3. I downloaded the packages for Fedora, but it would not install because of the following error: [EMAIL PROTECTED] apr]# rpm -ivh apr-0.9.4-2.i386.rpm Preparing...### [100%] file /usr/lib/libapr-0.so.0.9.4 from install of apr-0.9.4-2 conflicts with file from package httpd-2.0.46-32.ent Looks like the httpd package that commes with RHEL already includes that file. -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 10:43 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html The thing is, I have several friends who have tried to follow it but have all failed to get mod_jk2 going. The common thing in all these deployments is that they were ALL using RHEL 3, and the error was all the same. I don't have RHEL running on my system, so I cannot tell where the problem may be. Previously I was able to troubleshoot an unrelated problem on Mandrake because I was given SSH access to the box, but I have no such access to the RHEL boxes because of corporate and governmental confidentiality issues (which I understand perfectly). Perhaps you could try my instructions on the website mentioned above, paying special attention to the system requirements and tell me if it works or not. If not, where and how did it fail. I'm preparing for a major revision of my documents because many generous individuals far more intelligent than me, have contributed ideas, corrections and feedback on my scribblings, and I'd like to include this as an appendix (I shall be crediting them all in my revised document ). Regards, pascal chong - 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 and HTTPD on the same box: What's the best mod_jk2 protocol?
Hi Andrew, See this : http://archives.real-time.com/pipermail/tomcat-devel/2003-June/052811.html Can you locate this file : libaprutil-0.so.0 ? It may be named differently. Regards, pascal chong Clute, Andrew wrote: Yep, did that as well. Any idea what is causing the issue? -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 11:32 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew ! Oops ! I should have told you also that the Fedora packages do not work on RHEL. Some people already tried it. Hmm... that's odd. Did you install the devel package for httpd also ? Regards, pascal chong Clute, Andrew wrote: I took a look at your document, and tried to follow it, but I couldn't all of the way. You talked about need the apr packages, but those are not an option for install with RHEL3. I downloaded the packages for Fedora, but it would not install because of the following error: [EMAIL PROTECTED] apr]# rpm -ivh apr-0.9.4-2.i386.rpm Preparing...### [100%] file /usr/lib/libapr-0.so.0.9.4 from install of apr-0.9.4-2 conflicts with file from package httpd-2.0.46-32.ent Looks like the httpd package that commes with RHEL already includes that file. -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 10:43 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html The thing is, I have several friends who have tried to follow it but have all failed to get mod_jk2 going. The common thing in all these deployments is that they were ALL using RHEL 3, and the error was all the same. I don't have RHEL running on my system, so I cannot tell where the problem may be. Previously I was able to troubleshoot an unrelated problem on Mandrake because I was given SSH access to the box, but I have no such access to the RHEL boxes because of corporate and governmental confidentiality issues (which I understand perfectly). Perhaps you could try my instructions on the website mentioned above, paying special attention to the system requirements and tell me if it works or not. If not, where and how did it fail. I'm preparing for a major revision of my documents because many generous individuals far more intelligent than me, have contributed ideas, corrections and feedback on my scribblings, and I'd like to include this as an appendix (I shall be crediting them all in my revised document ). Regards, pascal chong - 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: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Are you using mod_jk2 binaries (RPM packages) or source ? Clute, Andrew wrote: Yeah, I have the file: [EMAIL PROTECTED] /]# find -name libaprutil-0.so.0 ./usr/lib/libaprutil-0.so.0 Does that help? I tried following directions on that site to no avail. Just so I can understand better, is this unresolved symbol error because the libjkjni.so was built missing a static references, or because at runtime that library cannot be found? -Andrew -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 11:43 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew, See this : http://archives.real-time.com/pipermail/tomcat-devel/2003-June/052811.ht ml Can you locate this file : libaprutil-0.so.0 ? It may be named differently. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Hi Nikola , I know what you mean. It is very alarming when you need to install a veritable sh*tload of packages just to get one small connector built.;) This was one of my gripes about Red Hat initially, but now I've learned to tolerate and even love it. ;) Regards, pascal chong Nikola Milutinovic wrote: Chong Yu Meng wrote: Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html I have managed to compile it on Mandrake. It required not just libapr and libapr-util, but libgdbm and libpcre. I've seen reports that on some platforms, it needed even more (one lib required another, etc), the list of libs grew to some 10 libraries. It takes some personal persistance to wade through it all - link, try, read error report, locate the library holding the %$#$#%@ function, goto STEP_ONE,... Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
Ok, here's the thing : I suspect that there may be a problem with your configure process. The apr_md5_final error points to libaprutil, and I suspect that libjkjni.so may be missing that reference. Can you provide the options you used for configure ? Also, give me the output for this command : ldd /your_build_directory/libjkjni.so Please tell me if I am not making any sense, because it is *so hot* in Singapore right now that I can barely think. Andrew Clute wrote: I originally used the RPM's I found somewhere, but I didn't see the libjkjni.so in it, so I built from source then. On May 14, 2004, at 11:35 PM, Chong Yu Meng wrote: Are you using mod_jk2 binaries (RPM packages) or source ? Clute, Andrew wrote: Yeah, I have the file: [EMAIL PROTECTED] /]# find -name libaprutil-0.so.0 ./usr/lib/libaprutil-0.so.0 Does that help? I tried following directions on that site to no avail. Just so I can understand better, is this unresolved symbol error because the libjkjni.so was built missing a static references, or because at runtime that library cannot be found? -Andrew -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 11:43 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew, See this : http://archives.real-time.com/pipermail/tomcat-devel/2003-June/ 052811.ht ml Can you locate this file : libaprutil-0.so.0 ? It may be named differently. Regards, pascal chong - 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 and HTTPD on the same box: What's the best mod_jk2 protocol?
Further to my previous message: This is what you should expect to see with ldd jkjni.so after you build it: [EMAIL PROTECTED] apache2]# ldd jkjni.so libcrypt.so.1 = /lib/libcrypt.so.1 (0x008e3000) libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0x00179000) libpcre.so.0 = /lib/libpcre.so.0 (0x00bb5000) libpcreposix.so.0 = /usr/lib/libpcreposix.so.0 (0x00713000) libaprutil-0.so.0 = /usr/lib/libaprutil-0.so.0 (0x00342000) libc.so.6 = /lib/tls/libc.so.6 (0x00e65000) librt.so.1 = /lib/tls/librt.so.1 (0x00686000) libm.so.6 = /lib/tls/libm.so.6 (0x005a3000) libnsl.so.1 = /lib/libnsl.so.1 (0x00839000) libdl.so.2 = /lib/libdl.so.2 (0x00615000) libldap.so.2 = /usr/lib/libldap.so.2 (0x002f6000) liblber.so.2 = /usr/lib/liblber.so.2 (0x00111000) libgdbm.so.2 = /usr/lib/libgdbm.so.2 (0x00361000) libdb-4.1.so = /usr/lib/tls/libdb-4.1.so (0x00199000) libexpat.so.0 = /usr/lib/libexpat.so.0 (0x00571000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x00b29000) libpthread.so.0 = /lib/tls/libpthread.so.0 (0x0011d000) libresolv.so.2 = /lib/libresolv.so.2 (0x0012d000) libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x00d99000) libssl.so.4 = /lib/libssl.so.4 (0x0013f000) libcrypto.so.4 = /lib/libcrypto.so.4 (0x003fb000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x0055d000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00723000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x00174000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x0025a000) libz.so.1 = /usr/lib/libz.so.1 (0x0027c000) Or something similar. Do you see this ? Regards, pascal chong Andrew Clute wrote: I originally used the RPM's I found somewhere, but I didn't see the libjkjni.so in it, so I built from source then. On May 14, 2004, at 11:35 PM, Chong Yu Meng wrote: Are you using mod_jk2 binaries (RPM packages) or source ? Clute, Andrew wrote: Yeah, I have the file: [EMAIL PROTECTED] /]# find -name libaprutil-0.so.0 ./usr/lib/libaprutil-0.so.0 Does that help? I tried following directions on that site to no avail. Just so I can understand better, is this unresolved symbol error because the libjkjni.so was built missing a static references, or because at runtime that library cannot be found? -Andrew -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 11:43 AM To: Tomcat Users List Subject: Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol? Hi Andrew, See this : http://archives.real-time.com/pipermail/tomcat-devel/2003-June/ 052811.ht ml Can you locate this file : libaprutil-0.so.0 ? It may be named differently. Regards, pascal chong - 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: Apache2/Tomcat5/mod_jk2 problems
Hi, Another way to verify if the connectors are really giving you the problems (as opposed to the application) is to setup Apache as a reverse proxy and proxy all requests to Tomcat. There is documentation on this on the Tomcat site. My suspicion is that it could be your application. Daniel Gibby wrote: I *really* wish I knew the answers to your questions. Connectors are the most frustrating part of using tomcat. But then again, I haven't tried session replication ;-) I don't know if the problem that I'm having is the same as yours, but I have to kill and restart tomcat every other day or so. I've actually made a cron that restarts tomcat nightly now. Problem solved, right? ;-) Now I'll never know if I ever fix it. :-( See my other post to the similar thread that just started today by Beat De Martin: Subject: apache, mod_jk, tomcat hungs BTW, I'm using Unix sockets, because I thought I read somewhere that they are faster, but I wouldn't count on that being true, since JNI is still required for some reason on top of that... maybe they were supposed to be faster in theory since you wouldn't have to load JNI, but I don't think unix sockets will work without JNI. I would have switched to normal TCP Sockets by now, but I keep reading of people like you who are having the same problems I'm having. Daniel Gibby Adrian Barnett wrote: Hi, I'm having an annoying memory leak problem in tomcat5 on Redhat 9. The memory gradually creeps up until the JVM runs out of memory. (I've been using JMeter to send thousands of requests to tomcat) Now, if I run the tests against tomcat by itself (via port 8080) it is fine and stable, the problem only occurs when I use port 80 to go via Apache. After trying numerous different things, suspicion falls on mod_jk2. The docs on mod_jk2 are not very helpful. Some say that mod_jk2 is better than mod_jk and should be used in place of it, others say that mod_jk2 is not stable enough for production use yet and mod_jk should be used instead. Also, we are using the JNI mode of communication for mod_jk2, rather than Unix sockets. So, my questions are: 1) Which is safest - mod_jk or mod_jk2? Neither? I'd really say neither would be safest. 2) Are there docs which describe when/why you should JNI or Unix sockets (or any other method), and what the advantages/disadvantages are? Probably so, but I can never find them when I need them. And the official docs don't do the job very well. 3) Anybody got any other clues as to what could cause a leak like this? (I've searched many tomcat mail archives but found nothing of use) Cheers, Adrian Barnett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Guns aren't lawful; nooses give; gas smells awful. So you might as well live. -- Dorothy Parker ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDIRealm strangeness
Hi Shane ! Thanks for your help! After experimenting over the weekend, I think that this is probably a bug in the Tomcat code. I checked and corrected some problems in my OpenLDAP setup, and verified that SSL/TLS connections can be made successfully to it using ldapsearch. When I tried starting up Tomcat again, it gave me the same error. I think Tomcat may not be able to establish an encrypted connection to OpenLDAP. Unencrypted connections on port 389 seem to be ok. Incidentally, I'm also anal retentive (that, I am told, is a national characteristic of my country), and I tried ldaps://, but Tomcat will throw a parse error and will not accept the JNDI Realm parameters. They may have fixed it in the just-released 5.0.24, though. Thanks for your help, again ! I'm not on any specific timetable, so I don't need to fix this soon. I'll direct my question to the Tomcat developers and see if they are aware of the issue. Regards, pascal chong Shane Linley wrote: Hi, What happens on failed connections IS driver specific, but it should NOT BY DEFAULT switch to using a non SSL connection, for the sake of security if nothing else. The connection should tried to be established, if it fails then it should send back the appropriate naming exception. That said drivers do accept configuration properties to modify their behaviour, so technically anything is possible, based on your drivers documentation. I have never used OpenLDAP so its error logs don't really mean all that much to me, but having done similar things in the past you should look up your error codes in the OpenLDAP documentation (but its probably the OpenSSL doco) as to what the error codes really mean to work out what the problem is. I'm referring specifically to this line (as id does match up to the Request: 1 cancelled) message that the LDAP client driver reports. May 7 20:03:56 localhost slapd[6346]: connection_read(11): TLS accept error error=-1 id=0, closing Thats all I have! Good luck. Regards, Shane. P.S. The anal retentive part of me still wants you to specify the ldap connection as ldaps://server:636 but that is completely besides the point! :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDIRealm strangeness
Hi All ! I wonder if anyone has seen this anomaly, when following my instructions on setting up a JNDIRealm, on my website (http://cymulacrum.net/writings/adv_tomcat/c487.html). I wrote these instructions after version 5.0.19 of Tomcat came out and fixed the character encoding issue in the JNDIRealm. In my document I described how to : 1. Setup OpenLDAP so it runs with SSL/TLS enabled 2. Setup Tomcat's JNDIRealm so that it communicates with ldap://localhost:636, the secure port instead of 389. I never noticed anything strange, because my JNDIRealm setup seemed to work fine, but when I tried to put SecurityFilter on, I found an error. Thinking that it was probably SecurityFilter, I looked at the logfiles, and I was surprised to find that, even before I had installed SecurityFilter, there was that same error being logged inside catalina.out. I just never bothered to look before because everything seemed to be running fine. Here's what the error looks like. It only occurs on startup, all LDAP operations work fine with no errors: JNDIRealm[Catalina]: Connecting to URL ldap://localhost:636 JNDIRealm[Catalina]: Exception performing authentication javax.naming.CommunicationException: Request: 1 cancelled at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:76) at com.sun.jndi.ldap.Connection.readReply(Connection.java:433) at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:356) at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:187) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2615) at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:293) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:190) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:208) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:256) at javax.naming.InitialContext.init(InitialContext.java:232) at javax.naming.InitialContext.init(InitialContext.java:208) rest of errors snipped I'm not really sure where to begin, or even if it is significant (since LDAP authentication still works). If you want to repeat this error for yourself, you can follow the instructions on my web page. Any help would be greatly appreciated ! Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDIRealm strangeness
Hi Shane ! Thanks for the description and advice! I managed to finally turn on OpenLDAP logging (a pain in Fedora Core 1), and set the loglevel to 256. Here's what I get. When the Tomcat server starts up, the connection errors seem to be related to port 636 : May 7 19:51:50 localhost slapd[6049]: conn=4 fd=11 ACCEPT from IP=127.0.0.1:32892 (IP=0.0.0.0:636) May 7 19:51:50 localhost slapd[6049]: conn=4 fd=11 closed May 7 19:51:50 localhost slapd[6049]: conn=5 fd=11 ACCEPT from IP=127.0.0.1:32894 (IP=0.0.0.0:389) May 7 19:51:50 localhost slapd[6049]: conn=5 op=0 BIND dn= method=128 May 7 19:51:50 localhost slapd[6049]: conn=5 op=0 RESULT tag=97 err=0 text= May 7 19:52:02 localhost slapd[6049]: conn=6 fd=12 ACCEPT from IP=127.0.0.1:32895 (IP=0.0.0.0:636) May 7 19:52:02 localhost slapd[6049]: conn=6 fd=12 closed May 7 19:52:02 localhost slapd[6049]: conn=7 fd=12 ACCEPT from IP=127.0.0.1:32897 (IP=0.0.0.0:389) May 7 19:52:02 localhost slapd[6049]: conn=7 op=0 BIND dn= method=128 May 7 19:52:02 localhost slapd[6049]: conn=7 op=0 RESULT tag=97 err=0 text= Bumping up loglevel to 4095, I get these details for the errors on port 636: May 7 20:03:56 localhost slapd[6346]: connection_read(11): TLS accept error error=-1 id=0, closing May 7 20:03:56 localhost slapd[6346]: connection_closing: readying conn=0 sd=11 for close May 7 20:03:56 localhost slapd[6346]: connection_close: conn=0 sd=11 Seems to indicate that there is something wrong with my SSL/TLS connection. But my JNDIRealm still works ! Users can still authenticate successfully. Does the connection fallback to port 389 if a connection on 636 is not possible? Thanks for the help, Shane ! If you have any further suggestions, I would really appreciate it ! Regards, pascal chong Shane Linley wrote: Hi, Knowledge on configuring JNDIRealms security: zip! Knowledge on the JNDI LDAP interface: guru! The root cause: javax.naming.CommunicationException, refers to there being an underlying network problem with communicating between the LDAP client, and the LDAP server. The message received from the ldap driver: Request: 1 cancelled is the reason as to why this error occured. As can be seen its not very helpful. (I've been spoilt on receiving error codes from servers and detailed messages and such). You appear to be using the Sun JNDI LDAP reference implementation, which I found to not always offer the best error messages. I cant remember if it has any extra logging capabilities (from memory it doesn't) to try and wring more information out of the driver, however the key to solving the problem may lie elsewhere. I would recommended turning on the detailed debugging in your LDAP server to determine what error it is trying to communicate back to the LDAP driver (and if the server is successfully contacted in this first instance), by of course inspecting its logs. This approach I have had to use a number of times on less than helpful LDAP drivers that don't seem to think good error messages are needed. You are trying to use a secure SSL connection to the LDAP server, but it does not appear to be SSL related as you normally get a specific SSL error back when it is SSL related, usually ugly and unhelpful. Regards, Shane. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the pain of choice
Hi Michiel ! Cut the developers some slack, man ! Writing the software is difficult enough, if you need to do a buildfile, test it and document it, it can seem like a monstrous commitment. If you want instructions on getting it built, I just updated my Tomcat 5 document to cover jk2.0.4. The new release is, BTW, a lot less buggy than jk2.0.2, the previous release. Now, *that* one, you had to jump through hoops to get it installed, including editing the Makefile. Michiel Toneman wrote: Great, let's use JK2 My experience: snip -- A complex system that works is invariably found to have evolved from a simple system that works. ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How does tomcat redirect from login
Hi Jim, You might want to look at SecurityFilter (http://securityfilter.sourceforge.net/). I have a write-up on this on my site (http://cymulacrum.net), using JDBC. If you look at the source files in the download tarball, you can easily guess how to adapt it for your own needs, I think. I'm not an expert on this filter by any means, so you'll have to dig around a bit on your own. Jim Kennedy wrote: Actually, I'm stupid here. j_security_check is not the issue. It's actually deeper in the container. Not a part of the motor I want to touch. -Original Message- From: Jim Kennedy [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 2:08 PM To: 'Tomcat Users List' Subject: RE: How does tomcat redirect from login Thanks, I'm surprised there is no way to do this. Why wouldn't they just pop it in the request. Seems very easy. I wonder if I could find the source for j_security_check and make the appropriate changes. I don't want to reinvent J2ee security. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 1:44 PM To: Tomcat Users List Subject: Re: How does tomcat redirect from login There is no way to do that. Your best alternative is to NOT use authentication/authorization via the spec and create some Servlet Filters to perform the appropriate authentication and authorization checks. That way, the filter can be smart enough to determine you user context and handle it approriately. The upside - is the path is very portable to othre conatiners. The downside is you reinvent some of the wheel. Lucky for you - there are other projects on the Internet which use Filters for this very purpose - so some of your work might already be done. -Tim Jim Kennedy wrote: I am using form based login, which is working fine for me. I would like to display different login content (on my login form) based on the desired intent of the user. So , if the user wants to go to a certain section of my site that is secure, I would like to capture the redirect page (the url of the secure page) before the user logs in. Knowing that URL will allow me to display specific content for that section. I have searched the session and the request scopes for something that looks like a redirect page. Can't find anything. Not even a cookie. So, how does tomcat store the intended (redirect) page during the login process for form based login. Where is it stored? How can I get it? Hope I don't need to hack the source for j_security_check. - 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] -- A complex system that works is invariably found to have evolved from a simple system that works. ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm(?) authentication
Frank Schaare wrote: Or maybe you just think that my writing sucks i´m reading a lot of this stuff but your writing definetly NOT sucks ! Is is cool, short and very useful, thank you for posting your link. Greetings from Germany... Thanks a lot, Frank !! I hope it's good enough for another thesis I am writing that has nothing at all to do with technology. Which I have to submit really soon ! -- A complex system that works is invariably found to have evolved from a simple system that works. ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentification against NT Domain Controller
Hi Frank ! I seem to remember ActiveDirectory being discussed here, on this mailing list. The good thing about ActiveDirectory is that, if you do not have an overly complicated schema, you can use the LDAP subset to query the directory (you need to do a fair bit of tweaking to get ActiveDirectory to output results in LDAP-compliant format though. I'm not an expert on ActiveDirectory, so I really cannot advise you on this). If you're using Windows NT as the PDC, I think you can't get the Tomcat realm to work with it (Please, somebody, tell me otherwise!). As for writing your own Realm implementation, unless you are a really seasoned programmer, this can be a very daunting task. An easier way is to download and look at SecurityFilter. The example webapp has source code that you can look at, and not get confused by it. I highly recommend this to implementing your own realm. However, this still does not address the problem of extracting user credentials from a PDC. There is another solution : use Novell's DirXML product to do a periodic sync of data in Active Directory or NTLM into an LDAP directory, then use the JNDI realm in Tomcat. This is not a free solution, and it does require you to read up on another product, but this product is also very good for syncing data between different directories (OpenLDAP, Netscape Directory Server, Novell eDirectory, even flat files). Hope this helps ! Frank Schaare wrote: Hi, we´re building an Intranet application running on Tomcat 4.1.30 (Client OS is Win2K). It would be very suitable to authentificate the users against the NT Domain Controller to avoid a second login. I searched this ML and Google but did not find very much about this theme. There is a SourceForce Project called NTDCRealm which seems to fit our needs, but has absolutely no documentation. Probably, we need to nest a custom NTDCRealm Tag in our WebApp context. To learn, how to do this, i searched the Tomcat documentation (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Standard%20Realm%20Implementations) and again, there is a gap: It is also possible to write your own Realm implementation, and integrate it with Tomcat 4. However, doing this is beyond the scope of this document. See (FIXME - reference to developer stuff) for more information. Here are my questions: Does this reference to developer stuff exist anywhere ? Does anyone ever made the NTDCRealm to work ? Does anyone knows another (documentatet) Implementation of NT authentification ? Any hints, links, documents about this theme are warmly welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- A complex system that works is invariably found to have evolved from a simple system that works. ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent pls help ! Protection problems of using Realm
An easier method would be to use SecurityFilter (http://securityfilter.sourceforge.net/). There is an example web application (actually several web apps) bundled with the software. Just look at the code and I think you'll find it fairly straightforward to implement what you want. a a wrote: Dear all, I do not have any idea of writing a custom realm, even how to start writing it. Can you give me some example or any references that teaching how to write a custom realm ? Thankyou very much ! kawai Mark Thomas [EMAIL PROTECTED] wrote: You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use Realm to check the roles and password and do authentication directly in my server. Is there any method that can solve that problem ? or any method instead of using Realm ? or override the current settings of Realm ? ... http://ringtone.yahoo.com.hk/ -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm(?) authentication
Matthew Bechly wrote: Hi Tomcat users, I am a new user and have Tomcat 5.0.19 - windows. I only run one application which is running well on our intranet. I am thinking of giving external (outside my firewall) users access. I have configured Tomcat for SSL, no problems. As added security, I wanted to authenticate (similar to manager) all Tomcat users (for any access, root and the webapps). I have read the How to's, and searched lists to no avail. I think I need to configure an engine Realm setup. I have configured my users for MemoryRealm. I was hoping somebody could point me in the direction of a 'step by step' for this. I have been playing around with the config files on and off for a week without success. Thanks Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Matthew ! I've written one step by step for this. It's for Tomcat on Linux, but I don't think Windows is different at all, at least for the realm part. Can't say the same for the installation. You can view it at http://www.connecties.com/cymulacrum/tomcat5/c578.html. This is for JDBC realms, meaning that your user information (i.e. username, password) is stored inside a database. The database described in the example is Firebird (the Open Source branch of Interbase), but I think it should work for any database with a JDBC driver -- some tweaking required of course. Hope this helps ! Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JAVA_OPTS in catalina.sh
Hi Thomas, I don't use RH Enterprise Server, so I'm not sure if this is your problem : RH7.x does not use the NPTL (Native Posix Thread Libraries). I'm not sure if ES 2.1 does. One way to check is to set the following environment variables and check if you still get crashes : As root, execute export LD_ASSUME_KERNEL=2.2.5 Then try to do a java -version and see if it seg faults. If it does not, then you will know that: -- ES 2.1 uses the NPTL, so you'll need to set the above env var in either /etc/profile or your .bashrc file. Thomas Chua wrote: There's minor kernel difference Red Hat Linux release 7.2 kernel is 2.4.9-21smp and Enterprise linux kernel is 2.4.9-e.12 but i am not familiar with linux so i do not know whether this minor difference will cause the VM to crash. Ralph Einfeldt [EMAIL PROTECTED] 04/14/2004 05:37 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: [OT] JAVA_OPTS in catalina.sh So it's most likely the kernel or an os library for Red Hat Enterprise Linux ES release 2.1 that is used by java that causes the problem. As I don't have any experience with Red Hat I can't provide any help in this environment. - Are there updates to the kernel or the core libraries ? -Original Message- From: Thomas Chua [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 9:42 AM To: Tomcat Users List Subject: RE: [OT] JAVA_OPTS in catalina.sh I tried with both (build 1.4.2_04-b05, mixed mode)and(1.4.2-b28 mixed mode) and under Red Hat Enterprise Linux ES release 2.1(panama) both VM crashes. Using Red Hat Linux release 7.2 (Enigma) with (1.4.2-b28 mixed mode) works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get Tomcat 5 back to original state?
Hi Josh, Don't start deleting stuff just yet. If you do this: rm -rf conf/Catalina Then your admin and manager applications will definitely not work, because the context fragments for both web applications (and the balancer app) are in conf/Catalina/localhost/. What I *would* do in your situation is this: 1. Create a temporary directory for backing up your current configuration. I know it's probably not working, but if you back it up, and if you have the time later, you can refer to them and see where the configuration differed. (I highly recommend this approach, because you can be sure that months from now, when you mess with installing Tomcat again, you'll encounter something similar, and you'll need to remember what you did wrong previously) 2. Create another temporary directory where you can download another Tomcat tarball and expand it. Use the pristine server.xml and tomcat-users.xml inside there and manager.xml to replace your current files. 3. Then, test again and check the differences between the files. 4. If Tomcat starts up and works properly, you know that you have only changed 3 files -- so check them for differences. It's also a good idea to write down your diagnosis, because you never know when you'll need it again. Regards. pascal chong Josh Rehman wrote: Hi, I'd like to figure out how to finagle Tomcat into a pristine state without having to reinstall binaries. This is because, once again, I've somehow managed to get Tomcat into a wierd state where Manager doesn't want to work, I'm getting some wierd messages in the logs, and things are just generally bad. (I've put the trace at the end of the message, although that's not the central point to this message). So what do I need to do to get Tomcat into a pristine state, assuming I've not touched any binaries? Here's what I *think* I should do: 1 - Replace conf/server.xml with a simple one. 2 - rm -rf conf/Catalina 3 - (Optionally) Revert tomcat-users.xml to original Am I missing anything? Thanks! Here's catalina.out, for the curious: INFO: Installing web application at context path /balancer from URL file:C:\java \tomcat5.0.18\webapps\balancer Mar 31, 2004 11:15:57 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Mar 31, 2004 11:15:57 PM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors Mar 31, 2004 11:15:57 PM org.apache.catalina.core.StandardHostDeployer install Here is my localhost log, for the curious: 2004-03-31 23:08:46 StandardContext[/balancer]Exception starting filter BalancerFilter java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107) at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85) at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:272) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:355) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:126) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3646) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4275) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
Re: tomcat sends every email 3 times
Hi Cheng, How are you testing this? Do you have a servlet that sends emails whenever you get a 404 ? Or when you get a 404, Tomcat directs the request to a JSP or servlet that sends an email ? I'm pretty sure Tomcat does not have a built-in facility that sends email. Regards. zhicheng wang wrote: Hi if i config tomcat (both 4 AND 5) to send email for error code 404, it always send THREE emails. this is true regardless if i use a servlet of perl cgi any ideas? please let me know if i call the servlet or cgi directly, things are fine. thanks cheng = Best wishes Z C Wang -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI Realm Problem - Cause determined
I'm using Tomcat 5.0.18 (going to upgrade soon, but I'm using this version to do documentation at the moment), and OpenLDAP 2.1.22. I configured OpenLDAP to log everything, and here's the error (as you suspected): 1. Tomcat authenticates the user, but cannot find the role he belongs to. Below is the OpenLDAP log output for the search operation. Note the filter: (?=undefined) message. Mar 27 14:53:53 localhost slapd[5166]: SRCH ou=groups,o=cymulacrum 1 3 Mar 27 14:53:53 localhost slapd[5166]: 0 0 0 Mar 27 14:53:53 localhost slapd[5166]: begin get_filter Mar 27 14:53:53 localhost slapd[5166]: EQUALITY Mar 27 14:53:53 localhost slapd[5166]: end get_filter 0 Mar 27 14:53:53 localhost slapd[5166]: filter: (?=undefined) Mar 27 14:53:53 localhost slapd[5166]: = get_ctrls Mar 27 14:53:53 localhost slapd[5166]: = get_ctrls: oid=2.16.840.1.113730.3.4.2 (noncritical) Mar 27 14:53:53 localhost slapd[5166]: = get_ctrls: n=1 rc=0 err= Mar 27 14:53:53 localhost slapd[5166]: attrs: Mar 27 14:53:53 localhost slapd[5166]: cn Mar 27 14:53:53 localhost slapd[5166]: Mar 27 14:53:53 localhost slapd[5166]: conn=1 op=4 SRCH base=ou=groups,o=cymulacrum scope=1 filter=(?=undefined) Mar 27 14:53:53 localhost slapd[5166]: conn=1 op=4 SRCH attr=cn Mar 27 14:53:53 localhost slapd[5166]: = ldbm_back_search 2. If I use ldapsearch with equivalent syntax, I get: Mar 27 14:49:41 localhost slapd[5166]: SRCH ou=groups,o=cymulacrum 2 0 Mar 27 14:49:41 localhost slapd[5166]: 0 0 0 Mar 27 14:49:41 localhost slapd[5166]: begin get_filter Mar 27 14:49:41 localhost slapd[5166]: PRESENT Mar 27 14:49:41 localhost slapd[5166]: end get_filter 0 Mar 27 14:49:41 localhost slapd[5166]: filter: (cn=*) Mar 27 14:49:41 localhost slapd[5166]: attrs: Mar 27 14:49:41 localhost slapd[5166]: Mar 27 14:49:41 localhost slapd[5166]: conn=0 op=1 SRCH base=ou=groups,o=cymula crum scope=2 filter=(cn=*) Mar 27 14:49:41 localhost slapd[5166]: = ldbm_back_search Both operations performed on the same OpenLDAP server. Hope this helps ! Thanks and Regards, Jeff Tulley wrote: Pascal, What version of Tomcsat are you using? In response to a defect, I added a feature to JNDIRealm a while back, that applied a filter to certain JNDI realms to encode characters such as and ( Later we learned that I should have focused that filtering a little more on a specific string, and too much was being filtered, so I submitted a fix. It was very simple, really only a one or two-line fix. The reason I suspect this is that your output below has \28 and \29 in the filter expression, which are the encodings for the parenthesis that would be surrounding the expression. The bug was that only the DN should have been encoded, not the whole filter expression. It looks like from CVS logs that the fix should be in 5.0.19, and 5.0.20, but not 5.0.18 Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 3/25/04 6:14:06 AM Hello, all ! I've got a really strange problem that is probably caused by my eyesight. I followed the JNDI Real HowTo on the Jakarta site, and I setup the necessary LDIF file and put the necessary entries inside server.xml. After struggling with various typo errors and configuration mistakes (I was having a migraine at the time), I finally got Tomcat to authenticate with my OpenLDAP server. The trouble is, it cannot find the role, so I always get kicked out with an authorization error. This is the error I am getting when I try to login to the Tomcat Web Administration page : 2004-03-25 20:42:53 JNDIRealm[Catalina]: lookupUser(tcadmin) 2004-03-25 20:42:53 JNDIRealm[Catalina]: dn=uid=tcadmin,ou=people,o=cymulacrum 2004-03-25 20:42:53 JNDIRealm[Catalina]: validating credentials by binding as the user 2004-03-25 20:42:53 JNDIRealm[Catalina]: binding as uid=tcadmin,ou=people,o=cymulacrum 2004-03-25 20:42:53 JNDIRealm[Catalina]: Username tcadmin successfully authenticated 2004-03-25 20:42:53 JNDIRealm[Catalina]: getRoles(uid=tcadmin,ou=people,o=cymulacrum) 2004-03-25 20:42:53 JNDIRealm[Catalina]: Searching role base 'ou=groups,o=cymulacrum' for attribute 'cn' 2004-03-25 20:42:53 JNDIRealm[Catalina]: With filter expression '\28uniqueMember=uid=tcadmin,ou=people,o=cymulacrum\29' 2004-03-25 20:42:53 JNDIRealm[Catalina]: Returning 0 roles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net
[ANN] : Doc Mirror
Hi All! I will be dismantling my site over the next few days, so, very soon, you will not be able to find my Tomcat 4 and Tomcat 5 tutorials at http://cymulacrum.net Werner van Mook, of connecties.com, has generously offered to host the documents for free. The new links are shown below: Tomcat 5 : http://www.connecties.com/cymulacrum/tomcat5/book1.html Tomcat 4 : http://www.connecties.com/cymulacrum/tomcat4/book1.html I have not had time to update the JK2 section for the new connector release that just came out. So, watch for the next release. Which may be soon. As usual, this documentation is provided without warranty, and I cannot be held responsible if it screws up your server, loses you money or time, causes your children to grow hair on their palms, etc. Read the terms and conditions. [Yoav, Tim : please update the links on the Wiki for me. Thanks ! ] -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
First impressions: JK2 + Apache 2 + Tomcat 5.0.18
Hi all, Just downloaded, compiled and tried out the new JK2 (v 2.0.4). The Ant build file still doesn't work, and there is one additional step (as defined in your INSTALL.txt), but otherwise the compile went smoothly. The mod_jk2.so file gets copied automatically to the Apache modules directory (so, if you have an existing mod_jk2.so there, better back it up first!), and it seemed to work with my existing UNIX sockets file. (Excellent job, Henri !!) For those wanting to try out the brand-spanking new JK2 : 1. Download the tarball (if you are using Linux/UNIX) Binaries are available for Fedora Core 1, SUSE 9.0 and SUSE SLES at : http://apache.oss.eznetsols.org/jakarta/tomcat-connectors/jk2/binaries/linux/ (this is a Singapore mirror. Look for one closer to you) Sources are available at : http://apache.oss.eznetsols.org/jakarta/tomcat-connectors/jk2/source/ 2. I will be using the source tarball here. My configuration is Fedora Core 1, Apache 2.0.48 and Tomcat 5.0.18 3. Go to your download directory and untar the package : tar -zxvf jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz 4. Execute the following commands as root, [EMAIL PROTECTED] temp]# cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 [EMAIL PROTECTED] native2]# ./configure --with-apxs2=/usr/sbin/apxs --with-tomcat-41=/opt/tomcat --with-apr-lib=/usr/lib --with-java-home=/opt/IBMJava2-141 --with-jni [EMAIL PROTECTED] native2]# make [EMAIL PROTECTED] native2]# cd ../build/jk2/apache2 [EMAIL PROTECTED] apache2]# /usr/sbin/apxs -n jk2 -i mod_jk2.so If successful, you should see this : /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/bin/sh /usr/lib/apr/build/libtool' mod_jk2.so /usr/lib/httpd/modules /bin/sh /usr/lib/apr/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so Warning! dlname not found in /usr/lib/httpd/modules/mod_jk2.so. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/lib/httpd/modules/mod_jk2.so And that's it ! For detailed instructions on configuring it for UNIX sockets, a sample workers2.properties, etc.(you people and your demands ! send me a working configuration, help me with my install, wear the purple thing and dance around ...), please see my Tomcat 5 writeup at http://cymulacrum.net. (Please note that the location of this document will change very, very soon* !) Don't send me bug reports, and if the instructions don't work for you, please post your questions on the mailing list, don't send them to me. * I can't keep my site open for much longer because the bandwidth costs are killing me. grumble I get more than 2000 hits everyday now, and it wouldn't kill some of you to at least buy something from my Amazon wish list. /grumble Of course, if you want to send me money, it will be gratefully accepted (contact me off-list), or give me a job ! -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context.xml - what's the secret?
Hi Joshua, If you're using a war file, then you should place the Context fragment inside META-INF then deploy it. If you have already deployed the web application (that is, it is either already expanded inside your web application directory, or the directory was manually created and your servlets and JSPs reside inside there), then the context's XML file goes into $CATALINA_HOME/conf/Catalina/localhost/ And remember that it should be given the same name as your web application (that is, if your web application is called 'MyWonderfulApp', then the name of the XML file should be MyWonderfulApp.xml. Not context.xml. I spent the whole of last weekend figuring this out ... sigh ! HTH -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI Realm Problem
Hello, all ! I've got a really strange problem that is probably caused by my eyesight. I followed the JNDI Real HowTo on the Jakarta site, and I setup the necessary LDIF file and put the necessary entries inside server.xml. After struggling with various typo errors and configuration mistakes (I was having a migraine at the time), I finally got Tomcat to authenticate with my OpenLDAP server. The trouble is, it cannot find the role, so I always get kicked out with an authorization error. This is the error I am getting when I try to login to the Tomcat Web Administration page : 2004-03-25 20:42:53 JNDIRealm[Catalina]: lookupUser(tcadmin) 2004-03-25 20:42:53 JNDIRealm[Catalina]: dn=uid=tcadmin,ou=people,o=cymulacrum 2004-03-25 20:42:53 JNDIRealm[Catalina]: validating credentials by binding as the user 2004-03-25 20:42:53 JNDIRealm[Catalina]: binding as uid=tcadmin,ou=people,o=cymulacrum 2004-03-25 20:42:53 JNDIRealm[Catalina]: Username tcadmin successfully authenticated 2004-03-25 20:42:53 JNDIRealm[Catalina]: getRoles(uid=tcadmin,ou=people,o=cymulacrum) 2004-03-25 20:42:53 JNDIRealm[Catalina]: Searching role base 'ou=groups,o=cymulacrum' for attribute 'cn' 2004-03-25 20:42:53 JNDIRealm[Catalina]: With filter expression '\28uniqueMember=uid=tcadmin,ou=people,o=cymulacrum\29' 2004-03-25 20:42:53 JNDIRealm[Catalina]: Returning 0 roles My LDIF file only has entries for Tomcat administrator and Tomcat Manager : === Begin LDIF file === # Define top-level entry dn: o=cymulacrum objectClass: top objectClass: organization o: cymulacrum description: Cymulacrum directory # Define an entry to contain people dn: ou=people,o=cymulacrum objectClass: organizationalUnit ou: people # Define an entry for Tomcat Administrator dn: uid=tcadmin,ou=people,o=cymulacrum objectClass: inetOrgPerson uid: tcadmin sn: Administrator cn: Tomcat Administrator mail: [EMAIL PROTECTED] userPassword: tcsecret # Define an entry for Tomcat Manager dn: uid=tcmgr,ou=people,o=cymulacrum objectClass: inetOrgPerson uid: tcmgr sn: Manager cn: Tomcat Manager mail: [EMAIL PROTECTED] === End LDIF file === My Realm definition is inside server.xml, and it looks like this: !-- Cymulacrum JNDI Realm -- Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost:389; userPattern=uid={0},ou=people,o=cymulacrum roleBase=ou=groups,o=cymulacrum roleName=cn roleSearch=(uniqueMember={0}) / What am I doing wrong ? -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context.xml - what's the secret?
Ok, this may sound like a rather obvious question, but how are you using the Ant task to install ? Are you using the deployer, or a custom ant task ? Also, when you deploy your web application, does it copy the context XML into $CATALINA_HOME/conf/Catalina/localhost ? If it does not, then I suspect something is not working properly with the ant build file (everytime I write something like this, I get plenty of negative responses -- but at least, Joshua, you'll get a lot of information !) White, Joshua A (HTSC, CASD) wrote: No luck. I am using the ant install task to install the war. I have tried naming the context fragment both context.xml and myAppName.xml. Any other ideas? Joshua -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:03 AM To: Tomcat Users List Subject: Re: context.xml - what's the secret? Hi Joshua, If you're using a war file, then you should place the Context fragment inside META-INF then deploy it. If you have already deployed the web application (that is, it is either already expanded inside your web application directory, or the directory was manually created and your servlets and JSPs reside inside there), then the context's XML file goes into $CATALINA_HOME/conf/Catalina/localhost/ And remember that it should be given the same name as your web application (that is, if your web application is called 'MyWonderfulApp', then the name of the XML file should be MyWonderfulApp.xml. Not context.xml. I spent the whole of last weekend figuring this out ... sigh ! HTH -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Needed : New home(s) for Tomcat on Linux StepByStep
Hi all ! The amount of traffic I'm getting for my Tomcat tutorial has shot up in recent days, and though I'm very happy with the response, I'm also more than a little worried about my bandwidth bill at the end of the month. Because I am currently unemployed, I'm not sure how long I can keep the site going before I have to close it down. Before you decide, I think it would be fair to warn you that I used to get about 30,000 hits on my site. Lately, I've been getting more than 2,000 hits a day! Some of it is for my other stuff, like Firebird and SecurityFilter, but a massive proportion comes from the Tomcat write-up. So, if anyone is willing to give my Tomcat docs a new home, I -- and I'm sure a lot of Tomcat newbies -- will be grateful. I have a few conditions though: 1. Because I update the documents, sometimes quite frequently, especially when important new information comes up, I will need a way to update the documents either online, or through email with the site maintainers. 2. Please don't put it on one of those free webhosting sites with plenty of pop-ups and advertisements. 3. You cannot charge money for this service. Hey, I don't (didn't ?) charge anyone to access my site. Yoav, do you think the Jakarta group be willing to accept my stuff ? Thanks to the many thousands out there who read my docs. Hope they helped you, in some small way. And if you know of any companies hiring, tell them about this poor Linux/UNIX sysadmin and Java programmer in Southeast Asia who'd make a good Tomcat administrator and give him a job. -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep
Hi Yoav ! Shapira, Yoav wrote: Hi, Technically, we can host this on jakarta.apache.org/tomcat. The network traffic numbers you quote would be a tiny fraction of what our servers receive. However: - You won't have direct write access to the docs: you'll have to send a message to tomcat-dev. Someone (most likely me ;)) would read and apply your changes ASAP, but it will sometimes take a day or two. No problems here ! - Technically speaking, you give up ownership of the docs and they become property of the ASF. Of course your credits remain (e.g. the Prepared By Pascal Chong line with a link to your email address) as they are, but things like links to your resume are dropped ;). I have no issue with this also. Anyway, my resume has become a liability in my local context, because I get rejection letters that say I'm over-qualified. ;) - We usually don't do this. We're happy to add links to external resources (for example, I also help with log4j's doc page, http://logging.apache.org/log4j/docs/documentation.html, which has numerous links to external articles). I'll be happy to add an external resources page, and link to your site. That way we avoid the above two issues. I can't afford to keep my site running, if the traffic continues to trend upwards. And I understand that this is rather unorthodox, so I really appreciate your effort ! - In the cases where we have done this (e.g. http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html), it's one simple page. Your docs are much more complex in structure, content, and style. They really deserve to be their own website ;) Thanks Yoav ! Because of my early problems (oops -- learning curve) with Tomcat, I thought that a tutorial was something that newbies would appreciate. That's why I structured my document the way I did. I realize that actually works against me right now. But I really appreciate your quick response on this! Thanks for your thoughts ! And I will wait for others to respond on this. -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context.xml - what's the secret?
Hi Joshua, There's your answer right there. Yes, the directory *has* to exist. In fact, when you install Tomcat (the full version, not sure about LE, though), you should see admin.xml and manager.xml inside that directory. You are using Tomcat 5, right ? If the directory does not exist, you should create it. If you're using Tomcat 4.1.x or earlier, I think that saving your context information inside a separate XML file is out of the question (that is, I don't think it would work). HTH White, Joshua A (HTSC, CASD) wrote: No problem. I am using the org.apache.catalina.ant.InstallTask ant task. As far as I know, this task does not copy the context XML into $CATALINA_HOME/conf/Catalina/localhost. Should it be doing this? In fact, the $CATALINA_HOME/conf/Catalina directory does not exist. Suggestions? -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep
Hi Tim ! Tim Funk wrote: The drawback (which is a good drawback!) is the tomcat4 and tomcat5 links below contain many files and can easily grow to many more as it becomes more comprehensive. Thanks, Tim ! The docs are not FAQ worthy but definitely worth linking to from the FAQ. Well, the documents weren't written to be a FAQ, and I think the structure does not lend itself well to a FAQ. The reason why I wrote it that way was because a lot of answers in FAQs assume or require a level of understanding that newbie Tomcat administrators may not possess. Instead of trying to cover the background and theory behind every question, I thought a walk-through tutorial would be a more effective way of building up understanding of the product. Here is my preference ... Copy the content of http://cymulacrum.net/writings/tomcat5/book1.html and http://cymulacrum.net/writings/tomcat4/book1.html to the Wiki. The book (after being copied to wiki) could be linked from the above links OR we could create a new link in the FAQ. This way - anyone may maintain/add/edit the content without needing any additional privledges. Actually, I like the Wiki idea, but maybe more along the lines of the MySQL documentation (http://www.mysql.com/doc/en/index.html), where users can add sections and comments. This would maintain the narrative integrity while allowing for digressions. I like it when many different people can(and do) write docs. Even if 10 people write about the same thing - they may say it in different ways, have a different nuance with their writing style, or emphasis a particular problem they had which can be helpful to such a diverse audience. I think we need more people writing docs for Tomcat. Though installation and basic configuration is covered quite well, and there is a LOT of stuff out there on Apache connectors, some advanced stuff, like writing your own realms or JNDI realms, or even the recent discussions about JNDI datasources are not covered -- or if they are, not adequately. Some people may be thinking this is kludgey. Yes it is. But I think its an OK tradeoff so we can keep the barrier of documentation creation low. Here, here. But I need to say a little something about my documents. The original document is actually in Docbook format, and I generate the HTML from that document using docbook utilities. If you want to put it into the Wiki, you'll need only the HTML (without the masthead), am I right ? I've never used Wiki before, so I may need help here. -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Thank you! : New homes for Tomcat on Linux Found !
Hi All ! When I woke up this morning, I was really surprised at the number of people who offered to help me out ! You guys are really generous ! Thanks a lot ! I think I have enough mirror sites, so I will close my request for new homes. To those who offered to host my pages, I will email you off-list. Thanks and Warmest Regards, -- ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to deploy a web application under Tomcat 5
I have a tutorial on my site that you can use : http://cymulacrum.net/writings/tomcat5/book1.html Shapira, Yoav wrote: Hi, Read the First Webapp guide: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html, especially the deployment organization. You can simply create these directories as you need. Yoav Shapira Millennium Research Informatics -Original Message- From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:41 AM To: '[EMAIL PROTECTED]' Subject: How to deploy a web application under Tomcat 5 Hello, I have installed Tomcat 5 under Solaris. Everything works fine. I now want to create my own application (MyApp) with the WEB-INF directory and so on. I do know there is a procedure to follow (you cannot just create the MyApp directory under the webapps dir!). I have read what the Tomcat document says but it is not clear to me. Could someone explain clearly the steps I am supposed to follow to have the web structure? Thanks -- Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat documentation in book format (in contrast to the myriad files in a Web documentation)
I use Docbook to write my documentation, and the same docbook XML file can be used to generate a single PDF document. Problem is, when you use it to generate HTML, the filenames are sometimes randomly generated. This can play havoc on search engines, like Google, because the location can change arbitrarily. And for just-released products, the amount of doc changes can sometimes make the documentation unsearchable (if the document is updated frequently). On the plus side: - Docbook is easy to learn - you get consistent formatting - you only need to code the document once to be able to generate it into HTML and PDF format (and it even looks like one of those authoritative manuals published by commercial software companies) Regards, pascal chong Rudolf Nottrott wrote: I'm not really sure what this involves. It didn't occur to me that documentation might be written as an Ant task. What would be the benefits of that? Any examples of that kind of thing somebody else might have done for other documentation? Rudolf At 09:40 AM 3/23/2004 -0500, you wrote: Hi, You know, that would make for an EXCELLENT ant task or maven plugin. Feel like writing it? ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Nottrott [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 5:57 PM To: Tomcat Users List Subject: Tomcat documentation in book format (in contrast to the myriad files in a Web documentation) Hi, I know the Tomcat documentation at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html it's excellent in content and complete, but I still vastly prefer the kind of documentation that I can read like a book, rather than navigating a myriad of file pieces linked together in Web fashion. My question is, does something like this exist for Tomcat? I mean the documentation as a single file (PDF, html, or whatever), that I could download and then read beginning to end? Thanks Rudolf - 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: Jk2 installation failure
Mike Burkhouse wrote: Yes, that is the correct path to apxs but it may not have been the binary that came with apache2. I did the following: 1) mv /usr/sbin/apxs /usr/sbin/apxs.old 2) cp /usr/local/src/httpd-2.0-48/support/apxs /usr/sbin/apxs 3) chmod 755 /usr/sbin/apxs 4) cd /opt/jakarta/jakarta-tomcat-connectors-jk-2.0.2-src/jk/native2 5) export CPPFLAGS=-I/usr/include/apr-0 6) chmod 755 ./buildconf.sh 7) sh ./buildconf.sh 8) ./configure --with-apxs=/usr/sbin/apxs --with-tomcat-41=/opt/jakarta/jakarta-tomcat --with-java-home=/usr/java/j2sdk1.4.2_03 And jk finally configured. I edited the server/apache2/Makefile as directed by changing JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix -laprutil-0 and ran make which just bombed with: /usr/bin/ld can not find lpcre This is painful. Did I miss linking a necessary library in the configure step? Mike Hi Mike ! Your guess is partially right. When you specify '-lpcre' you need to ensure that pcre-devel is installed. Painful ? You haven't even gotten to the configuration yet ! ;) This is one of the hassles with RPM-based Linux distributions. There is an easy way to get the necessary RPMs without hunting high and low on FTP sites or using rpmfind.net. Just install 'yum' and configure it to point to your nearest yum repository, instead of Red Hat's default repository (which is painfully slow). Then do a 'yum install pcre-devel' and it will find and install the package and all dependencies for you. The upside is, it makes things relatively painless. The downside is that it tends to install everything and the kitchen sink into your system. -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children are smart. -- Henry Mencken ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk3, Tomcat, Apache2 Wildcard problem (Linux)
Hi Ken, First, there is no mod_jk3 that I am aware of. You are referring to mod_jk2, perhaps? Second, please look at Appendix A of my Tomcat 5 write-up (http://cymulacrum.net/writings/tomcat5/c1215.html). I encountered the same problem. You wouldn't be using Mandrake or Mandrake's Advanced Extranet Server, would you? I encountered the problem on that platform. The only way of working around it that I know of, is to put the context mappings inside httpd2.conf instead of workers2.properties (see my docs for example on the syntax). I don't know why this happens -- perhaps Yoav can shed some light on this...? Hope this helps ! Ken Hensel wrote: Help please, I have searched far and wide, but found no answer to this question - although one guy had the same problem and reverted to mod_jk as a solution. This is not a solution for me. I have the following in my workers2.properties file: [uri:/myapp/] [uri:/myapp/*.jsp] [uri:/myapp/dir1/*.jsp] [uri:/myapp/dir1/dir2] [uri:/myapp/dir2/*] Everything works as expected except for the final one. The wildcard (*) by itself after a / is not working. Instead it tries to access the pathname on DocumentRoot instead of Tomcat (4.1). Has anyone had this problem? I used both binaries and also build Apache2 and jakarta-tomcat-connectors from source with the same problem. Any help would be appreciated. Thanks, Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children are smart. -- Henry Mencken ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context mapping and war
Jesse Vitrone wrote: When I try to install my application, I put the war file in the webapps directory, and in the server.xml I add a context mapping. When I start Tomcat, my war file isn't getting extracted. Unpack wars is set to true: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true If I comment out my context, the war gets extracted, but I need the context mapping. Once the war is extracted, I can put the context mapping in and everything works fine. Any idea why my war isn't getting extracted when the mapping is in there? Here's what I think is the reason, but I may be wrong ... If you are deploying a WAR file, Tomcat doesn't need to know anything about it initially (that is, no context entry in server.xml). You just create a directory, drop the WAR package there and start Tomcat. The WAR file will get unpackaged. No entry will be added into server.xml though. If you add the context mapping before deploying the WAR file, Tomcat assumes that you know what you are doing and automatically expects a web application at the docBase location, not a WAR file. If it finds a WAR file, it will assume that there is an error (because it is not finding what it expects to find). Am I close ? Anyway, whatever the reason, I don't think switching to Tomcat 5 will change this behaviour. I've done a little testing with WAR packages -- though not extensively. -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children are smart. -- Henry Mencken ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2.properties documentation
Daniel Savard wrote: Is there any documentation on the jk2.properties? There is the Jakarta documentation available on their site. Or you could dig through the source code. After reading the document: http://cymulacrum.net/writings/tomcat5/c831.html#USING_MOD_JK2 I still get a problem lying with my jk2.properties. However, I was unable to find any complete documentation on this. Also, the above document mention 4 connection modes (Unix sockets, JNI channels, APR sockets and channel sockets). Only Unix sockets is described (or at least shown). What about other modes? That's an insensitive question ! I have only one computer at home. This is my primary development workstation, and I don't want to mess around with it. I can't afford another machine because I am currently unemployed. So, unless you're willing to buy me another PC, or offer me a job, you're not likely to see any other configurations. I am getting the following error while starting tomcat: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/apps/apache2/lib/libjkjni.so: /usr/local/apps/apache2/lib/libjkjni.so: undefined symbol: apr_md5_final 2004-03-18 15:02:45 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 The undefined symbol is actually in the apr-util shared library, so I guess I need to add something in the jk2.properties to indicate where to search or explicitly load it. The library is in the LD_LIBRARY_PATH and also configured in the ld.so.conf and ld.so.cache. Your error does not lie in jk2.properties. Check that you have all the necessary packages installed (see http://cymulacrum.net/writings/tomcat5/c831.html#JK2_INTEGRATION_SETUP). If you are using Fedora Core, the package you need is apr-util-devel and apr-devel. If you're using Mandrake, the rpm packages are libapr-util (I think) and ... something else. So, locate the name of the package and install it. Because you did not mention your platform (Windows? Linux distro? Solaris?), I can't be more specific. -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children are smart. -- Henry Mencken ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Shameless Plug] Re: help needed building JK2 connector
Adrian Lanning wrote: Hi Matt, I have built JK2 successfully several times on Redhat 9 with Tomcat 5 and Apache 2.0.48. The problem I had with the default apache installed on rh 9.0 was that mine didn't have the apxs program or maybe it was some missing libraries.. In any case I had to build apache 2.0.48 from src first before I could get it to work. I used the tutorial by Pascal Chong (thanks Pascal!): http://cymulacrum.net/writings/tomcat5/book1.html Here's another resource for building jk2: http://www.thinlizard.com/lizard/modjk2.html hth, Adrian Lanning Thanks Adrian ! I have updated my website and revised my original Tomcat 4 write-up, and added a new appendix to the Tomcat 5 write-up that covers an alternative method of mapping web applications in a Tomcat-Apache-mod_jk2 configuration. This appendix is for people who keep getting 404 errors after integrating Apache and Tomcat, and applies in particular to Mandrake Advanced Extranet Server users. The credit for the solution should also go to Trevor Butler, who collaborated with me on this. Please note : because I use Docbook to generate my HTML pages, the URLs for the individual pages may change. If you wish to bookmark my stuff, use the following URLs only: Tomcat 4 : http://cymulacrum.net/writings/tomcat4/book1.html Tomcat 5 : http://cymulacrum.net/writings/tomcat5/book1.html Latest news and updates are posted on the home page : http://cymulacrum.net/ Please read the terms and conditions, if you are going to be using my documentation : http://cymulacrum.net/terms.html (People like you, Adrian, are nice, but I get an inordinate amount of hate mail for my write-ups. Hence the necessity for the Terms and Conditions) -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children are smart. -- Henry Mencken ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on linux : IBM JDK 1.3.1 -
Asif Chowdhary wrote: Hi, I am installing tomcat on RH9. Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz The installation works with JDK 1.4 but tomcat does not start when I try to use JDK 1.3.1 The browser returns the message Unable to connect to localhost with http://localhost:8080/. Any suggestions. You will need Java 1.4.1, or else disable NPTL for RH9 and Fedora Core 1, or you will get seg faults. I've written 2 docs, one for IBM Java and one for Tomcat 4/5, and posted it on my website (see signature below). -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children are smart. -- Henry Mencken ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JPackage RPMs for mod_jk2
Hi All, I'm trying to help someone out with his integration of Apache and Tomcat. He's using the jpackage RPM packages for mod_jk2 and he's having problems. I remember that someone on this list once got them working and posted the instructions. I tried looking for that email in the Tomcat list archives, but came up empty. Could someone point me to the email or re-post the instructions? TIA! -- A large number of installed systems work by fiat. That is, they work by being declared to work. -- Anatol Holt ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.30 and Apache 2.0.48
Hi Swen, I've written a tutorial on this at http://cymulacrum.net. If you're using Fedora (and Fedora's stock httpd), you should have no problems getting it working. If you're using some other distribution or compiling Apache from source, you may have problems. I'm having some wonderful discussions with different individuals over email on how to get mod_jk2 working with their particular setups. Please note, however, that I am not paid by the Jakarta group, and I am not tech support for them, Apache or any Linux distro. Regards, pascal chong Swen Schillig wrote: Hi * I'm new to tomcat but I'm still trying to get this running under Apache. Ok, tomcat standalone is running perfect with http://localhost:8080 without having me changing any file anywhere. After that I tried to get it running from within Apache. For that I learned, I need mod_jk2.so which I compiled and installed successfully (I used --with-apxs2 / --with-tomcat41 / --with-jni to configure) - the modules (mod_jk2, jkjni.so) are copied into /usr/local/apache2/modules. - the httpd.conf is modified accordingly LoadModule jk2_module modules/mod_jk2.so JkSet config.file /usr/local/apache2/conf/workers2.properties So far so good, I can see from the web-server logs and the web-server environment that everything was successful. But for some reason I can't get anything running from here (jsp, servlet). Of course I read almost everything from the jakarta.apache.org page but unfortunately each description is missing something. I couldn't find any straight forward HOWTO which works for the standard installation ! All the examples will lead to an error !!! Does someone have a set of the following files jk2.properties workers2.properties server.xml web.xml which I can just copy to my system to get at least some output !! Anything but an error would be highly appreciated !! If there's any change needed to httpd.conf please post this as well !! Thanks in advance ! Mit freundlichen Grüßen / Best Regards Swen Schillig IBM Germany, Mainz - AIS Storage Subsystems - 0A156 Phone Internal : *122-2805 External : +49(0)6131-84-2805 Mobile : +49(0)172-7344938 Fax Internal : 921-6708 External : +49(0)6131-84-6708 e-mail : [EMAIL PROTECTED] -- ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
Hi Jerry, You *are* right in saying that there is no additional configuration necessary for Tomcat to serve JSP files. The way I see it, there are several possibilities: 1. If you say that you can access your web application servlets, that means that your web application has been deployed correctly. This means that the 404 error is not related to that reason (if indeed your servlets can be accessed) 2. If you changed the filename and filename extension (i.e. changed it from open.jsp tp open.txt or open.html), and you still cannot even find the page, 2 possibilities come to my mind : - your URL is wrong : that is, if your web application is called EBook and the servlets are accessed using the URL http://localhost/EBook/servlet/someservlet, then your JSP file can only be accessed using the URL http://localhost/EBook/open.jsp. Ok, say you don't want to go through Apache, then you type http://localhost:8080/EBook/open.jsp. Notice that in both cases, you don't use the invoker (i.e. no servlet in the URL). Using the invoker is wrong for JSPs. - you mistyped the filename. This is not so uncommon as you might think. The problem is that, depending on your browser, the browser may cache the results. For example, if you are using Mozilla, if you get a 404 error once and re-type the URL again, you will always get a 404 error, until you clear your cache! Make sure you clear your cache before you try accessing the page again. 3. You must be very tired and frustrated. Try taking a long break, go for a run or something. Then come back to try again. You may even get the whole thing working automagically ! I have written a step by step on deploying web applications at http://cymulacrum.net/tomcat_toc.html because I thought this was the weakest part of the Tomcat documentation. Try working through my toy example there and see if it works. Regards, pascal chong Jerry Ford wrote: Yes, I agree, Apache is an unnecessary complication for the moment and I am focused now on getting things to work through port 8080. But Tomcat does serve up pages when I run the app through Apache---for one thing, the error messages are Tomcat-generated, not Apache, and for another, the servlets do work, which Apache cannot make happen without Tomcat. I don't fully understand the invoker servlet myself, but here's what I think I know: The invoker mapping only applies to servlets, not html or jsps, and the servlets are working (at least through Apache). If the invoker mapping specifies /servlets/* then servlets must be included in the URL. By taking it out of the invoker mapping, it does not need to be included in the URL. So, http://localhost/servlets/do_something is required if the mapping is as you say it should be, and http://localhost/do_something is the URL if the mapping is as I have it. Is that not correct? Jerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need information about Tomcat deployer/embed
Hi all, I'm updating my Tomcat on Linux Step By Step for Tomcat 5 (http://cymulacrum.net/tomcat/tomcat_toc.html) and I need some clarification on something: I noticed that there are now 2 other packages available for download, in addition to the base Tomcat package : a Deployer and an Embed package. I was curious as to what those 2 packages were, so I downloaded them and unpacked them and looked at the contents. So far, what I have determined is this: the Deployer package is really a client-side deployer package that would enable a Java developer to deploy his/her webapps to a Tomcat server (without restarting the server?). The attached manual.html with the package really doesn't describe what the package is for. As for the Embed package, I'm still trying to figure it out. I googled around, but found nothing about the Tomcat 5 embed package, though I did find some mention about a Tomcat 3 embed package. There's no Tomcat executable script inside the package, so I am assuming that the Embed package isn't really a stand-alone Tomcat for distribution is it ? Could someone explain what the Deployer and Embed packages are for? Thanks and Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDIRealm question
Hi All, I have a configuration that is not covered in the JNDIRealm HOWTO, and was wondering if someone else has tried this before : I am using OpenLDAP 2.1.22 on Red Hat 9. For the DN, I am using the CN instead of the UID (i.e., dn: cn=Zhu De,ou=People,o=Cymulacrum instead of uid=zhude,ou=People,o=Cymulacrum), and the roles recognized by Tomcat are in the Groups OU. My question : how do I setup a Tomcat JNDI Realm such that it looks up roles based on the UID instead of the DN ? In the JNDIRealm HOWTO, the instructions assume that the DN is using the UID instead of the CN. For the userSearch, I would substitute with (uid={0}), since I need to do a search and comparison with an attribute. But to retrieve the role ... I'm not so sure about how to do this. I'm thinking that the stanza below would not work (no, I haven't tried it yet). Does anyone know how it should look ? Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost:389; userBase=ou=people,o=Cymulacrum userSearch=(uid={0}) userRoleName=memberOf roleBase=ou=groups,o=Cymulacrum roleName=cn roleSearch=(uniqueMember={0}) / Using the CN instead of the UID for the DN is actually (in my experience anyway) quite common -- Lotus Domino/Notes uses the CN for logging in, and Novell eDirectory too (though I suppose both can be configured to use the UID instead). Thanks in advance, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Montavista HardHat Linux winth J9 VM?
What's a J9 VM ? If you mean does Tomcat run on Linux with IBM's Java 2 SDK 1.4.1/1.4/1.3, the answer is yes but you may need to setup some environment variables and maybe download a different package for Montavista Hardhat Linux (does it support rpms?). Give us more information about your environment. Regards, pascal chong Pavoni Cristian wrote: Is it possible to run Tomcat on Ibm J9 VM running on HardHat Linux by Montavista? In such case, which versions of Tomcat? Thanks, Cristian Software Developer Selta Telematica Spa www.selta.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on mod_jk2 (working)
Hi Nikola, I have a write-up on this configuration. Only difference is that I am using the Falsehope RPMs for Apache instead of Red Hat's. You can access it at http://cymulacrum.net/tomcat/jk2_compile.html I think what you are referring to is serverRoot, not serverConf. This is a reported mistake or typo in the code for jk2. Take note of the files and the permissions associated with them (see my document), it took me a while to figure them all out too. Also, forget about the Right Way of doing things. I have found that with most Open Source products, there is more than one Right Way and many wrong ways to setup and configure stuff. Although you really should not lock down the server before you finish installing everything. That can be an exercise in frustration. Regards, pascal chong Nikola Milutinovic wrote: Hi all. I tried and managed to setup mod_jk2 with UNIX socket channel and I have some questions. First I tried to do it without apr handler. It would open a socket, but would refuse connection from Apache. Then I tried with apr, reasoning that AF_UNIX socket is not native to JVM and JNI should be used. Why it opened a socket is beyond me. That threw errors, complaining on being unable to find ${serverConf}/conf/workers2.properties. Whatever I did in jk2.conf gave no result. I recalled from my previous attempt that *that* variable was to be set via environment, so I addedd to tomcat4.conf (this is a 4.1.24 RPM) statement: serverConf=/etc/httpd/2.0 export serverConf After restarting Tomcat, everything worked (except for Tomcat not being able to read SHM file, but I'll comment it out, anyway). QUESTIONS - 1. Is this the right way? Is this the way it was meant to be used? I do realize that AF_UNIX would require JNI and I have noticed that jkjni.so wants to parse workers2.properties. I'm not sure that it should and in my case it is just a burdon, unless I'm missing something. 2. Is there a more elegant way of setting serverConf property? It did occur to me that JK-JNI was meant for something else, namely running Tomcat within Apache process group, among other things. So, it is not unthinkable that in such a scenario Apache would set that environment variable. Consequently, UNIX socket would be a sort of a patch/workaround for us who want to keep things under wraps. Honestly, being a UNIX/Linux/PosgreSQL/Tomcat/Apache admin at the same time can be tiresome. Since I've locked down Mandrake to Paranoid Security, it's firewall is denying many things, like ping localhost. Having to poke and open ports for JK seamed like more work and besides, UNIX socket is supposed to be faster. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with JNDIRealm
It looks like one of you attributes is missing (i.e. null). Do you have a role associated with the username? I'm also having problems with JNDIRealm -- I can't get it working ! Going to check if it is because I'm missing some libraries. Regards, pascal chong Jörn Heid wrote: I have successfully installed mod_auth_ldap with Apache. Here's the configuration: LDAP_Protocol_Version 2 LDAP_Server server LDAP_Port port Base_DN ou=People,o=company,c=DE UID_Attr_Alt uid require valid-user Bind_DN cn=appadmin,o=company,c=DE Bind_Pass password I want to use this in Tomcat. I tested a lot of configurations. Here's one of it: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://server:port userPattern=uid={0},ou=People,o=company,c=DE roleBase=ou=People,o=company,c=DE roleName=uid roleSearch=(uid={0}) roleSubtree=true connectionName=cn=appadmin,o=company,c=DE connectionPassword=password / When testing it with a working user/pass combination I get: 2003-11-26 21:17:29 JNDIRealm[Standalone]: lookupUser(jheid) 2003-11-26 21:17:29 JNDIRealm[Standalone]: dn=uid=jheid,ou=People,o=Company,c=DE 2003-11-26 21:17:29 JNDIRealm[Standalone]: validating credentials by binding a s the user 2003-11-26 21:17:29 JNDIRealm[Standalone]: binding as uid=jheid,ou=People,o=Company,c=DE 2003-11-26 21:17:29 JNDIRealm[Standalone]: Exception performing authentication javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; rema ining name '' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3013) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740) at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1294) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(Componen tDirContext.java:213) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Par tialCompositeDirContext.java:121) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Par tialCompositeDirContext.java:109) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirCont ext.java:121) at org.apache.catalina.realm.JNDIRealm.bindAsUser(JNDIRealm.java:127 But when I'm using a wrong user/pass combination, I get: 2003-11-26 21:27:59 JNDIRealm[Standalone]: bind attempt failed 2003-11-26 21:27:59 JNDIRealm[Standalone]: Username jheid NOT successfully authenticated Can anybody help me please? JOERN - 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: Many process on Red Hat
Did you set this environment variable : export LD_ASSUME_KERNEL=2.2.5 I think you'll need it. Regards, pascal chong Walter do Valle wrote: Hello all I'm running Tomcat 4.1 with IBM J2RE 1.3.0 on Red Hat Linux, but some times Tomcat turns crazy and open many process (about 80 - 90) and hangs. When this happens, command tomcat4 stop does not work. It's necessary to kill process by process. At this time, I'm running seven different applications in my tomcat instalation. If I turn to Sun J2SDK 1.4.X? Anyone has any suggestion about this problem? Thanks for any help. Walter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RedHat 9 tomcat
Red Hat 9 uses the New Posix Thread Library (NPTL), and has been known to even break some Java SDK's (for example, if you're using IBM's Java 2 SDK 1.3.1, you'll need to put in an environment variable LD_ASSUME_KERNEL=2.2.5 or you'll get a segmentation fault). I know I'll probably get flamed for this, but, if there is no compelling reason to upgrade to RH9, you really shouldn't. pascal chong Santos Jha wrote: basically I have a singleton which has a synchronized method. I was expecting that each thread that access this method will be able to complete it without getting pre emptied. From my log I can see such thing does not exist. I tried to use sun's jdk 1.4.2 and I also used IBM jdk 1.4 when I could not get the desired result. santos Darian Shimy wrote: What were you expecting to happen? What JDK versions were in 8 and 9 (java -version)? -Original Message- From: Santos Jha [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 4:33 PM To: Tomcat Users List Subject: RedHat 9 tomcat Hello All, Today I tired to port my application which was running fine on Redhat 8 to redhat 9. My Application spawns multiple threads. What I found interesting was thread were not behaving as they were supposed to. I am not sure do I have to do anything special about RedHat 9? Please let me know if some one have any clue. santos - 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: Looking for mod_jk2
I'm using the Falsehope RPMs for Apache 2, not Red Hat's. That could be the reason why it compiles cleanly on my system and not on others. Regards, pascal chong Mark Eggers wrote: Dave, The linker is looking for libapr-0.so. I don't know what you used in your ./configure run. On some installations the link between the current version of libapr and libapr-0.so (and libapr-0.so.0) does not get made when Apache is installed. This appears to be mostly a problem with the RedHat RPM distribution. You may find that to be true also with libaprutil. To solve those problems, do the following. 1. cd to the Apache lib directory 2. soft link the current libs to the base names 3. cd back to the source directory 4. rerun configure (to make sure) 5. run make For example: (1) cd /home/apache/lib (2) ln -s libapr-0.so.0.9.4 libapr-0.so ln -s libapr-0.so.0.9.4 libapr-0.so.0 ln -s libaprutil-so.0.9.4 libaprutil-so ln -s libaprutil-so.0.9.4 libaprutil-so.0 (3) cd /src/jakarta-tomcat-connectors/jk/native2 (4) ./configure (5) make Note that you will not need jkjni.so unless you attempt to run either UNIX sockets or in-process communication. IP sockets work fine without the library. The last time I tried UNIX sockets or in-process communication on RedHat Linux 9 I was unsuccessful. There are some linking problems that I think have more to do with the way Redhat lays out their system via RPMs than the code. I recently checked out the latest versions of the connectors, apr, and apr-util from cvs.apache.org. I may try UNIX sockets and in-process communication again. However, since this is a development machine, I am fine with the IP socket connection. HTH. /mde/ just my two cents . . . . __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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: Integrating Tomcat 4.1.29 with Apache 2
David, I have a sample UNIX sockets configuration on this page (http://cymulacrum.net/tomcat/jk2man_channel_UNIX.html ). This page is actually linked from the page I mentioned to you earlier for the Apache 2 and Tomcat integration with mod_jk2 (http://cymulacrum.net/tomcat/jk2_compile.html) Regards, pascal chong Dennis McRitchie wrote: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html -Original Message- From: Dave Morrow [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 1:19 PM To: 'Tomcat Users List' Subject: Integrating Tomcat 4.1.29 with Apache 2 Hi all, well, as seen by my previous posting, I have finally gotten mod_jk2.so and jkjni.so installed. Does anyone have an idiots guide to getting Apache and Tomcat working together. A basic configuration is all I need. David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for mod_jk2
Hi Dave, The compile is not really so difficult. I've written a section on this on my website : http://cymulacrum.net/tomcat/jk2_compile.html. Regards, pascal chong Dave Morrow wrote: Hi, I was just on jakarta.apache.org and cannot find a Redhat 9 / Apache 2 RPM binary. Anyone know where I can get one. I really do not want to have to compile etc (requires ant and the likes which I am not familiar with). David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 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: second try : help needed for tomcat -jsp issue
I'm thinking that if it is the servlet, not the JSP, that is returning results to the browser, this can easily happen if you don't use setContentType(text/html). Regards, pascal chong Schalk wrote: Venkatesh Does you client access the application by a URL similar to: http://localhost:8080/application/entry.servlet ? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Venkatesh Rachapudi [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 7:59 AM :: To: 'Tomcat Users List' :: Subject: RE: second try : help needed for tomcat -jsp issue :: :: Actually this is the entry page for getting into the application, :: Its happening in all the machines at the customer site,(though its not :: reproducable in our machines) :: We have checked it in InternetExplorer ONLY , as this application is :: good for IE , :: :: Regards :: Venkatesh :: :: -Original Message- :: From: Vincent Aumont [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 11:22 AM :: To: Tomcat Users List :: Subject: Re: second try : help needed for tomcat -jsp issue :: :: :: So the url you enter is a JSP? Maybe you should post it. :: Does it happen only with your customer's browser, or with any browser? :: :: -Vincent. :: :: Venkatesh Rachapudi wrote: :: :: Yeah sure, sorry for not providing the full info .. :: :: The application is MVC architecture,is being accessed by a servlet :: alias,which is correctly mapped in web.xml And the servlet will be :: sending the response through jsp, the jsp is very much there in the :: specified path. :: :: The version of tomcat is 3.1(2) , the server is up and running and the :: remaining functionlity is functioning well (calls landing .. This is a :: :: telecom product in which tomcat is a plugin) The version of jdk is 1.3 :: We have seen some solutions like upgrading jdk to 1.4 and reinstalling :: tomcat, :: But these are not acceptable to client. :: :: Please let me know if you know need any more information, :: :: :: Regards :: Venkatesh :: :: -Original Message- :: From: Schalk [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 10:57 AM :: To: 'Tomcat Users List' :: Subject: RE: second try : help needed for tomcat -jsp issue :: :: :: Can you give some more information as to how this URL is accessed? :: :: Kind Regards :: Schalk Neethling :: Web Developer.Designer.Programmer.CEO :: Volume4.Development.Multimedia.Branding :: emotionalize.conceptualize.visualize.realize :: Tel: +27125468436 :: Fax: +27125468436 :: email:[EMAIL PROTECTED] :: web: www.volume4.co.za :: :: This message contains information that is considered to be sensitive or :: :: confidential and may not be forwarded or diclosed to any other party :: without the permission of the sender. If you received this message in :: error, please notify me immediately so that I can correct and delete :: the original email. Thank you. :: :: :: -Original Message- :: :: From: Venkatesh Rachapudi [mailto:[EMAIL PROTECTED] :: :: Sent: Tuesday, November 11, 2003 6:47 AM :: :: To: [EMAIL PROTECTED]; 'Tomcat Users List' :: :: Subject: second try : help needed for tomcat -jsp issue :: :: :: :: hi All :: :: how are you doing? :: :: i have an urgent issue with my client :: :: thought you are the person who can actually give the solution :: :: :: :: my customer is facing a problem , :: :: when he is trying access the application , by typing the url , :: :: the page is not opening in the browser, :: :: but its throwing up the dialog box for download , :: :: the server is tomcat :: :: and its up and running :: :: what will be the probem , do we need to set any configuration :: :: :: :: regards :: :: Venkatesh :: :: :: :: - :: 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: Connector Problem
I think Tomcat can't find your mod_jk.so file. What does line 4 of mod_jk.conf say ? Probably the location there is wrong? Regards, pascal chong [EMAIL PROTECTED] wrote: Hi, When starting apache, following error occurs, any idea why ? Syntax error on line 4 of /PTSDEV/jakarta-tomcat-4.1.29/conf/auto/mod_jk.conf: Cannot load /PTSDEV/httpd-2.0.47/modules/mod_jk.so into server: ld.so.1: /PTSDEV/httpd-2.0.47/bin/httpd: fatal: relocation error: file /PTSDEV/httpd-2.0.47/modules/mod_jk.so: symbol ap_psprintf: referenced symbol not found Best Regards, Loh Choon Leng Chartered Semiconductor Manufacturing Ltd. 60 Woodlands Ind. Park-D St-2 Singapore 738406 Off : +65-63603684 HP : +65-98463801 Email : [EMAIL PROTECTED], Fax : +65-63603816 LOH Choon Leng/Mfg Plan Sys/CHRT/ST [EMAIL PROTECTED] Domain 07/11/2003 05:18 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: LOH Choon Leng/Mfg Plan Sys/CHRT/ST Group) Subject: Re: Connector Problem Hi, I have downloaded the automake, autoconf, libtool from GNU and installed, and try to execute the following command to build the connector, however, following error occur. cannot proceed further ... anyone can help ? I did not seems to get libtoolize installed when installing the libtool. $PWD ./buildconf.sh libtoolize --force --automake --copy aclocal aclocal: configure.in: 22: macro `AM_PROG_LIBTOOL' not found in library automake -a --foreign -i --copy configure.in:14: version mismatch. This is Automake 1.7.8, configure.in:14: but the definition used by this AM_INIT_AUTOMAKE configure.in:14: comes from Automake 1.6. You should recreate configure.in:14: aclocal.m4 with aclocal and run automake again. autoconf Best Regards, Loh Choon Leng Chartered Semiconductor Manufacturing Ltd. 60 Woodlands Ind. Park-D St-2 Singapore 738406 Off : +65-63603684 HP : +65-98463801 Email : [EMAIL PROTECTED], Fax : +65-63603816 [EMAIL PROTECTED] 08/11/2003 03:49 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: LOH Choon Leng/Mfg Plan Sys/CHRT/ST Group) Subject: Re: Connector Problem Hi, Down load automake, autocon etc from sunfreeware.com and install it with pkgadd -d command.(download .local.gz files). Regds Geetha Thanu Bioinformatics CDFD,Hyderabad. -REPLY TO- Date:Fri Nov 07 09:53:17 CST 2003 FROM: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Connector Problem Hi ! I am using solaris 2.8, will this set of instruction works fine as well ? where do I get rpm : autmake, autoconfig, m4 libtool from ? Best Regards, Loh Choon Leng Chartered Semiconductor Manufacturing Ltd. 60 Woodlands Ind. Park-D St-2 Singapore 738406 Off : +65-63603684 HP : +65-98463801 Email : [EMAIL PROTECTED], Fax : +65-63603816 Chong Yu Meng [EMAIL PROTECTED]07/11/2003 09:28 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: LOH Choon Leng/Mfg Plan Sys/CHRT/ST Group) Subject: Re: Connector Problem Hello! I have a set of instructions that may help you (see http://www.cymulacrum.net/tomcat/jk2_compile.html). Just updated it yesterday. Are you using Linux or Solaris. If Linux, my instructions cover the following configuration : Apache 2.0.47 (rpm) + Tomcat 4.1.29 + mod_jk2. I used to work for your competitor across the street in Woodlands (TECH Semiconductor) several years ago. Regards, pascal chong [EMAIL PROTECTED] wrote: When following the following procedure to build the connector, Building * Install tomcat(3.3, 4.0, 4.1). Install Apache(1.3, 2.0). Any combination is fine, but j-t-c developers should have them all. * Copy build.properties.sample to build.properties * Edit build.properties to taste. In particular it's important to set the paths to tomcat and apache. * Run ant. It'll build modules for all the detected containers
Re: Connector Problem
You could try to locate automake 1.6 and install it instead of automake 1.7, or you could regenerate aclocal.m4 (I don't know how to do that). Regards, pascal chong [EMAIL PROTECTED] wrote: Hi, I have downloaded the automake, autoconf, libtool from GNU and installed, and try to execute the following command to build the connector, however, following error occur. cannot proceed further ... anyone can help ? I did not seems to get libtoolize installed when installing the libtool. $PWD ./buildconf.sh libtoolize --force --automake --copy aclocal aclocal: configure.in: 22: macro `AM_PROG_LIBTOOL' not found in library automake -a --foreign -i --copy configure.in:14: version mismatch. This is Automake 1.7.8, configure.in:14: but the definition used by this AM_INIT_AUTOMAKE configure.in:14: comes from Automake 1.6. You should recreate configure.in:14: aclocal.m4 with aclocal and run automake again. autoconf Best Regards, Loh Choon Leng Chartered Semiconductor Manufacturing Ltd. 60 Woodlands Ind. Park-D St-2 Singapore 738406 Off : +65-63603684 HP : +65-98463801 Email : [EMAIL PROTECTED], Fax : +65-63603816 [EMAIL PROTECTED] 08/11/2003 03:49 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: LOH Choon Leng/Mfg Plan Sys/CHRT/ST Group) Subject: Re: Connector Problem Hi, Down load automake, autocon etc from sunfreeware.com and install it with pkgadd -d command.(download .local.gz files). Regds Geetha Thanu Bioinformatics CDFD,Hyderabad. -REPLY TO- Date:Fri Nov 07 09:53:17 CST 2003 FROM: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Connector Problem Hi ! I am using solaris 2.8, will this set of instruction works fine as well ? where do I get rpm : autmake, autoconfig, m4 libtool from ? Best Regards, Loh Choon Leng Chartered Semiconductor Manufacturing Ltd. 60 Woodlands Ind. Park-D St-2 Singapore 738406 Off : +65-63603684 HP : +65-98463801 Email : [EMAIL PROTECTED], Fax : +65-63603816 Chong Yu Meng [EMAIL PROTECTED]07/11/2003 09:28 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: LOH Choon Leng/Mfg Plan Sys/CHRT/ST Group) Subject: Re: Connector Problem Hello! I have a set of instructions that may help you (see http://www.cymulacrum.net/tomcat/jk2_compile.html). Just updated it yesterday. Are you using Linux or Solaris. If Linux, my instructions cover the following configuration : Apache 2.0.47 (rpm) + Tomcat 4.1.29 + mod_jk2. I used to work for your competitor across the street in Woodlands (TECH Semiconductor) several years ago. Regards, pascal chong [EMAIL PROTECTED] wrote: When following the following procedure to build the connector, Building * Install tomcat(3.3, 4.0, 4.1). Install Apache(1.3, 2.0). Any combination is fine, but j-t-c developers should have them all. * Copy build.properties.sample to build.properties * Edit build.properties to taste. In particular it's important to set the paths to tomcat and apache. * Run ant. It'll build modules for all the detected containers. * If your system have a current working version of libtool, run ant native. This will build the native connectors for the detected servers ( both jk and jk2). Alternatively, you can build using configure/make/dsp/apxs. * Run ant install. This will copy the files in the right location in your server/container. Optional: on unix systems you can create symlinks ( XXX script will be provided ) and avoid copying. Following error occur, pls help ... $PWD $ANT_HOME/bin/ant Buildfile: build.xml init: [echo] / apache20: apache13: [so] Compiling 18 out of 18 Compiling /PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_msg_buff.c BUILD FAILED file:/PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/build.xml:222: java.io.IOException: libtool: not found Total time: 2 seconds Best Regards, Loh Choon Leng Chartered
Re: Connector Problem
Hello! I have a set of instructions that may help you (see http://www.cymulacrum.net/tomcat/jk2_compile.html). Just updated it yesterday. Are you using Linux or Solaris. If Linux, my instructions cover the following configuration : Apache 2.0.47 (rpm) + Tomcat 4.1.29 + mod_jk2. I used to work for your competitor across the street in Woodlands (TECH Semiconductor) several years ago. Regards, pascal chong [EMAIL PROTECTED] wrote: When following the following procedure to build the connector, Building * Install tomcat(3.3, 4.0, 4.1). Install Apache(1.3, 2.0). Any combination is fine, but j-t-c developers should have them all. * Copy build.properties.sample to build.properties * Edit build.properties to taste. In particular it's important to set the paths to tomcat and apache. * Run ant. It'll build modules for all the detected containers. * If your system have a current working version of libtool, run ant native. This will build the native connectors for the detected servers ( both jk and jk2). Alternatively, you can build using configure/make/dsp/apxs. * Run ant install. This will copy the files in the right location in your server/container. Optional: on unix systems you can create symlinks ( XXX script will be provided ) and avoid copying. Following error occur, pls help ... $PWD $ANT_HOME/bin/ant Buildfile: build.xml init: [echo] / apache20: apache13: [so] Compiling 18 out of 18 Compiling /PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_msg_buff.c BUILD FAILED file:/PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/build.xml:222: java.io.IOException: libtool: not found Total time: 2 seconds Best Regards, Loh Choon Leng Chartered Semiconductor Manufacturing Ltd. 60 Woodlands Ind. Park-D St-2 Singapore 738406 Off : +65-63603684 HP : +65-98463801 Email : [EMAIL PROTECTED], Fax : +65-63603816 David Rees [EMAIL PROTECTED] 05/11/2003 02:49 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: LOH Choon Leng/Mfg Plan Sys/CHRT/ST Group) Subject: Re: Connector Problem [EMAIL PROTECTED] wrote: Trying to build the connector, got the following error, anyone can help? $PWD ./buildconf.sh libtoolize --force --automake --copy ./buildconf.sh: libtoolize: not found aclocal ./buildconf.sh: aclocal: not found automake -a --foreign -i --copy ./buildconf.sh: automake: not found autoconf ./buildconf.sh: autoconf: not found You need to have the tools automake and autoconf installed on your system to run buildconf.sh. But in recent bundled of jakarta-tomcat-connectors, you might be able to skip that step and just run ./configure. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [This e-mail is confidential and may also be privileged. If you are not the intended recipient, please delete it and notify us immediately; you should not copy or use it for any purpose, nor disclose its contents to any other person. Thank you.] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the [error] mod_jk child init 1 -2 after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by [error] mod_jk child init 1 -2 I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/jk _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprImp l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml Context = localhost When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote: I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it is obviously unusable now. Regards, pascal chong Tony F. White wrote: Hello, I am hoping someone might be able to help me work out what on earth is going on here, we have just updated tomcat to 4.1.29 and we are having problems getting the connectors from apache to tomcat to work. I am using the connectors from 4.1.29 to compile the mod_jk2.so but every time I try to start apache with it I get the following (child numbers change each time): [Wed Nov 05 11:54:07 2003] [error] jk2_init()
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Almost finished my updated mod_jk2 compilation write-up. Should be on my site by today. You will need the following packages installed (rpm or source): - automake - autoconf - m4 - libtool (BTW, good company you work for! I use the site quite frequently to translate Mandarin to English and vice versa...) Regards, pascal chong Tony F. White wrote: Hi Chong, Load balancing is just a change in the configuration file thats all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the [error] mod_jk child init 1 -2 after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by [error] mod_jk child init 1 -2 I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/j k _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprIm p l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk 2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml Context = localhost When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Tony ! I'm surprised you got the ant command working ! I tried that first, and wasted a lot of time tinkering with the build.xml with no success. I always use the configure command now. Ant is a great tool, but I suspect that the buildfile is broken somehow (or maybe it's just me !). Regards, pascal chong Tony F. White wrote: Hi Chong, I have managed to get the connectors working... This time I downloaded the JK2 connectors from http://jakarta.apache.org/site/sourceindex.cgi And did an old fashioned cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And copy to apache2/modules/ So far so good... Previously I was doing cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ cp build.properties.sample build.properties vim build.properties ant native and copy... The native method has normally worked for me no problems, I hadn't done the configure make with the jakarta-tomcat-connectors-4.1.29 as there isnt a configure command Thanks for your help, and I am glad you like our services. Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Thanks for the link, Tony ! Just uploaded my updated write-up with corrections and modifications to the mod_jk2 compile. Regards, pascal chong Tony F. White wrote: Hi Chong, I know I did have some problems when I first tried it but found this page http://www.pubbitch.org/jboss/mod_jk2.html I dont use jboss but step 8 certainly did solve at least one of the problems I came across. Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it is obviously unusable now. Regards, pascal chong Tony F. White wrote: Hello, I am hoping someone might be able to help me work out what on earth is going on here, we have just updated tomcat to 4.1.29 and we are having problems getting the connectors from apache to tomcat to work. I am using the connectors from 4.1.29 to compile the mod_jk2.so but every time I try to start apache with it I get the following (child numbers change each time): [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28446 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28449 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28452 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28455 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28458 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28461 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28463 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28464 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28467 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28470 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28473 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28476 in none of the 1024 scoreboard slots The connection to tomcat fails, I get a 404 whenever it tries to access the servlets, there are no other errors logged. On the tomcat side every time I restart it I get CoyoteConnector Coyote can't register jmx for protocol not sure what that means but if I use the mod_jk2 from our old install it can connect to tomcat no problems. Thanks in advance! Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jserv Vs Tomcat
Hmm... the problem could actually be with Apache itself. Can you check what your MaxClients setting in httpd.conf is? By default, I think it is 11. You can probably set it to 128 and see what happens. Regards, pascal chong Mrs. Geeta Thanu wrote: Hello all, I am new to this list. I was using jserv with apache to see the servlet pages. It is running on solaris 8 and the problem I am facing with Apache Jserv is , I have set the security.maxConnections=50 (default) but still I feel the TOP command shows so many threads and if it is above 100 , the whole jserv hangs and unable to process any request. Can anybody from this list suggest me what i can do to solve this problem with jserv. If installing tomcat is the only solution how to down load it , becos when i tried downloading it from jakarta site and when I untar it it is always showing directory check sum error. Pls guide me Thanks in advance Geetha - 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: [ANN] Updated Apache + Tomcat RH HOWTO
Hi John, You may want to correct the URL -- it says localhost in your email. :) Regards, pascal chong John Turner wrote: Apache 2 HTTP + Tomcat + JK. Updated with the most recent JK source version, 1.2.5. http://localhost/johnturner/howto/apache2-tomcat4127-jk-rh9-howto.html Virtual hosting HOWTO coming soon. Comments and suggestions welcome. 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: RH9's Apache 2 and Tomcat 4
Hi Mike ! I guess the best way to test my theory is to try integrating Tomcat with Apache 2 yourself. There are real benefits for using RH's rpms, but if the integration takes too much effort, it may not be worth it. I haven't touched Tomcat for about 4 months now, but when I was working on my document for integrating Tomcat and Apache way back in May, I remember having considerable trouble with RH9's Apache 2, which led me to use Falsehope's rpms instead. Regards, pascal chong Mike Millson wrote: There are two compelling benefits to installing the RedHat rpms: 1) Updates and bug fixes can be installed automatically from the Red Hat Network (https://rhn.redhat.com/). 2) Startup and shutdown scripts are already configured and available. I would like to weigh these benefits against any specific disadvantages to using the RedHat rpms. I know, this is a tomcat list, but I think it's relevant. Thank you, Mike On Sun, 2003-10-05 at 10:38, [EMAIL PROTECTED] wrote: I am using RH9 with the Apache2 that comes with it. Recently I've installed Tomcat5 with mod_jk2 without too many problems (jakarta-tomcat-5.0.7.tar.gz and mod_jk2-ap20-2.0.1-1jpp.i386.rpm). Proper configuration of workers2.properties and jk2.properties is essential I believe. I got a few sites running as virtual hosts on Apache2 as well as on Tomcat5 and everything seems to be fine so far. http://archive.apache.org/dist/jakarta/tomcat-5/v5.0.7-alpha/bin/ http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/v2.0.1/rpms/ - http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/v2.0.1/doc/ Cheers, Bart Quoting Mike Millson [EMAIL PROTECTED]: I have heard the claims before about not using the default Apache that comes w/ RH 9, but I have never seen any concrete evidence for not doing this. Do you have any specifics such as articles or facts that show the downside of using the default Apache that comes w/ RH? Thank you, Mike On Sat, 2003-10-04 at 21:54, Chong Yu Meng wrote: Hi Dave, Do NOT use the default Apache that comes with RH9 ! According to some reports, there are some serious bugs inside it. I'm using RH9, but my Apache comes from Falsehope.com (http://ftp.falsehope.com/home/gomez/apache2/). It takes a bit of tweaking, but you can get the Falsehope rpm to play nice with Tomcat. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RH9's Apache 2 and Tomcat 4
Hi Dave, Do NOT use the default Apache that comes with RH9 ! According to some reports, there are some serious bugs inside it. I'm using RH9, but my Apache comes from Falsehope.com (http://ftp.falsehope.com/home/gomez/apache2/). It takes a bit of tweaking, but you can get the Falsehope rpm to play nice with Tomcat. Regards, pascal chong Dave Thomas wrote: We have an application that we have been suing Apache 1.3 with Tomcat 3.3 with for a while and I would like to test out using our app with Tomcat 4 and RedHats default install of Apache 2. I have found a few 'how tos' on the subject but they all seem to be a bit dated and do not apply to the current release of Tomcat and mod_jk2. Can anyone suggest any docs or offer any info on this subject? Also, how if the performance for Tomcat 4 vs Tomcat 3? Thanks for any info, Dave Thomas [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 on Linux HOWTO
Michael Cardon wrote: I have compiled a HOWTO using Linux 8.0, Tomcat 4.1.24, and mod_jk2. I hope this will help some people. I would also like to hear from anyone with any suggestion on how I could improve the setup I've done. I'm always learning Thanks. http://www.cardon.biz/docs/tomcat/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Michael ! I can't seem to get to your site. I'm always getting a time-out. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tutorial for Tomcat Beginners!!
Try my write-up : http://www.cymulacrum.net/tomcat/tomcat_toc.html Regards, pascal chong Dominic Parry wrote: OK, then try the docs that come with your tomcat installation. You can find them at %Install Dir%\webapps\tomcat-docs Those are the same as the ones online. Good Luck! - Original Message - From: Jon Haugsand To: Tomcat Users List Sent: Wednesday, June 25, 2003 9:52 AM Subject: Re: Tutorial for Tomcat Beginners!! * Dominic Parry Hi David I think you didn't look hard enough :) Try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ Been there, done that. It didn't work. E.g. the links are broken: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/sample/web/ -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - 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: [OT] best hardware config for Tomcat
Antony wrote: Thanks for the reply. I had never thought of the RAID sub system. My situation is that there is no one I know to advice me in this regard and my company can't affod any highly paid consultancy. That is why asked a question like this here. Another question. Do Tomcat a requires a faster hard disk. The application uses JSP and Servlets only. No HTML pages are used and it generates some PDF and Excel files. It also serves some small images files from local hard disk. I think Tomcat will cache these images. Now my concern is whether Tomcat's performance increases by faster DDR RAM. regards Antony Antony, The answer to your problem is not in better RAM, a faster hard drive or even an expensive consultant. In what I consider deep-s**t situations like yours, where you have little time, no money and nobody you can turn to except yourself and the mailing list, your best bet is to deploy quickly and try getting money in, first. Why ? Because you're never going to have enough resources (hard drive, RAM, CPU) unless you make enough money to justify those resources. For example, if I have a single-processor Pentium II 400MHz machine with a 40GB hard drive and 128MB RAM, I would benchmark it against the number of concurrent connections it can handle. I would then take that number and multiply it by 10 to give me a total number of customers (in Asia this is realistic, though I cannot say for other parts of the world). I would calculate how much money I would make off those customers and then see if I should : (a) invest in more hardware (RAM, CPU, HDD) (b) buy another server (c) hire a consultant (d) give myself an obscene amount of money ! Hope this helps ! Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajp13Connector vs. Coyote/JK2 connector
On Thu, 12 Jun 2003 10:42:33 -0400, Yueshang (Wendy) Zhang [EMAIL PROTECTED] wrote: I searched the archive and found that mod_jk is better than mod_jk2 for apache 1.3.26. My question is, if mod_jk is used in this case, can we still use the Ajp13Connector in stead of Coyote/JK2 connector? (although the Ajp13Connector is deprecated in TC 4.1.x) I am using apache to do the authentication, need to use the 'tomcatAuthentication' attribute in the Ajp13Connector, but can't find a similar attribute in Coyote/JK2 connector. TIA Wendy Tongzi, The only difference, from my own tests, has been that with Ajp13Connector, you will not be able to use the Tomcat Web Administrator. Otherwise, they're the same. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnsatisfiedLinkError with DB2 app driver and JDK1.4.1
Which JDK are you using ? IBM's Java or Sun's Java ? There is a difference in the way the classes are organized. Regards, pascal chong Jochen Schweflinghaus wrote: I use a link named db2java.jar in $CATALINA_HOME/common/lib referring to the db2java.zip (JDBC 1) file comming along with DB2. For the Standalone java program I include this link into the classpath. Neiter of my two Java installations have a db2java.zip installed in their extensions. Also the DB2 net driver is working fine (after changing the Database URL, of course) with both JVMs. It's really misterious. Do you have any other idea ? I Thank you for your reply. - 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 Please: Starting Tomcat using channelUnix with mod_jk2
Michael Cardon wrote: Where I am missing this?: undefined symbol: apr_md5_final My platform: RH Linux 8.0 You're missing the Apache Portable Runtime (APR). This is found in the apache2-devel rpm package, which I see you do not seem to have. Download it from Falsehope as well. j2sdk-1_4_2-beta-linux-i586.rpm apache2-2.0.45-1.7.2.i386.rpm tomcat-4.1.24.tar.gz tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I got the same results both ways. Any help or ideas would be greatly appreciated. Thanks Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Please: Starting Tomcat using channelUnix with mod_jk2
Michael Cardon wrote: Thanks Chong, I did have the apache2-devel package installed, but I started a fresh install of Linux 8.0 and all the rpm's following your instructions again anyway. I'm ready to pull my hair out I get the same error about the undefined symbol: apr_md5_final Something occurred to me last night -- I forgot to remind you about a certain symbolic link you need to make. You see, RH8 names the APR file differently. Not sure if you did this : *# ln -s /usr/lib/libapr-0.so.0.9.3 /usr/lib/libapr.so.0 *Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting JK2 to work with Apache 2.0.46
Rick Salsa wrote: Hi all, I'm trying to get mod_jk2.so working with Apache 2.0.46 on Mandrake Linux. Hmm... Mandrake ? Not sure if my write-up will help, but you can refer to : http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html Be careful ! I have not tested out the configurations inside with anything other than Red Hat 8, and remember to back up ALL your current configurations before changing anything : i.e. httpd2.conf, jk2.properties, workers2.properties, mod_jk2.conf. YMMV! Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Guide for mod_jk2 + Apache2 + Tomcat 4.1.24
Duccio Fallani wrote: Weeks ago, I try to setup Tomcat mod_jk2 + Apache2 + Tomcat 4.1.24 with SSL and Tomcat CLIENT-CERT authentication !!! There are bugs in tomcat-jk2.jar co., I solve all my problem download and using tomcat-connectors-1.1M1.jar !!! Not sure if I understand you, Duccio ... where did you download tomcat-connectors-1.1M1.jar ? Also, could you tell us how you installed with SSL ? If it is ok with you, I would like to include that inside my document. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Guide for mod_jk2 + Apache2 + Tomcat 4.1.24
I've updated my write-up for Tomcat to include integration with Apache2 using mod_jk2. At present, I only cover channel sockets and UNIX sockets. I was not able to get JNI to work. You can view the whole document at : http://www.cymulacrum.net/tomcat/tomcat_toc.html or you can jump to the mod_jk2 configuration at : http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html Note that this is BETA documentation ! It has not been extensively tested and may NOT work ! Do NOT blame me if your system crashes, or you lose data, or if your business suffers from following my instructions. Use the document at your own risk ! I welcome feedback, and especially corrections or clarifications, but questions should be directed to the Tomcat list and not to me personally. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat problems every morning.
Hollerman Geralyn M wrote: Why, yes, I am. And I thought perhaps MySQL was the problem - but I was told by some people using Oracle and PostgreSQL databases that they'd seen the problem as well. To put it bluntly, don't believe them, Lynn. It seems to me like you've done everything necessary to ensure that the problem is not on your side. If it looks like a duck, and it quacks like a duck ... I tried putting in some code to set the driver time-out value, You could write a small program (not a servlet) that polls the database (i.e. connect to the database, retrieve some data, disconnect) at regular intervals and records to a file both successes and failures. Then maybe trigger a server reboot when it detects a connection problem. This will add some overhead to both your app server and database server, so, be advised. You could run this for a couple of days, just enough to collect data to show to the DBA's. Realistically, though, I doubt that it will change anything. If your DBA does not understand the possibility of MySQL dropping/resetting connections and hasn't offered to check for you, it's unlikely he will accept your results. Maybe I'm just getting bitter and cynical in my old age :) Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat problems every morning.
Geralyn M Hollerman wrote: For the stuff I'm working with, *I'm* the DBA. Oops ! Sorry to hear that ! I've never had much luck with MySQL myself, because it has some pretty funky methods of configuring permissions. I use Firebird when I can. Anyway, I'm pretty sure it isn't Tomcat that is causing the problems, because it seems that your problem is pretty regular (every 8 hours ?). I could be wrong, but I'd look at the database. Connection pooling is not enabled by default in Tomcat. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]