possibly stupid question
I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: possibly stupid question
Are you running it as a service? If so you may find that the output is going to stdout.log Ta Matt -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 30 March 2005 10:54 To: tomcat-user@jakarta.apache.org Subject: possibly stupid question I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possibly stupid question
No, I am running it using startup.bat though I have tries catalina.bat start too. I am not seeing any log file output for anything that writes to stdout. Dale, Matt wrote: Are you running it as a service? If so you may find that the output is going to stdout.log Ta Matt -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 30 March 2005 10:54 To: tomcat-user@jakarta.apache.org Subject: possibly stupid question I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possibly stupid question
teknokrat wrote: No, I am running it using startup.bat though I have tries catalina.bat start too. I am not seeing any log file output for anything that writes to stdout. Hi Teknokrat, it's normal, the stdout is on the win32 console, you have to redirect yourself stdout if you want to have a log file or start tomcat as a service. Hope it helps, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat -- port 80 for Linux
Hello! I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possibly stupid question
cheers, that clears that up David Causse wrote: teknokrat wrote: No, I am running it using startup.bat though I have tries catalina.bat start too. I am not seeing any log file output for anything that writes to stdout. Hi Teknokrat, it's normal, the stdout is on the win32 console, you have to redirect yourself stdout if you want to have a log file or start tomcat as a service. Hope it helps, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat -- port 80 for Linux
Hi, I would suggest using jsvc as it seems that many people are struggling with mod_jk / mod_proxy. Be sure to use latest version from cvs though, not the one that comes with Tomcat, to save you some trouble with restarting etc. (at least with 5.0.28). Trond Jury Levykin wrote: Hello! I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? - 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 -- port 80 for Linux
On Wed, 30 Mar 2005, Jury Levykin wrote: Hello! I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? At a guess, I'd say the first one. It has a few advantages :- 1: It's pure java so you're unlikely to get bitten by buffer overflow. 2: It's easier to configure (everything in one place) so you're less likely to make a mistake when setting up the system. Yours, Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ Only in Britain... do banks leave both doors open and chain the pens to the counters. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat -- port 80 for Linux
From: Jury Levykin [mailto:[EMAIL PROTECTED] I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? 3. Use port forwarding to forward port 80 to port 8080 :-). No root access needed at runtime, merely a one-off at configuration time. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat -- port 80 for Linux
On Wed, 30 Mar 2005, Peter Crowther wrote: From: Jury Levykin [mailto:[EMAIL PROTECTED] I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? 3. Use port forwarding to forward port 80 to port 8080 :-). No root access needed at runtime, merely a one-off at configuration time. The downside here is that you don't need root access to start Tomcat - someone with an account on the machine who can force Tomcat to shutdown, can then start another process listening on port 8080 which will then be the webserver. This may or may not be a problem of course. Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ If it's hard to do, it's not worth doing. -- Homer Simpson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data file owner and group difficulties
On Tue, Mar 29, 2005 at 09:31:42PM -0500, James T. Studebaker wrote: : My servlets create data files. The webapp is running on a Linux system. The : app user is jims and my group is jims. I have to set permissions to 777 in : order for tomcat to read data files. When data files are created, the user is : tomcat and the group is nobody. This last sentence would imply that Tomcat is running as tomcat:nobody, and not as jims:jims as you suspect. Run 'ps' to confirm. Also, check how you start Tomcat and see whether a user switch occurs there. : Is the a configuration parameter that will result in data : files created with a user of jims and a group of jims. Is there configuration : parameters that result in tomcat being able to read data files with the user : jims and the group jims. This wouldn't be set in Tomcat, but in the JVM itself. In turn, (IIRC) the base JVM has no way of setting ownership/permissions. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
On Wed, Mar 30, 2005 at 10:02:50AM +0530, Lakshmi Narayanan K. wrote: : No replies yet??? :( : Is it possible that this is a possible bug in the tomcat5.exe : executable? Can this thread be forwarded to the other mailing list, : the tomcat-developers one??? Rest assured, there are several developers on this list. If you really think you've found a bug, wrap it up in a test case and file a Bugzilla report. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple domain name support for https
On Wed, Mar 30, 2005 at 12:40:34AM -0600, Sasisekar S Sundaram wrote: : Few browsers (like Mozilla) are giving a warning message == Security Error: : Doamin Name Mismatch with https. : [snip] : It is important for me to over ride this Warning : message in our production environment. I read somewhere that I can override : the HostnameVerifier interface and achieve the solution. Can some one guide me : about how to modify it and integrate with Tomcat. I appreciate your time. The SSL cert warning comes from the browser side, not the server side. (SSL-enabled clients get a copy of the server cert during the handshake, and can run any sort of tests against it.) So you'd have to modify the source of the client browser, not Tomcat. If one could override this behavior at the server side, that would defeat that whole verification feature of SSL. =) Someone else suggested you do a redirect to the host for which the cert is named. You can do this as long as the redirect happen in cleartext mode. Again, since the SSL cert exchange happens during the handshake -- before the server gets a chance to respond with a 30x redirect message -- you can't do this if the client first connects to the SSL-enabled port. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK usage with Tomcat
On Wed, Mar 30, 2005 at 12:33:52PM +0530, Gurunandan G Rao wrote: : Which JDK is mostly used with Tomcat in production environment?. My guess is that most people use the standard Sun JVM, but that really depends on the OS. (For example: I don't think Sun makes a JVM for HP-UX, so that's not an option for HP-UX users. BEA JRockit is for i386 only, so someone running a Sparc machine can't use it. etc.) : Is Tomcat certified with any JDK vendor?. Tomcat just rides the JVM; so if the JVM itself is stable/unstable, Tomcat's sure to follow. =) You may want to check which JVMs are suitable for a given OS and go from there. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi QM, Thanks for your reply. If there are many developers on this list, then why aren't there any replies? :( I've tested this problem on all my available windows boxes, and the value always gets set to 0. Can somebody else try this out and see if they too are getting the same behavior? I am really hard-pressed to find a more elegant solution (which would be to use the tomcat5 executable provided by Tomcat) rather than modify those registry values by hand. So, as usual, your replies are eagerly awaited... Warm Regards, - Lakshmi Narayanan K. On Wed, 30 Mar 2005 06:16:50 -0600, QM [EMAIL PROTECTED] wrote: On Wed, Mar 30, 2005 at 10:02:50AM +0530, Lakshmi Narayanan K. wrote: : No replies yet??? :( : Is it possible that this is a possible bug in the tomcat5.exe : executable? Can this thread be forwarded to the other mailing list, : the tomcat-developers one??? Rest assured, there are several developers on this list. If you really think you've found a bug, wrap it up in a test case and file a Bugzilla report. -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat -- port 80 for Linux
somwere your going to see this in your server xml under /conf of your tomcat_home folder if there you say 80 it will run on 80 exept if there is alredy somting on port 80? Define a non-SSL HTTP/1.1 Connector on port 8080- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080- [EMAIL PROTECTED] administrateur http://monteregiechat.org From: Jury Levykin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Tomcat -- port 80 for Linux Date: Wed, 30 Mar 2005 14:24:36 +0400 Hello! I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? - 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]
JK 1.2.9 Apache - Tomcat thread synchronization
I watched the JBoss webinar, which was very helpful, but I still can't understand how to tune the thread settings. I use tc 5.5.7 and worker apache2. In the webinar, it was stated that apache maxclients should be the same value as maxThreads on tomcat. On a heavily loaded apache, with 10 tc workers, does this still apply? For example on apache2 maxclients=150 and all 10 tomcats maxthreads=150? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data file owner and group difficulties
Yes, Tomcat runs as tomcat:nobody. I can not run Tomcat as jims:jims since jims is a virtual host account. I should have mentioned this in my initial email. I am one of numerous users who have an account that has access tomcat. The file structure of the account has a webapps directory where I install a java web application to be served by Tomcat. The owner:group for this account is jims:jims. Other users will have a different owner:group. However Tomcat runs as tomcat:nobody, the default configuration. All users need to have the ability to create and read data files with the owner:group of their own accounts. Can this be done? Thank you James T. Studebaker - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, March 30, 2005 7:15 AM Subject: Re: Data file owner and group difficulties On Tue, Mar 29, 2005 at 09:31:42PM -0500, James T. Studebaker wrote: : My servlets create data files. The webapp is running on a Linux system. The : app user is jims and my group is jims. I have to set permissions to 777 in : order for tomcat to read data files. When data files are created, the user is : tomcat and the group is nobody. This last sentence would imply that Tomcat is running as tomcat:nobody, and not as jims:jims as you suspect. Run 'ps' to confirm. Also, check how you start Tomcat and see whether a user switch occurs there. : Is the a configuration parameter that will result in data : files created with a user of jims and a group of jims. Is there configuration : parameters that result in tomcat being able to read data files with the user : jims and the group jims. This wouldn't be set in Tomcat, but in the JVM itself. In turn, (IIRC) the base JVM has no way of setting ownership/permissions. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1.5 settings with Tomcat 5.28
Hi, Is there any documentation related to JVM 1.5 settings for Tomcat 5.0.28 (or any other versions)? (ex: how to configure -server as service, memory pools, best GC strategy, etc...) Thanks! Alvim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Data file owner and group difficulties
From: James T. Studebaker [mailto:[EMAIL PROTECTED] Yes, Tomcat runs as tomcat:nobody. I can not run Tomcat as jims:jims since jims is a virtual host account. I should have mentioned this in my initial email. I am one of numerous users who have an account that has access tomcat. The file structure of the account has a webapps directory where I install a java web application to be served by Tomcat. The owner:group for this account is jims:jims. Other users will have a different owner:group. However Tomcat runs as tomcat:nobody, the default configuration. All users need to have the ability to create and read data files with the owner:group of their own accounts. Can this be done? In that environment? No. In an environment where you had more control over Tomcat? Not securely. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isUserInRole
I see that the session object is stored in the request object (request.getSession). And, I suppose, the methods such as isUserInRole from the request are actually querying the stuff from the session object. So, if the session is gone (invalidated), then there is no authorization info. Does this mean the authorization info is kept in the session object? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: possibly stupid question
Hi, we use this instructions to log to a file. Sounds a bit complicated, but should work: Follow the following steps to setup a file named tomcat.log that has internal Tomcat logging output to it: 1. Create a file called log4j.properties with the following content and save it into common/classes. 2. log4j.rootLogger=warn, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern= ?p ?t ?c - ?m?n log4j.logger.org.apache.catalina=DEBUG, R 3. The log4j.jar and commons-loggin.jar will be put into your $CATALINA_HOME/common/lib when you get the latest version of the website_config libs (towards the end of this setup). 4. Install Commons Logging and place the commons-logging.jar (not commons-logging-api.jar) in $CATALINA_HOME/common/lib with the log4j jar. 5. Start Tomcat This log4j configuration sets up a file called tomcat.log in your Tomcat logs folder with a maximum file size of 10MB and up to 10 backups. DEBUG level is specified which will result in the most verbose output from Tomcat. -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Auftrag von teknokrat Gesendet: Mittwoch, 30. März 2005 11:54 An: tomcat-user@jakarta.apache.org Betreff: possibly stupid question I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK 1.2.9 Apache - Tomcat thread synchronization
e wrote: I watched the JBoss webinar, which was very helpful, but I still can't understand how to tune the thread settings. I use tc 5.5.7 and worker apache2. In the webinar, it was stated that apache maxclients should be the same value as maxThreads on tomcat. On a heavily loaded apache, with 10 tc workers, does this still apply? For example on apache2 maxclients=150 and all 10 tomcats maxthreads=150? If they are inside load balancer then you can spread the load. For example if you have load balancer with 10 workers then divide the maxThreads=MaxClients/10. Of course if you expect that one or two TC's can get off line, then: maxThreads=MaxClients(10 - expected failed servers) Before 1.2.10 you had to add 20% because there was no shared memory. OTOH if you are using direct connection to 10 different TC instances, then yes, the numbers has to be equal, because at some point in time 150 clients can connect at once to a single tomcat instance. I hope you are using load balancer :) Regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Lakshmi Narayanan K. wrote: If there are many developers on this list, then why aren't there any replies? :( Well, I replied to you already, and I wrote the damn thing :). So, as usual, your replies are eagerly awaited... Try to use the tomcat5.exe from 5.0.30 or better from 5.5.8. I have not tried the version from 5.0.28 for quite some time, but AFAICT they are the same. I can easily update any of those params from command line. For example: tomcat5 //US//Tomcat5 --JvmMs 256 --JvmMx 512 Sets the params in the registry correctly (256 and 512). The values passed to JVM are -Xms256m and -Xmx512m. Only problem that can be is that the account you are using has no administrative privilege. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5/Apache 2 in-process
Has anyone succeeded in getting Tomcat 5 to run in-process with Apache 2 using mod_jk? Does anyone know of a howto on this? I've read the docs, I've searched the web, I have it working using AJP13 but I have had no luck on getting it to work in-process. I don't even know where to start. Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5/Apache 2 in-process
Faine, Mark wrote: Has anyone succeeded in getting Tomcat 5 to run in-process with Apache 2 using mod_jk? Does anyone know of a howto on this? I've read the docs, I've searched the web, I have it working using AJP13 but I have had no luck on getting it to work in-process. I don't even know where to start. Forget the in-process. The JNI connector is deprecated, and the reasons are many. On of the major is that it can work only on WIN32 Apache and IIS. Also bringing JVM in the same address space as web server, makes you server unusable in case of OutOfMemory errors, etc... There is a project called tomcat-native that will eventually bring faster connections to WS-TC by using unix sockets or windows named pipes, and still offer the process isolation. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ampersand in an init-praram in web.xml
I need to specify a password that has an ampersand in it for an init-param in my applications web.xml when specifying the password of a service account of course with it being XML it complains about the ampersand so when you use it's entity reference amp; then that doesn't work for the password. Is there anyway around this that anyone knows other than changing the password (the account is used all over for various things so changing the password isn't straightforward)? It is for pre-authentication for JCIFS if anyone is wondering but posted here as it is more of a Tomcat question. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat-juli in 5.5.9
I had the same problem, I set my JAVA_HOME env on Windows XP SP1 and it fixed the problem Pete -Original Message- From: Brent Sims [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 5:40 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat-juli in 5.5.9 Did the tomcat-juli jar not make the release of 5.5.9 or is this something I need to build separately? I can't seem to locate the jar in the zip download, which could very well just be my eyes. Thanks Brent Sims Systems Analyst 2 KC Human Services - Road rage, air rage. Why should I be forced to divide my rage into separate categories? To me, it's just one big, all-round, everyday rage. I don't have time for fine distinctions. I'm too busy screaming at people. - George Carlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi Mladen, Thank you very very much for having replied to my query. If there are many developers on this list, then why aren't there any replies? :( Well, I replied to you already, and I wrote the damn thing :). Please don't mistake my statement above. I only meant that there weren't replies on how exactly to set those values without modifying them in the registry. I can easily update any of those params from command line. For example: tomcat5 //US//Tomcat5 --JvmMs 256 --JvmMx 512 Sets the params in the registry correctly (256 and 512). Are you doing this from the tomcat5 binary from TC 5.0.30? I ask this because we have already rolled out TC 5.0.28 onto production systems, and if so, I cant roll out the newer TC 5.0.30 on them. : The Tomcat product I am bundling is being installed using the Administrator account on the Windows box. Are you saying that it is possible that that account didnt have the permission to set those values in the registry? Many thanks once again for replying... and (once again :D) eagerly awaiting your replies... Regards, - Lakshmi Narayanan K. On Wed, 30 Mar 2005 16:27:07 +0200, Mladen Turk [EMAIL PROTECTED] wrote: Lakshmi Narayanan K. wrote: If there are many developers on this list, then why aren't there any replies? :( Well, I replied to you already, and I wrote the damn thing :). So, as usual, your replies are eagerly awaited... Try to use the tomcat5.exe from 5.0.30 or better from 5.5.8. I have not tried the version from 5.0.28 for quite some time, but AFAICT they are the same. I can easily update any of those params from command line. For example: tomcat5 //US//Tomcat5 --JvmMs 256 --JvmMx 512 Sets the params in the registry correctly (256 and 512). The values passed to JVM are -Xms256m and -Xmx512m. Only problem that can be is that the account you are using has no administrative privilege. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Lakshmi Narayanan K. wrote: Are you doing this from the tomcat5 binary from TC 5.0.30? I ask this because we have already rolled out TC 5.0.28 onto production systems, and if so, I cant roll out the newer TC 5.0.30 on them. : Use that one: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/procrun/bin/ Click on the tomcat5.exe and select (HEAD: download). If it does not work, then I have no clue what might be the problem, and is for sure related to your OS setup, rather then tomcat5.exe. Regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache as front-end for several tomcat
Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/htmleditor/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match demo1 - / [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=demo1 r-proxyreq=0 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] wc_get_worker_for_name::jk_worker.c (92): found a worker demo1 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] init_ws_service::mod_jk.c (479): agsp=81 agsn=demo3.myweb.org hostn=demo3.myweb.org shostn=demo1.myweb.org cbsport=0 sport=0 claport=81 But I get the homepage of demo1.myweb.org... Any idea why this happen? Thanks in advance, Christophe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Long Startup Time
Hi, I'm running Tomcat 5.0.28 with JDK 1.5.0_01 on Fedora Core 3. The problem that I'm having is pretty odd. It's taking Tomcat about 30 minutes to fully start up and start accepting connections. Here's where it's getting hung up at from the startup logs: Mar 30, 2005 10:52:10 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Mar 30, 2005 11:21:03 AM org.apache.catalina.core.StandardHost getDeployer You can see that it's about 29 minutes between those two log entries. So, my question is, what is happening there that could take so long? There are no errors in the logs and once Tomcat does complete its startup stuff our application works just fine. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache as front-end for several tomcat
would it be the fact that your sending the requests through the same port number? From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 22:12:27 +0200 Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/htmleditor/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match demo1 - / [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=demo1 r-proxyreq=0 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] wc_get_worker_for_name::jk_worker.c (92): found a worker demo1 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] init_ws_service::mod_jk.c (479): agsp=81 agsn=demo3.myweb.org hostn=demo3.myweb.org shostn=demo1.myweb.org cbsport=0 sport=0 claport=81 But I get the homepage of demo1.myweb.org... Any idea why this happen? Thanks in advance, Christophe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache as front-end for several tomcat
Not sure. I have seen several config of name based virtual hosts that listen on the same port. On 30-mars-05, at 23:02, Didier McGillis wrote: would it be the fact that your sending the requests through the same port number? From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 22:12:27 +0200 Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/htmleditor/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match demo1 - / [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=demo1 r-proxyreq=0 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] wc_get_worker_for_name::jk_worker.c (92): found a worker demo1 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] init_ws_service::mod_jk.c (479): agsp=81 agsn=demo3.myweb.org hostn=demo3.myweb.org shostn=demo1.myweb.org cbsport=0 sport=0 claport=81 But I get the homepage of demo1.myweb.org... Any idea why this happen? Thanks in advance, Christophe - 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: Apache as front-end for several tomcat
check in your access_log for apache, what do they say From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 23:33:24 +0200 Not sure. I have seen several config of name based virtual hosts that listen on the same port. On 30-mars-05, at 23:02, Didier McGillis wrote: would it be the fact that your sending the requests through the same port number? From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 22:12:27 +0200 Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/htmleditor/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match demo1 - / [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=demo1 r-proxyreq=0 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] wc_get_worker_for_name::jk_worker.c (92): found a worker demo1 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] init_ws_service::mod_jk.c (479): agsp=81 agsn=demo3.myweb.org hostn=demo3.myweb.org shostn=demo1.myweb.org cbsport=0 sport=0 claport=81 But I get the homepage of demo1.myweb.org... Any idea why this happen? Thanks in advance, Christophe - 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:
Re: Apache as front-end for several tomcat
If you are running multiple instances of Tomcat, from what I understand and from my configuration (i run two Tomcat/mod_jk2 with Apache) you would then need each of them to listen on a different port. Right now the only instance that will receive requests via the worker is the instance that is using port 8009. At 01:33 PM 3/30/2005, Christophe Lemaire wrote: Not sure. I have seen several config of name based virtual hosts that listen on the same port. On 30-mars-05, at 23:02, Didier McGillis wrote: would it be the fact that your sending the requests through the same port number? From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 22:12:27 +0200 Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/htmleditor/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match demo1 - / [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=demo1 r-proxyreq=0 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] wc_get_worker_for_name::jk_worker.c (92): found a worker demo1 [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] init_ws_service::mod_jk.c (479): agsp=81 agsn=demo3.myweb.org hostn=demo3.myweb.org shostn=demo1.myweb.org cbsport=0 sport=0 claport=81 But I get the homepage of demo1.myweb.org... Any idea why this happen? Thanks in advance, Christophe - 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]
Manager in other webapp subdirectories hosts/contexts
I know I saw the info on this topic somewhere, but for the life of me, I can not relocate it.. (can not come up with the magic search strings...) I have various subdirectories under webapps that are configured as separate hosts and contexts i.e. /webapps/someapp In that directory I have a web application and I want the setup the Manager for stopping and starting this app.. Using the example for the localhost context I saw the alias Alias /usr/local/tomcat/webapps/../server/webapps/manager ..along with all the related settings... Since my webapp is in /usr/local/tomcat/webapps/someapp/ I tried.. Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager .. along with related settings... No joy.. it dropped the first ../ and still can not track to that alias directory.. So am I chasing my tail..G And/or can some point me to that phantom discusson on setting up the manager for other host/context/ subdirectories... Thanks... John... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Closed Input Stream across firewall
I am using a web application deployed on Tomcat 4.0 to receive and route incoming XML messages to destination web application also deployed on Tomcat 4.0. A firewall exists between these servers. All firewall policies are enabled for incoming and outgoing traffic. The ServletInputStream is already closed before I use it to create an object of InputStreamReader. Thus I am not able to read the stream. I did a snoop on the ports of these server which displayed the relay of request XML reaching the destination port and invoking the servlet in the destination web application but failing to read the XML since the input stream has been closed. Can you give me any leads as to how to debug the problem. On 31 Mar 2005 03:34:31 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the tomcat-user@jakarta.apache.org mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Acknowledgment: I have added the address [EMAIL PROTECTED] to the tomcat-user mailing list. Welcome to [EMAIL PROTECTED] Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address. --- Administrative commands for the tomcat-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 3674 invoked by uid 99); 31 Mar 2005 03:34:31 - X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of [EMAIL PROTECTED] designates 64.233.170.204 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.204) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 30 Mar 2005 19:34:30 -0800 Received: by rproxy.gmail.com with SMTP id j1so271025rnf for [EMAIL PROTECTED]; Wed, 30 Mar 2005 19:34:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=SjSbgg3bwIsKNMvudI4c6o2FXu9Lh/80ecJFi1RVR5IxGylotlu9xOc77pfXBAtdGmFW1uoRndrHJPcmda2LbpEHGBBPdxFAtLdniarva5JrJ1L62w6AyauwuzWnm0jq4kwW1DPpqhmxlW4yC4TT/4oVebmqw/yCPjWcFUZM51g= Received: by 10.38.79.42 with SMTP id c42mr1051757rnb; Wed, 30 Mar 2005 19:34:28 -0800 (PST) Received: by 10.38.11.45 with HTTP; Wed, 30 Mar 2005 19:34:27 -0800 (PST) Message-ID: [EMAIL PROTECTED] Date: Thu, 31 Mar 2005 09:04:27 +0530 From: Vineet Chopra [EMAIL PROTECTED] Reply-To: Vineet Chopra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: confirm subscribe to tomcat-user@jakarta.apache.org In-Reply-To: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: [EMAIL PROTECTED] X-Virus-Checked: Checked On 31 Mar 2005 03:26:46 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the tomcat-user@jakarta.apache.org mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] added to the tomcat-user mailing list, please send an empty reply to this address:
Re: Long Startup Time
On what hardware it is running ?. Check for other processes running ?. Any antivirus scanner runnign ?. Check for ContextListeners and Servlets which are set to load on startup. Look at the web.xml to find such things. The bottleneck should be in your application. On Wed, 30 Mar 2005 15:55:39 -0500, Mike Cherichetti (Renegade Internet) [EMAIL PROTECTED] wrote: Hi, I'm running Tomcat 5.0.28 with JDK 1.5.0_01 on Fedora Core 3. The problem that I'm having is pretty odd. It's taking Tomcat about 30 minutes to fully start up and start accepting connections. Here's where it's getting hung up at from the startup logs: Mar 30, 2005 10:52:10 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Mar 30, 2005 11:21:03 AM org.apache.catalina.core.StandardHost getDeployer You can see that it's about 29 minutes between those two log entries. So, my question is, what is happening there that could take so long? There are no errors in the logs and once Tomcat does complete its startup stuff our application works just fine. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Antony Paul http://www.geocities.com/antonypaul24/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] JK 1.2.10 Released
The Apache Jakarta Tomcat team is proud to announce the immediate availability of Jakarta Tomcat Connectors 1.2.10. The release contains a significant number of bug fixes and new features. Please see the http://jakarta.apache.org/tomcat/connectors-doc/changelog.html for a full list of changes. With release 1.2.10 the JkShmFile property has been added for Apache 1.3.x and Apache 2.x web servers on UNIX and LINUX platforms. Load balancer will not work properly if this directive is not present. Please refer to the change log for the list of changes: http://jakarta.apache.org/tomcat/connectors-doc/changelog.html Sources can be found at: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-1.2.10/ Binaries can be found at: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/ For now there is only a set of win32 binaries: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.2.10/ If you find any bugs while using this release, please fill in the http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205 Bug Report. When entering bug select Native:JK Component. The Jakarta Tomcat Connectors Team. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi Mladen, I visited that site and took/downloaded version Revision 1.4 of tomcat5.exe where the comment says Latest Tomcat5 and Tomcat5w binaries. Fixes the environment and JvmMs and JvmMx parsing. Then I issued the command tomcat5 //US//OvTomcatA --JvmSs 256 This was able to set the registry value of JvmSs to 256 correctly. Now, my question is, can I roll out only this executable as that of Tomcat version 5.0.28? Or do I need to roll out some other files as well? Please let me know. Thank you very much once again for your time, and eagerly awaiting your reply. - Lakshmi Narayanan K. On Wed, 30 Mar 2005 17:39:43 +0200, Mladen Turk [EMAIL PROTECTED] wrote: Lakshmi Narayanan K. wrote: Are you doing this from the tomcat5 binary from TC 5.0.30? I ask this because we have already rolled out TC 5.0.28 onto production systems, and if so, I cant roll out the newer TC 5.0.30 on them. : Use that one: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/procrun/bin/ Click on the tomcat5.exe and select (HEAD: download). If it does not work, then I have no clue what might be the problem, and is for sure related to your OS setup, rather then tomcat5.exe. Regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to get application real path
Hi , How we can get real path of application in java. ? thanks and regards, Pradeep DISCLAIMER: This message, including any attachments contains confidential and privileged information for the sole use of the intended recipient(s), and is protected by law. If you are not the intended recipient, please destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Indus and R Systems International Ltd reserves the right to record, monitor, and inspect all email communications through its internal and external networks. Your messages shall be subject to such lawful supervision as Indus and R Systems International Ltd deems necessary in order to protect its information, interests and reputation. Indus and R Systems International Ltd prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to get application real path
Hi Pradeep, I do not get a very clear idea about the problem, but I can suggest you to try the following: String realPath = getServletContext().getRealPath(configPath); You can try getRealPath() method on the Servlet Context. Thanks, ~Kanchan. On Thu, 31 Mar 2005 12:53:28 +0530, Pradeep Chauhan [EMAIL PROTECTED] wrote: Hi , How we can get real path of application in java. ? thanks and regards, Pradeep DISCLAIMER: This message, including any attachments contains confidential and privileged information for the sole use of the intended recipient(s), and is protected by law. If you are not the intended recipient, please destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Indus and R Systems International Ltd reserves the right to record, monitor, and inspect all email communications through its internal and external networks. Your messages shall be subject to such lawful supervision as Indus and R Systems International Ltd deems necessary in order to protect its information, interests and reputation. Indus and R Systems International Ltd prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Hang on Linux (hangs the entire system)
Hi there, I am posting this in a few areas because I cannot pinpoint where the problem stems from. I have a standard Pentium III bases pc running linux. It has only 380 meg (or therabouts) of ram Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but they all hang) I have 2 webapps running. One of them uses Apache to translate two different domain to the right ibay for it's content but uses the same code base. The second webapp is accessed, currently, using http://www.mycomapny.com:8080/MyApp style URL. The webapp just hangs. It will not load any pages, and when it hangs, both webapps hang. So I think this is a Tomcat or Java or Linux error. Once the hang occurs I cannot do a ps -ef as this also hangs. My only option is to reboot the machine. But it hangs half way and has to be physically powered off. We are going to put a new, more powerful computer in there, but for now I wanted to see if anyone else had experienced such a problem. Can you give me some pointers as to where to look for the source of the problem. This has happened before, and I got no information about it. I know it's a pretty vague explanation, but I don't know what more informationI can give you. The log files do not show any errors, and it never happens at the same point in the web application. At first I thought it happen when concurrent users logged in, but that's not the case either, and I have trimmed down the sychornicity management when accesing Singletons in my web app. Now I have been through all my code, and cannot find anything that should be causing an error. I have run the code under a number of different cirsumstances on my development machine (Windows 2000) and everything runs without a problem. Any help would be appreciated Regards Steve
Re: Tomcat Hang on Linux (hangs the entire system)
It might be a hardware related problem. Try to change the memory. Viorel Dragomir . .. --- - Original Message - From: Steve Vanspall To: tomcat-user@jakarta.apache.org Sent: Thursday, March 31, 2005 09:38 Subject: Tomcat Hang on Linux (hangs the entire system) Hi there, I am posting this in a few areas because I cannot pinpoint where the problem stems from. I have a standard Pentium III bases pc running linux. It has only 380 meg (or therabouts) of ram Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but they all hang) I have 2 webapps running. One of them uses Apache to translate two different domain to the right ibay for it's content but uses the same code base. The second webapp is accessed, currently, using http://www.mycomapny.com:8080/MyApp style URL. The webapp just hangs. It will not load any pages, and when it hangs, both webapps hang. So I think this is a Tomcat or Java or Linux error. Once the hang occurs I cannot do a ps -ef as this also hangs. My only option is to reboot the machine. But it hangs half way and has to be physically powered off. We are going to put a new, more powerful computer in there, but for now I wanted to see if anyone else had experienced such a problem. Can you give me some pointers as to where to look for the source of the problem. This has happened before, and I got no information about it. I know it's a pretty vague explanation, but I don't know what more informationI can give you. The log files do not show any errors, and it never happens at the same point in the web application. At first I thought it happen when concurrent users logged in, but that's not the case either, and I have trimmed down the sychornicity management when accesing Singletons in my web app. Now I have been through all my code, and cannot find anything that should be causing an error. I have run the code under a number of different cirsumstances on my development machine (Windows 2000) and everything runs without a problem. Any help would be appreciated Regards Steve
Re: Tomcat Hang on Linux (hangs the entire system)
Check your RAM, might be bad Drew. On Wed, 2005-03-30 at 23:38, Steve Vanspall wrote: Hi there, I am posting this in a few areas because I cannot pinpoint where the problem stems from. I have a standard Pentium III bases pc running linux. It has only 380 meg (or therabouts) of ram Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but they all hang) I have 2 webapps running. One of them uses Apache to translate two different domain to the right ibay for it's content but uses the same code base. The second webapp is accessed, currently, using http://www.mycomapny.com:8080/MyApp style URL. The webapp just hangs. It will not load any pages, and when it hangs, both webapps hang. So I think this is a Tomcat or Java or Linux error. Once the hang occurs I cannot do a ps -ef as this also hangs. My only option is to reboot the machine. But it hangs half way and has to be physically powered off. We are going to put a new, more powerful computer in there, but for now I wanted to see if anyone else had experienced such a problem. Can you give me some pointers as to where to look for the source of the problem. This has happened before, and I got no information about it. I know it's a pretty vague explanation, but I don't know what more informationI can give you. The log files do not show any errors, and it never happens at the same point in the web application. At first I thought it happen when concurrent users logged in, but that's not the case either, and I have trimmed down the sychornicity management when accesing Singletons in my web app. Now I have been through all my code, and cannot find anything that should be causing an error. I have run the code under a number of different cirsumstances on my development machine (Windows 2000) and everything runs without a problem. Any help would be appreciated Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Hang on Linux (hangs the entire system)
Hi, You can try the following step by step approach 1) Check whether you are able to run the examples application in tomcat. If you are not able to run that there's a problem with tomcat configuration or the JVM. 2) If that runs smoothly without any problems, check your application and ensure that it doesn't go into any infinite loops etc, since that's one runaway thing that can bring down the whole machine consuming lot of cpu and perhaps even memory leaving no room for anything else. 3) If your application is OK, make sure no other application is consuming lot of CPU or memory. -- Original Message -- On 31 Mar 2005, 04:43:10 PM, Viorel Dragomir writes: It might be a hardware related problem. Try to change the memory. Viorel Dragomir . .. --- - Original Message - From: Steve Vanspall To: tomcat-user@jakarta.apache.org Sent: Thursday, March 31, 2005 09:38 Subject: Tomcat Hang on Linux (hangs the entire system) Hi there, I am posting this in a few areas because I cannot pinpoint where the problem stems from. I have a standard Pentium III bases pc running linux. It has only 380 meg (or therabouts) of ram Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but they all hang) I have 2 webapps running. One of them uses Apache to translate two different domain to the right ibay for it's content but uses the same code base. The second webapp is accessed, currently, using http://www.mycomapny.com:8080/MyApp style URL. The webapp just hangs. It will not load any pages, and when it hangs, both webapps hang. So I think this is a Tomcat or Java or Linux error. Once the hang occurs I cannot do a ps -ef as this also hangs. My only option is to reboot the machine. But it hangs half way and has to be physically powered off. We are going to put a new, more powerful computer in there, but for now I wanted to see if anyone else had experienced such a problem. Can you give me some pointers as to where to look for the source of the problem. This has happened before, and I got no information about it. I know it's a pretty vague explanation, but I don't know what more informationI can give you. The log files do not show any errors, and it never happens at the same point in the web application. At first I thought it happen when concurrent users logged in, but that's not the case either, and I have trimmed down the sychornicity management when accesing Singletons in my web app. Now I have been through all my code, and cannot find anything that should be causing an error. I have run the code under a number of different cirsumstances on my development machine (Windows 2000) and everything runs without a problem. Any help would be appreciated Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Tomcat Hang on Linux (hangs the entire system)
[Marked off-topic as almost certainly not directly Tomcat-related] From: Steve Vanspall [mailto:[EMAIL PROTECTED] My only option is to reboot the machine. But it hangs half way and has to be physically powered off. As others have suggested, this may well be bad RAM - or I've had similar symptoms with two motherboards (from different manufacturers) that were OK at low bus speeds but on the edge at specced speed. The RAM is the more likely issue. I suggest downloading and booting with Memtest86+ (http://www.memtest.org/) as a first test. Plan to leave it running for several hours. It will log any errors it finds in the lower part of the screen. A second test is to run cpuburn (http://pages.sbcglobal.net/redelm/). cpuburn itself is a useful test, but I strongly recommend running burnbx and burnmmx for a few minutes each with each of their 'E' and 'L' parameters - E and L exercise L2 cache and RAM respectively. These will run while the machine is up. If they exit unexpectedly, or the machine spontaneously restarts, you've found your culprit! - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache as front-end for several tomcat
Are the Tomcat instance running on the same physical server and you are just using IP Aliases, or are the workers running on 3 sperate backend machines? You apache config looks OK, so I don't believe its an issue with Apache Virtual Host configuration. I believe all work in being forwarded to Demo1 only. I believe you can have multiple instances of tomcat listening on the same port by specifying an IP address in the connector. But I find it much easier just to congigure each instance to listen on a different port. If you check your other 2 workers log files, you will probably see an error similar to Bind address already in use. Modify each Tomcat instance to the SHUTDOWN and AJP listener are each on unique ports; For example, In each respective instance server.xml use; Demo1 Shutdown: 8001 Demo1 HTTP: 8081 Demo1 AJP Listener: 8101 Demo2 Shutdown: 8002 Demo2 HTTP: 8082 Demo2 AJP Listeer: 8102 Demo3 Shutdown: 8003 Demo3 HTTP: 8083 Demo3 AJP Listern: 8103 Restart each instance (check the catalina.out for errors) Modify your workers.properties file to relect the new AJP listen ports Restart Apache -Original Message- From: Dan Barron [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:48 PM To: Tomcat Users List; Tomcat Users List Subject: Re: Apache as front-end for several tomcat If you are running multiple instances of Tomcat, from what I understand and from my configuration (i run two Tomcat/mod_jk2 with Apache) you would then need each of them to listen on a different port. Right now the only instance that will receive requests via the worker is the instance that is using port 8009. At 01:33 PM 3/30/2005, Christophe Lemaire wrote: Not sure. I have seen several config of name based virtual hosts that listen on the same port. On 30-mars-05, at 23:02, Didier McGillis wrote: would it be the fact that your sending the requests through the same port number? From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 22:12:27 +0200 Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718):
Re: Data file owner and group difficulties
On Wed, Mar 30, 2005 at 08:23:04AM -0500, James T. Studebaker wrote: : Yes, Tomcat runs as tomcat:nobody. I can not run Tomcat as jims:jims since : jims is a virtual host account. I should have mentioned this in my initial : email. Yes, since the statement The app user is jims and my group is jims may lead someone to believe that Tomcat runs as jims:jims (or at least that the user is jims). : However Tomcat runs as tomcat:nobody, the default configuration. All users : need to have the ability to create and read data files with the owner:group : of their own accounts. Can this be done? Directly? no. Independence from the underlying OS is a big part of Java, not to mention Java webapps. With a layer of abstraction? Likely. You could move all needed auth/security to the database layer, if you get a private database (or at least private tables). That would mean you'd store the files in the database. This setup wouldn't sync with the existing (system) user/password tables, but for most of the webapps I've seen/written, this is a feature. =) -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]