Re: Server JVM with service startup
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java] Options = -Dcatalina.base=D:\jakarta-tomcat-5.0.27 -Dcatalina.home=D:\jakarta-tomcat-5.0.27 -Djava.endorsed.dirs=D:\jakarta-tomcat-5.0.27\common\endorsed -Djava.io.tmpdir=D:\jakarta-tomcat-5.0.27\temp -server :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems running Tomcat 5.0.x on Java 1.4.x, NetBSD 1.6.2
I get this message when trying to run java VM, ie. #java -version Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location java version 1.4.2_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) Some programs work OK, but Tomcat 5.0.27(and 5.0.25) grabs 99% of CPU. I tried to run some mini-programs to test for networking, threads and synchronization and all of them ran ok. Java 1.3 works OK, but I need 1.4 :( Please help me :||| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: workers2.properties path ???
Thanks, I already solved this problem. mod_jk2 has a little bug: it looks for *.properties in `apxs -q prefix`/conf instead of `apxs -q sysconfdir`. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 21, 2004 12:00 PM Subject: Re: workers2.properties path ??? Elijah Epifanov wrote: Silly question: Where do I need to store my workers2.properties file if my apache isn't contained in one directory? /var/conf/apache2 - replacement for ${APACHE2}/conf /usr/local/apache2 - Apache2 root Well, if you're going to re-organize your Apache, then I sugest you follow DEC's logic, which I implement on my Tru64 UNIX, with slight modifications. DEC's setld utility can help with creation of symbolic links from OPT areas to system-standard areas, like /usr/bin, /usr/sbin, /usr/shlib,... Separate each of your RPMs into three areas: 1. BOOT In my case, this is /opt/Apache-2.0.49/ - ./sbin/(init.d/apache, rc3.d/S93apache, rc0.d/K01apache, rc2.d/K01apache). The SETLD SCP will automagically create links to these files in /sbin/(init.d,...) 2. USR For me this is /usr/opt/Apache-2.0.49/* This dir tree holds all files considered read-only from user's view and during normal operations. This is the bulk of the instalation, all executables, libraries, header files and, yes, config files. Why config? Well, it doesn't change *during* Apache's operation, does it? 3. VAR Here, we place VARiable files, files that can change during normal operation. For me it is in /var/opt/Apache-2.0.49. This dir tree holds logs, proxy cache (in case of PostgreSQL it would hold the database), etc. For your case, you'd most likely place startup files directly in their expected places, put logs under /var/log/httpd/ and for the rest of the files, well, it's up to you. I consider /usr/local to be for quick'n'dirty, just slap it together type of instalation. Anything else I intend to use for a longer period of time, I package. Having 14 AlphaServers to attend to tought me the value of a cleanly packaged software. Your case might differ. Linux has /opt area which can be a separate file system. I've seen a couple of /usr/opt instalations. I guess there are no strict rules and it would be most prudent to follow the style imposed by your distro. error_log: [Sun Jun 20 09:02:35 2004] [notice] Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.6g mod_jk2/2.0.4 configured -- resuming normal operations [Sun Jun 20 09:02:35 2004] [error] uriEnv.init() map to invalid worker /tomcat ajp13:localhost:8009 ^^end^^ I guess it is not finding this worker, which would mean it is not finding the workers2.properties file you mention below. As a note, you could keep all URI mappings in workers2 file... It is just your own personal feeling of what is more stable WORKERS definitions or URI/VHost definitions. workers2.properties: [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/jsp-examples] info=JSP Examples ^^end^^ Everything worked ok before I decided to make a clean installation with more organized tree. Well, one thing that I do and which might help you... I keep mod_jk2 in a separate install package dir. At first, I used to copy workers2.properties file to Apache's config (SCP script would query apxs upon package install). The module loading and global setup was done via config fragment file, as is done by Mandrake - ${APACHE_HOME}/conf/add-on/ holds all such fragments. So, I added to the JK2.conf this (notice the config.file): IfDefine HAVE_JK2 IfModule !mod_jk2.c LoadModule jk2_module /usr/opt/Apache_JK2-2.0.4/module/mod_jk2.so /IfModule /IfDefine IfModule mod_jk2.c # # Restrict access to JK status handler # Location /jkstatus/ Order Deny,Allow Deny from all Allow from 127.0.0.1 Brigitte.ev.co.yu /Location # # Restrict access to JBoss JMX console # Location /jmx-console/ Order Deny,Allow Deny from all Allow from 127.0.0.1 /Location # # Set our (SETLD) location of workers file # JkSet config.file /usr/opt/Apache_JK2-2.0.4/config/workers2.properties # # This should go in host settings, be it virtual or global # It can also go into workers2.properties file in the [uri] # sections (a more proper place, IMHO) # #Location /path # JkUriSetworker ajp13:unixsock #/Location /IfModule 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: mod_jk2 property - [shm]
Shared Memory File is a cool feature:) (I haven't looked at mod_jk sources for details of its implementation, but the idea should be the same). Generally speaking, it's an ordinary file (with name, attributes, inode, ...), but it isn't used with conventional read/writes. Instead of them, two (or more) processes gain access to this file to map it's contents to a single shared memory segment. Treat this as naming convention for shared memory segments. - Original Message - From: Kommuru, Bhaskar [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, June 21, 2004 6:42 PM Subject: mod_jk2 property - [shm] I have beeng working with workers2.properties, But i cound not understand one thing in that file. [shm] file=C:/Program Files/Apache Group/Apache2/shm.file size=1048576 What is this shared memory file? I have never seen anything written to it. How would it be used? well! i could guess on this, but i wanted to be more sure. Thank for the help my friends, BK __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and jdk1.3 or jdk1.4
Tomcat 5 doesn't require JDK 1.4. Contrary, it has been extensively tested with Sun JDK 1.3.1. - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 18, 2004 4:21 PM Subject: Re: Tomcat and jdk1.3 or jdk1.4 On Fri, Jun 18, 2004 at 12:10:16PM +0200, Holger de Wall wrote: : are there different Tomcat-5.0.25-Downloads for jdk1.3 and jdk1.4 available? Sort of: Tomcat5 packages exist for 1.4; they don't exist for 1.3 Tomcat5 requires JDK 1.4 : Which java-packages are missing in the Version for jdk1.4? I'm not sure what this means. Please explain. -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]
workers2.properties path ???
Silly question: Where do I need to store my workers2.properties file if my apache isn't contained in one directory? /var/conf/apache2 - replacement for ${APACHE2}/conf /usr/local/apache2 - Apache2 root error_log: [Sun Jun 20 09:02:35 2004] [notice] Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.6g mod_jk2/2.0.4 configured -- resuming normal operations [Sun Jun 20 09:02:35 2004] [error] uriEnv.init() map to invalid worker /tomcat ajp13:localhost:8009 ^^end^^ workers2.properties: [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/jsp-examples] info=JSP Examples ^^end^^ Everything worked ok before I decided to make a clean installation with more organized tree. :( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: workers2.properties path ???
Got it ... sent a bug report. mod_jk2 searches for *.properties in ${APACHE_ROOT}/conf, irrelative of where u've set --sysconfdir while configuring. - Original Message - From: Elijah Epifanov [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 20, 2004 1:33 PM Subject: workers2.properties path ??? Silly question: Where do I need to store my workers2.properties file if my apache isn't contained in one directory? /var/conf/apache2 - replacement for ${APACHE2}/conf /usr/local/apache2 - Apache2 root error_log: [Sun Jun 20 09:02:35 2004] [notice] Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.6g mod_jk2/2.0.4 configured -- resuming normal operations [Sun Jun 20 09:02:35 2004] [error] uriEnv.init() map to invalid worker /tomcat ajp13:localhost:8009 ^^end^^ workers2.properties: [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/jsp-examples] info=JSP Examples ^^end^^ Everything worked ok before I decided to make a clean installation with more organized tree. :( - 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: Safety of images under the WEB-INF?
However, if you run Tomcat behind Apache, you should ensure that none of your WEB-INF folders will be served by Apache. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 17, 2004 6:53 PM Subject: RE: Safety of images under the WEB-INF? Hi, No, they can't be viewed directly: the servlet container is prohibited from serving content under WEB-INF directories by the Servlet Specification. This is strictly implemented by all servlet container I know of, and is easy to test in your installation by trying to access the image under WEB-INF. Yoav Shapira Millennium Research Informatics -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 11:02 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Safety of images under the WEB-INF? Hello, I am doing a project where I dont want people to be able to link directly to certian images/files unless they are logged in through my security framework. The question is, if I put an images directory under the WEB-INF and serve the images up through a service, how safe are these images? Can they be retreived without going through my service(which i can check if they have access or not) and if so, how? Thank you, James - 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]
Re: java server mode vs. client mode
At first: If I'ld write a C++ compiler with Perl, this doesn't mean that it will generate code slower than Perl scripts:) Then: Exhaustive optimization techniques (like loop expansion, disabling array bounds checking, etc.) really make your code faster in ANY case, BUT small amount of generated code may fit your processors cache, some jump may be converted to short jumps, etc.. So, generally speaking, more optimized code shall run faster, but it's bigger. Huge amount of code may even seriously decrease amount of free RAM, so more swapping will occur. AND ... if you do really meaninglessthings in your code, then there's a chance that optimizer will not eliminate this code, because it cannot generate OPTIMAL code. This is, mathematically speaking, twice a NP-hard problem. First when generating code, second when testing it's speed. I recommed using -server hotspot. Look at name... S E R V E R. I'm not sure guys from Sun randomly named it this way :) - Original Message - From: Eric VERGNAUD [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 17, 2004 12:12 AM Subject: Re: java server mode vs. client mode le 16/06/04 21:50, Matt Bathje à [EMAIL PROTECTED] a écrit : I posted this on the struts list this morning, but it might get better answers here. I was reading the stories here: http://www.sys-con.com/story/?storyid=45250 http://www.kano.net/javabench/ Summary: Java in server mode is faster than C++ in the benchmarks run. Java in client mode is much more iffy, sometimes faster, sometimes slower, and sometimes the same. So my question becomes - does anybody have any experience running their Tomcat jvm using the -server option instead of letting it default to client? Based on what the tester says, the only downside of running the jvm in server mode is a longer startup time, but the Java code still beat C++ even with the longer times, so it can't be too bad. So anybody have any experience/thoughts on this? Thanks, Matt Bathje Matt, No one can really believe Java is faster than C or C++, because Java is itself written in C and C++. I haven't been through the benchmark code throroughly, but there's definitely a bias somewhere. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 for RedHat
First of all, check the requirements of mod_jk2. I'm not sure, but I thought it requires Apache v2.0.43 min. Then, get jakarta-tomcat-connectors-jk2-2.0.x.src. cd ./jk/native2 ./configure --with-apache2=/usr/local/apache2 --with-apxs2=/usr/local/apache 2/bin/apxs cd ./server/apache2 make This works well with NetBSD 1.6.2, and should work with any n*x. When building for *BSDs the only thing changes: use 'gmake' instead of 'make'. - Original Message - From: Michael DiChiappari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 13, 2004 10:53 PM Subject: mod_jk2 for RedHat Has anyone built a mod_jk2 for RedHat9/Apache 2.0.40? I would greatly appreciate access to it, which would save me a great deal of time in trying to build the darn thing. It would also elevate you to a true Linux/Tomcat guru in my eyes. If you make it available publicly available, it would probably also cut down on a large percentage of the traffic on this list. Thanks, Mike - 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: Gargage collection going crazy...
what are your OS and Java versions? 100% true: If NetBSD 1.6.2 + Java 1.4, then you should fallback to Java 1.3.1. 99% true: If *BSD + Java 1.4, then -- - Original Message - From: Krist van Besien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 12:41 PM Subject: Gargage collection going crazy... Hello all, After having run without any problems for at least a week java CPU usage for our Tomcat server went to 99%... Looking at what the garbage collector was doing I saw the following: (what follows is just a small extract from the log file...) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, tomcat and ajp13
Delete [uri:/*] section from your worker2.properties file, and use httpd.conf instead (I think it's more correct approach): ... LocationMatch (?!^/doc) JkUriSet worker ajp13:localhost:8009 /LocationMatch LocationMatch ^/doc php stuff /LocationMatch - Original Message - From: Sez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 7:23 PM Subject: Apache, tomcat and ajp13 Hi people! I have a apache and tomcat working together. In worker2.properties i have [uri:/*] worker=ajp13:localhost:8009 It pass all connections to tomcat. Now, i want that some connections go to apache with php and others to tomcat. www.site.com/doc --apache and php www.site.com/* -- tomcat I want that anything go to tomcat, except the doc folder... It's possible? HOw can i configure workers2.properties? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2.so for NetBSD
Hello everybody! I have a little problem running Apache2(.0.48) + Tomcat5(.0.25) (jakarta-tomcat) on NetBSD 1.6.2 + JDK 1.3.1_12b03 (sun-jdk13). I can't install a mod_jk2 connector :( SuSe and FreeBSD binaries won't work. They don't load into Apache. FreeBSD version: Syntax error on line 232 of /usr/pkg/etc/httpd/httpd.conf: Cannot load /usr/pkg/lib/httpd/mod_jk2.so into server: /usr/pkg/lib/httpd/mod_jk2.so: Undefined PLT symbol ___tolower (reloc type = 7, symnum = 238) SuSe version: Syntax error on line 232 of /usr/pkg/etc/httpd/httpd.conf: Cannot load /usr/pkg/lib/httpd/mod_jk2.so into server: Shared object libc.so.6 not found Where can I get these (emulators/freebsd_lib and emulators/suse_libc5 won't help) ? Or is anywhere a native NetBSD port of mod_jk2 for Apache 2??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]