Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote: I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, Please send us your workers.properties and httpd.conf. -- Lyndon Tiu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
--- Lyndon Tiu [EMAIL PROTECTED] wrote: On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote: I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, Please send us your workers.properties and httpd.conf. attached, tia, scott __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
Thanks for the tip Lyndon. It took a few tries, but I finally got it right, I think! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Apache Tomcat Virtual Host question
Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Thanks in advance. Aria. On Wed, 05 Oct 05 13:25:38 -0400 Aria Bamdad said: Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am not really interested in the host name part of the URL, I am more interested in the port number. I have 3 different document roots depending on the port. One for port 80 http requests, one for port 443 https requests and another for port 88 http. Each document root has it's set of subdirectories. The subdirectories contain static and jsp content and you **CAN** have the same directory name under each of the three different document roots. For example: I can have /www/port80/project1 and /www/port443/project1 but they contain different information. How do I configure Apache and Tomcat so that when Apache receives a request on a specific port, it will pass that along to Tomcat, AND, how do I configure Tomcat so that it servs the correct 'project1' application under the correct document root? Thanks inadvance. Aria. - 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 Tomcat Virtual Host question
Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Well, having different presentations by using different port numbers is not a common practice these days, since Apache has Name-based VHosts. Similarely, Tomcat supports Name-based VHosts only (unless I am greatly mistaken). So, it would appear that your solution is the only applicable one. The best choice is, of course, to go for name based VHosts, since it integrates very well and makes your URLs look nice. BTW, 443 is HTTPS port, which is different story. So, save yourself a lot of trouble and go for unified VHosts. One observation, though - with multiple instances of TC you have greater robustness. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat Virtual Host question
Nikola, Thank you very much for you good comments. I agree that port based servers are not common. The reason we use them is for separating for example internal web sites and external public web sites. Using host name based virtual hosting, you have to give a different host name to each port. For example if you were serving http and https on the same host www.company.com, you now have to use secure.company.com for your port 443 and www.company.com for your port 80. I just wanted to see if there is a way to just use www.company.com and have Tomcat see the port too. Thanks again. Aria On Thu, 06 Oct 2005 15:33:15 +0200 you said: Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Well, having different presentations by using different port numbers is not a common practice these days, since Apache has Name-based VHosts. Similarely, Tomcat supports Name-based VHosts only (unless I am greatly mistaken). So, it would appear that your solution is the only applicable one. The best choice is, of course, to go for name based VHosts, since it integrates very well and makes your URLs look nice. BTW, 443 is HTTPS port, which is different story. So, save yourself a lot of trouble and go for unified VHosts. One observation, though - with multiple instances of TC you have greater robustness. 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: Apache/Tomcat integration - What am I doing wrong?
Kyle wrote: I have Apache serving multiple VHosts. I want to (eventually) integrate different versions of Tomcat into different VHosts, but for now, I'd settle for just 5.5.9 working with my default Apache VHost. Apache works dandy alone on :80. Tomcat works just fine on :8080. I have the jsp-examples and servlets-examples pages displaying from host.domain.com/.. But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. First is it apache or tomcat that is returning the 500 ? This might be easiest found setting up logging of your specific VHost in apache to a different file than the default apache logs (that are in apache/logs/). Then breaking the ServerName and ServerAlias configuration in apache (restarting apache inbetween) and checking to see that the request you put through with say wget is being directed by apache to the correct Apache VHost logfile. I would revise your JkMount to look like: JkMount /admin/* ajp13Wkr This will pass-thru apache everything for the webapp to TC. I would also remove inprocess from the worker.list settings. Once you have that established you can then work on your JkMount settings and Tomcat. Have you checked out, understood and implement the information in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases ? I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. Likewise, I am unable to get the host.domain.com/admin, host.domain.com/manager/html or host.domain.com/manager/status to display over :80 Various errors I am seeing are; File does not exist /opt/www/root/jsp-examples/this_or_that_example File does not exist /opt/www/root/admin or /admin just displays the index. Files look like this; httpd.conf == ServerName host.domain.com:80 UseCanonicalName Off DocumentRoot /opt/www/root .. .. VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName host.domain.com ErrorLog logs/host-defaulthost-error_log CustomLog logs/host-defaulthost-access_log common Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf-hostname /VirtualHost -- server.xml == . Connector port=8009 enableLookups=false protocol=AJP/1.3/ Engine name=Catalina defaultHost=host.domain.com Host name=host.domain.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaslocalhost/Alias /Host Listener className=org.apache.jk.config.ApacheConfig modJk=/opt/httpd/modules/mod_jk.so workersConfig=/opt/jakarta-tomcat-5.5.9/conf/workers.properties forwardAll=false jkLog=/var/log/httpd/mod_jk.log jkDebug=info jkWorker=ajp13Wkr/ /Engine /Service /Server -- workers.properties == workers.tomcat_home=/opt/jakarta-tomcat-5.5.9 #workers.tomcat_home=/opt/tomcat workers.java_home=/opt/java ps=/ # The workers that your plugins should create and work with # worker.list=ajp13Wkr, inprocess worker.ajp13Wkr.port=8009 worker.ajp13Wkr.host=host.domain.com worker.ajp13Wkr.type=ajp13 worker.ajp13Wkr.lbfactor=1 worker.ajp13Wkr.cachesize=30 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13Wkr worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) - and the included file in the httpd.conf VHost above mod-jk.conf-hostname JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %d %b %Y %H:%M:%S] JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories JkRequestLogFormat %w %V %T # Static files Alias /admin /opt/jakarta-tomcat-5.5.9/server/webapps/admin Directory /opt/jakarta-tomcat-5.5.9/server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm Order allow,deny Allow from All /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None
Re: Apache/Tomcat integration - What am I doing wrong?
Darryl, thanks the reply. Responses inline Darryl L. Miles wrote: Kyle wrote: I have Apache serving multiple VHosts. I want to (eventually) integrate different versions of Tomcat into different VHosts, but for now, I'd settle for just 5.5.9 working with my default Apache VHost. Apache works dandy alone on :80. Tomcat works just fine on :8080. I have the jsp-examples and servlets-examples pages displaying from host.domain.com/.. But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. First is it apache or tomcat that is returning the 500 ? I'll leave the 500 question till I can be certain of the answer. I thought it could only be Apache. Will however ensure now. Then breaking the ServerName and ServerAlias configuration in apache (restarting apache inbetween) Not certain I understand what you mean here. Break them ... ?? Do you simply mean give the default VHost a diff. name to the general ServerName directive above? I would revise your JkMount to look like: JkMount /admin/* ajp13Wkr This will pass-thru apache everything for the webapp to TC. The multiple jkMount Directives are auto-generated by Tomcat. I could revise. I just thought it best to just leave them. I suspect they are so that IF I were to put any static content in those directories, Apache would pick it up instead. Once you have that established you can then work on your JkMount settings and Tomcat. Have you checked out, understood and implement the information in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases ? Interesting question. Read it, I have. It is not however clear to me as to whether or not TC _MUST_ have a _Different_ VirtualHost Name than the default VHost name in Apache or whether it should be the same. And then whether or not an Alias can or cannot be the same as some other name for that same machine. Does this mean effectively there should be 3 different names for the same machine to function in this manner? I.e. The ServerName directive in httpd.conf The ServerName for the default VHost AND yet ANother different defaultHost/Host name for Tomcat I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. So far, I am only trying to view the examples and default admin app.s that come bundled with TC. If I understand you correctly here, you are effectively saying that the auto-conf file generated by TC is not up to the job and I should dump it in favour of manual inline config. MTiA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - What am I doing wrong?
Kyle wrote: But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. First is it apache or tomcat that is returning the 500 ? I'll leave the 500 question till I can be certain of the answer. I thought it could only be Apache. Will however ensure now. Then breaking the ServerName and ServerAlias configuration in apache (restarting apache inbetween) Not certain I understand what you mean here. Break them ... ?? Do you simply mean give the default VHost a diff. name to the general ServerName directive above? I mean when you are stuck and don't know. Somethings are easier to deliberatly break the configuration and observe the result (i.e. where the error shows up now). Since you are trying to work out if the 500 is being produced directly from Apache or is a response apache is just relaying that really came from Tomcat. It smells like apache to me, but until you can prove it you wont really know. You need to confirm that requests for the vhost are being correctly routed into the VirtualHost section of the apache config. If they are not then there is no sense looking at the JkMount configuration yet. So if you have logging setup in apache both in the global config /usr/local/apache/log/access_log and in the VirtualHost ... section to /tmp/foobar/someother/file/access_log then depending upon which file the request gets logged will confirm to you that Apache is correctly configured and working for vhost operation and the VirtualHost ... section your JkMount's are in it indeed coming into play. JkMount /admin/* ajp13Wkr This will pass-thru apache everything for the webapp to TC. I would revise your JkMount to look like: The multiple jkMount Directives are auto-generated by Tomcat. I could revise. I just thought it best to just leave them. I suspect they are so that IF I were to put any static content in those directories, Apache would pick it up instead. Yes. But in the situation you are in, setting up /admin/* should make Apache bounce the request off Tomcat if it was not table to serve the content itself. I am not at all sure what the order of preceedence is with mixing Alias, JkMount or if the file itself it found in the document root. Once you have that established you can then work on your JkMount settings and Tomcat. Have you checked out, understood and implement the information in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases ? Interesting question. Read it, I have. It is not however clear to me as to whether or not TC _MUST_ have a _Different_ VirtualHost Name than the default VHost name in Apache or whether it should be the same. And then whether or not an Alias can or cannot be the same as some other name for that same machine. Does this mean effectively there should be 3 different names for the same machine to function in this manner? I.e. The ServerName directive in httpd.conf The ServerName for the default VHost AND yet ANother different defaultHost/Host name for Tomcat Different No. The idea is that you can service some content via Apache directly (maybe this is also PHP or Perl) and other content via Apache+Tomcat. Apache is always in control, if the request is not forwarded to Tomcat then you will see the usual Apache like responses (404). So if you want to a single hostname in the URL then you need to configure both Apache (ServerName/ServerAlias) and Tomcat (Host / Alias) to responsd to the same hostname. I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. So far, I am only trying to view the examples and default admin app.s that come bundled with TC. If I understand you correctly here, you are effectively saying that the auto-conf file generated by TC is not up to the job and I should dump it in favour of manual inline config. No... I'm not saying that I have no idea your Apache configuration was auto-generated by TC. I'm just offering you a methodoligy to observe some change in behaviour so you can work through the problem yourself. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - Update
Ok, One step at a time. Thanks so far Darryl. I now have it working across the internal network, but not externally. The next step is what do I now need to do so that I can see the jsp/servlets-examples pages externally?? Also, as I understand it, this format means that TC 5.5.9 will be the only one available to ALL VHosts. I need to set up different Tomcat versions with the different VHosts. Another day's question for now. {For reference, I have included the changes made to my originally mailed config at the bottom.} As follow up to earlier questions; You need to confirm that requests for the vhost are being correctly routed into the VirtualHost section of the apache config. If they are not then there is no sense looking at the JkMount configuration yet. ... logging is set up differently for the global config and the default VHost. It is the VHost error log which is displaying the File does not exist errors. This file registered these internally initially and it is now still this file which is registering the same error for external calls. So if you want to a single hostname in the URL then you need to configure both Apache (ServerName/ServerAlias) and Tomcat (Host / Alias) to responsd to the same hostname. it is precisely this combo which didn't work. Engine defaultHost=same_as_Apache_ServerName__Default_VHost Host name=same_as_Apache_ServerName__Default_VHost Aliaslocalhost/Alias I have now switched them (see below) and it appears to work. I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. How do you mean TC can and will delete the directory from under Apache? Which directory do you mean? At this point, I am only trying to view the WARs bundled with TC. I am starting TC before Apache with the apps already deployed (so far). Thanks again. Kyle == httpd.conf now looks like; -- ServerName host.domain.com:80 . VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName host.domain.com ErrorLog logs/host-defaulthost-error_log CustomLog logs/host-defaulthost-access_log common /VirtualHost Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf JkLogStampFormat [%a %d %b %Y %H:%M:%S] JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories JkRequestLogFormat %w %V %T server.xml has been switched (localhost now defaultHost - surely this can't be right) -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliashost.domain.com/Alias and mod_jk.conf is almost the std. auto-generated file from TC with the minor additions of; Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp ADDED IN Order allow,deny Allow from all /ADDED IN /Directory And JkMount /jsp-examples/* ajp13Wkr Also del'd the JNI worker in workers.properties as suggested. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - Update
Do you have a line in Apache: NameVirtualHost *:80 I dont think ServerName should have the port number after it. This and ServerAlias are Host: header matching values. I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. How do you mean TC can and will delete the directory from under Apache? Which directory do you mean? At this point, I am only trying to view the WARs bundled with TC. I am starting TC before Apache with the apps already deployed (so far). I suggest you learn more about the exact nature of the deployment procedure from an packed WAR to an unpacked WAR that goes in within TC. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - Update
Darryl L. Miles wrote: Do you have a line in Apache: NameVirtualHost *:80 I dont think ServerName should have the port number after it. This and ServerAlias are Host: header matching values. Darryl, yes I do. However the ServerName directive I have been referring to in all msgs is the global ServerName directive that comes in much further up the file (example file anyway). The actual Hostname of the machine. It is this name I have been putting into the VirtualHost tag as the default VHost. I.e. It is this name I want the machine to respond with rather than www as a default. I'm beginning to wonder whether this is the right thing to be doing. -- Kind Regards Kyle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Hi, I've been following this thread for a bit and can offer some of my painfully gained insights. I have Apache, tomcat 5.0.28, mod_jk and SSL. This is not a real fix, just my workarounds. It drove me nuts forever until I figured out that Apache webserver does not successful apply rewrite rules to the JkMount directive. In my httpd.conf: #tomcat worker JkWorkersFile conf/workers.properties JkLogFile logs/jk.log JkLogLevel info JkMount /*.jsp jkworker Under my virtual host port 80 I tested a few rewrite rules(the first was to the 'admin' directory, the second was for all requests): RewriteRule ^/admin/(.*)$ https://server.name.com/$1 [R] RewriteRule ^.*$ https://server.name.com%{REQUEST_URI} [R] The rewrite would work for non JkMount items, but the behavior seemed to show apache just handing off the transaction to tomcat via the mount BEFORE applying the rewrite. (please check this for yourself, if you use a rewrite rule to a non JkMount directory Apache should redirect it successfully) Tomcat would not bounce it to port 443 because the rewrite rule was not in the tomcat layer. Our java programer ended up writing a custom jsp that redirected the transaction to a SSL port. I then made the redirect directory forbidden under non-SSL. I suspect there maybe a more graceful way to do this please let me know if you find it. -Kiarna
Re: Apache + Tomcat + Mod_JK + SSL How to?
Well, maybe I've just make a mistake somewhere. I looked at my jsp-examples/ url work with ssl and without in mod_jk. Where should I look to see why this one works but my app doesn't? Stanczak Group wrote: I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Stanczak Group wrote: Well, maybe I've just make a mistake somewhere. I looked at my jsp-examples/ url work with ssl and without in mod_jk. Where should I look to see why this one works but my app doesn't? Stanczak Group wrote: I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? Hi, Your question is a little bit unclear. If you need a redirection from http://site/admin/ to https://site/admin/ look at the mod_rewrite, or simply make a absolute link to https page. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. But the real issue is when I access the url for example http://www.myapp.com/thisapp it works, but when I add https://www.myapp.com/thisapp it fails saying The requested URL /MemCarQue/cars was not found on this server.. But the default jsp-examples/ url works with SSL and without. Once this works then I'll want to make it so the /thisapp/secure part works like Tomcat stand alone and redirects based on the security constraint in web.xml of the app. I'm guessing this can be done by setting the Tomcat to redirect to SSL port. Mladen Turk wrote: Stanczak Group wrote: Well, maybe I've just make a mistake somewhere. I looked at my jsp-examples/ url work with ssl and without in mod_jk. Where should I look to see why this one works but my app doesn't? Stanczak Group wrote: I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? Hi, Your question is a little bit unclear. If you need a redirection from http://site/admin/ to https://site/admin/ look at the mod_rewrite, or simply make a absolute link to https page. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? Also, adjust your clock. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? yes that is correct. Also, adjust your clock. ? What do you mean? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
test time Stanczak Group wrote: Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? yes that is correct. Also, adjust your clock. ? What do you mean? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? Also, adjust your clock. That fix it? I didn't even see it was off. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to? Got it.
It was something simple. I didn't have to mod_jk directive setup on the virtual host with ssl. Stanczak Group wrote: Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? Also, adjust your clock. That fix it? I didn't even see it was off. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Justin, Thanks for the reply ... I have already downloaded all the files from the location you suggested ( i.e. the Linux Version ). But its giving me the following error ... Syntax error on line 235 of /etc/httpd/conf/httpd.conf: Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Steve has suggested not to use the PPC module. I'm gng to try with i386 and will get back to you. Thanks a lot again ... Shailendra -Original Message- From: Justin Crabtree [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 7:37 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache + Tomcat with Mod_jk Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ And here for docs. http://jakarta.apache.org/tomcat/connectors-doc/ -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Steve, Thanks for your reply ... I WAS using the PPC Module. I'll change it to I386, check once again and get back ... Thanks a lot again ... Regards, Shailendra -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:10 PM To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Apache + Tomcat with Mod_jk Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr efork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo rker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32 / Those are for windows, he is running linux (for the webserver at least). http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/ If you are not running a ppc (power pc) architecture based machine don't use the ppc module. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with Mod_jk
Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ And here for docs. http://jakarta.apache.org/tomcat/connectors-doc/ -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with Mod_jk
Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr efork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo rker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32 / Those are for windows, he is running linux (for the webserver at least). http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/ If you are not running a ppc (power pc) architecture based machine don't use the ppc module. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Shailendra, What your Apache MPM are you using? I think you should use JK_module that accord with Apcahe MPM. Thanks, -Toshio -Original Message- From: Shailendra Gatade [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 11:25 PM To: tomcat-user@jakarta.apache.org Subject: Apache + Tomcat with Mod_jk Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53- prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53- worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra __ Save the earth http://pr.mail.yahoo.co.jp/ondanka/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache-Tomcat Servlet Mapping Issues
Hi David: An alternate to using mod_JK is to proxy http (or https) request to the Tomcat from Apache. i.e: ProxyPass /path http://localhost:port/path ProxyPassReverse /path http://localhost/path There are valid reasons for using mod_JK - above just an alternate suggestion if you can do without mod_JK regards, Hari Mailvaganam On 6/22/05, David Rickard [EMAIL PROTECTED] wrote: System: Solaris SunOS 5.9 Apache: 2.0.52 Tomcat: 4.1.31 Mod JK: 1.2.6 The problem: Apache/mod_jk cannot resolve servlet URL mappings When Tomcat is running stand-alone, it can resolve servlet mappings without any problems; so that a page with this form definition: FORM name=login method=POST action=loginhandler correctly invokes the com.company.LoginHandler servlet (which suggests there's nothing syntactically wrong with the servlet and servlet-mapping entries in web.xml); When Tomcat stand-alone is turned off and Apache is turned on, that same page always throws a 404 error for site/loginhandler; these are the error messages in mod_jk.log: [Wed Jun 22 09:04:08 2005] [mod_jk.c (2313)]: mod_jk::jk_translate, check alias_dir: /usr/apache/tomcat/webapps [Wed Jun 22 09:04:08 2005] [mod_jk.c (2337)]: mod_jk::jk_translate, AutoAlias child_dir: loginhandler [Wed Jun 22 09:04:08 2005] [mod_jk.c (2363)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (459)]: Attempting to map URI '/aiwosc/loginhandler' [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match What terribly simple configuration error have I made here? These are the web.xml entries for this servlet: servlet servlet-nameloginhandler/servlet-name servlet-classcom.company.aiwosc.LoginHandler/servlet-class /servlet servlet-mapping servlet-nameloginhandler/servlet-name url-pattern/loginhandler/url-pattern /servlet-mapping This is the workers.properties file: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=server.org worker.ajp13.type=ajp13 This is the app section from mod_jk.conf: server.org:/aiwosc # Static files Alias /aiwosc /var/apache/tomcat/webapps/aiwosc Directory /var/apache/tomcat/webapps/aiwosc Options Indexes FollowSymLinks DirectoryIndex index.html /Directory # Deny direct access to WEB-INF and META-INF # Location /aiwosc/WEB-INF/* AllowOverride None deny from all /Location Location /aiwosc/META-INF/* AllowOverride None deny from all /Location JkMount /aiwosc/addtitleservlet ajp13 JkMount /aiwosc/submittitleservlet ajp13 JkMount /aiwosc/transfertitleservlet ajp13 JkMount /aiwosc/saveoscservlet ajp13 JkMount /aiwosc/reordercastservlet ajp13 JkMount /aiwosc/loginhandler ajp13 JkMount /aiwosc/editcategoryservlet ajp13 JkMount /aiwosc/edittitleservlet ajp13 JkMount /aiwosc/addaddendumservlet ajp13 JkMount /aiwosc/*.jsp ajp13 JkMount /aiwosc/addcategoryservlet ajp13 This is the Context entry for the app in server.xml: !-- Oscars OSC Context -- Context path=/aiwosc docBase=aiwosc debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=aiwosc_log. suffix=.txt timestamp=true/ Resource name=jdbc/oscars auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/oscars parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACAD/value /parameter parameter nameusername/name valueIMPC_ADMIN/value /parameter parameter namepassword/name valuePIRANHA/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context And these are the mod_jk load/configuration entries from httpd.conf: IfModule !mod_jk.c
Re: Apache-Tomcat Servlet Mapping Issues
Hi, As you test, can you load a servlet through apache httpd? Such as http://www.xyz.com/testservlet You should make a simple servlet that just has the doGet method to test. -Steve O. System: Solaris SunOS 5.9 Apache: 2.0.52 Tomcat: 4.1.31 Mod JK: 1.2.6 The problem: Apache/mod_jk cannot resolve servlet URL mappings When Tomcat is running stand-alone, it can resolve servlet mappings without any problems; so that a page with this form definition: FORM name=login method=POST action=loginhandler correctly invokes the com.company.LoginHandler servlet (which suggests there's nothing syntactically wrong with the servlet and servlet-mapping entries in web.xml); When Tomcat stand-alone is turned off and Apache is turned on, that same page always throws a 404 error for site/loginhandler; these are the error messages in mod_jk.log: [Wed Jun 22 09:04:08 2005] [mod_jk.c (2313)]: mod_jk::jk_translate, check alias_dir: /usr/apache/tomcat/webapps [Wed Jun 22 09:04:08 2005] [mod_jk.c (2337)]: mod_jk::jk_translate, AutoAlias child_dir: loginhandler [Wed Jun 22 09:04:08 2005] [mod_jk.c (2363)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (459)]: Attempting to map URI '/aiwosc/loginhandler' [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match What terribly simple configuration error have I made here? These are the web.xml entries for this servlet: servlet servlet-nameloginhandler/servlet-name servlet-classcom.company.aiwosc.LoginHandler/servlet-class /servlet servlet-mapping servlet-nameloginhandler/servlet-name url-pattern/loginhandler/url-pattern /servlet-mapping This is the workers.properties file: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=server.org worker.ajp13.type=ajp13 This is the app section from mod_jk.conf: server.org:/aiwosc # Static files Alias /aiwosc /var/apache/tomcat/webapps/aiwosc Directory /var/apache/tomcat/webapps/aiwosc Options Indexes FollowSymLinks DirectoryIndex index.html /Directory # Deny direct access to WEB-INF and META-INF # Location /aiwosc/WEB-INF/* AllowOverride None deny from all /Location Location /aiwosc/META-INF/* AllowOverride None deny from all /Location JkMount /aiwosc/addtitleservlet ajp13 JkMount /aiwosc/submittitleservlet ajp13 JkMount /aiwosc/transfertitleservlet ajp13 JkMount /aiwosc/saveoscservlet ajp13 JkMount /aiwosc/reordercastservlet ajp13 JkMount /aiwosc/loginhandler ajp13 JkMount /aiwosc/editcategoryservlet ajp13 JkMount /aiwosc/edittitleservlet ajp13 JkMount /aiwosc/addaddendumservlet ajp13 JkMount /aiwosc/*.jsp ajp13 JkMount /aiwosc/addcategoryservlet ajp13 This is the Context entry for the app in server.xml: !-- Oscars OSC Context -- Context path=/aiwosc docBase=aiwosc debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=aiwosc_log. suffix=.txt timestamp=true/ Resource name=jdbc/oscars auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/oscars parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/va lue /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACA D/value /parameter parameter nameusername/name valueIMPC_ADMIN/value /parameter parameter namepassword/name valuePIRANHA/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context And these are the mod_jk load/configuration entries from httpd.conf: IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule Include /usr/apache/tomcat/conf/auto/mod_jk.conf JkWorkersFile
Re: Apache Tomcat JK1.2 Connector
Darrell Bechtel wrote: Both workers are setup to communicate to the localhost using port 8009?? Perhaps your /etc/hosts file has a entry that resolves the 'localhost' to that IP address. Anyhow use 127.0.0.1 instead localhost to be sure. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat JK1.2 Connector
Look in the Apache2\conf\workers.properties file. -Original Message- From: Darrell Bechtel [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 5:41 PM To: tomcat-user@jakarta.apache.org Subject: Apache Tomcat JK1.2 Connector I have connected these 2 servers previously, but I am now running into problems getting apache 2.0.5 to communicate with tomcat 5.5.9 using the jk1.2 connector on the Fedora Core 3 test 4. From looking through the jk log file it appears that apache is trying to communicate to 66.103.44.3:8009. I have no idea where this ip is coming from since both apache and tomcat are installed locally and there is only 1 nic with an internal ip of 192.168.50.5. If anyone can shed light on where I should be looking to resolve this conflict it would be much appreciated. Thanks, Darrell Bechtel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat JK1.2 Connector
Both workers are setup to communicate to the localhost using port 8009?? Darrell -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 9:11 PM To: 'Tomcat Users List' Subject: RE: Apache Tomcat JK1.2 Connector Look in the Apache2\conf\workers.properties file. -Original Message- From: Darrell Bechtel [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 5:41 PM To: tomcat-user@jakarta.apache.org Subject: Apache Tomcat JK1.2 Connector I have connected these 2 servers previously, but I am now running into problems getting apache 2.0.5 to communicate with tomcat 5.5.9 using the jk1.2 connector on the Fedora Core 3 test 4. From looking through the jk log file it appears that apache is trying to communicate to 66.103.44.3:8009. I have no idea where this ip is coming from since both apache and tomcat are installed locally and there is only 1 nic with an internal ip of 192.168.50.5. If anyone can shed light on where I should be looking to resolve this conflict it would be much appreciated. Thanks, Darrell Bechtel - 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-tomcat-mod_jk-ssl
I have Tomcat 5.5.9 and Apache 2.0.54 running on Windows 2000, connecting them with mod_jk (not jk2). The only thing I want to do now is have Apache run Tomcat in-process like I did with jk2, is this possible? And if it is, what files do I need to update and configure? Thanks. Tom faisal wrote: hi guyz i ve just configured to use my tomcat 5.5.x running on win2k machine with apache web server 2.0.49 running on fedora core 2 machine. my application are running perfectly well. infact i m noticing a certain level of increase in performance. however, i get into troubles as soon as i take my login page to SSL. i get the error The connection was refused when attempting to contact myserver:8443. i will appreciate any help or any pointer to any thread. P.S. i did try to search through those hundreds of threads. Thanx in advance - 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+Tomcat
Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? Scenario 2 is easier to implement, there are fewer things that can break and less config files to maintain. Scenario 1 gives you a unified setting of your web space. You just simply know that you have one front-end, Apache. In that case Apache receives the initial HTTP request and can handle parts of it. The most interesting aspect of such a setup are authentication and redirection. While Tomcat has some rudimentary aliasing, Apache is superrior when it comes to URL rewriting, redirections and proxying. On the field of authentication, Tomcat supports HTTP-Basic, HTTP-Digest and SSL-based authentication. Apache can add to that SPNEGO (Kerberos5, read Microsoft Active Directory Service), plus several backend mechs for the Basic and Digest (LDAP, MySQL, PostgreSQL,...). Tomcat can only benefit from that. My advice to you, if you're learning or experimenting, use Tomcat StandAlone. If you're thinking production, gather your requrements and see what fits you best. It could again very well be TC standalone. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache+Tomcat
We use tomcat standalone on production - most of our pages are dynamic (95%) and the user load is ~7000 and it has been behaving awesome - we use 4.1.31. hth, Anoop On 5/11/05, Nikola Milutinovic [EMAIL PROTECTED] wrote: Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? Scenario 2 is easier to implement, there are fewer things that can break and less config files to maintain. Scenario 1 gives you a unified setting of your web space. You just simply know that you have one front-end, Apache. In that case Apache receives the initial HTTP request and can handle parts of it. The most interesting aspect of such a setup are authentication and redirection. While Tomcat has some rudimentary aliasing, Apache is superrior when it comes to URL rewriting, redirections and proxying. On the field of authentication, Tomcat supports HTTP-Basic, HTTP-Digest and SSL-based authentication. Apache can add to that SPNEGO (Kerberos5, read Microsoft Active Directory Service), plus several backend mechs for the Basic and Digest (LDAP, MySQL, PostgreSQL,...). Tomcat can only benefit from that. My advice to you, if you're learning or experimenting, use Tomcat StandAlone. If you're thinking production, gather your requrements and see what fits you best. It could again very well be TC standalone. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop
Re: Apache+Tomcat
Yoo, If you need PHP than standalone tomcat is not an option you want, to my opinion! Greetings O. On 5/11/05, Anoop kumar V [EMAIL PROTECTED] wrote: We use tomcat standalone on production - most of our pages are dynamic (95%) and the user load is ~7000 and it has been behaving awesome - we use 4.1.31. hth, Anoop On 5/11/05, Nikola Milutinovic [EMAIL PROTECTED] wrote: Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? Scenario 2 is easier to implement, there are fewer things that can break and less config files to maintain. Scenario 1 gives you a unified setting of your web space. You just simply know that you have one front-end, Apache. In that case Apache receives the initial HTTP request and can handle parts of it. The most interesting aspect of such a setup are authentication and redirection. While Tomcat has some rudimentary aliasing, Apache is superrior when it comes to URL rewriting, redirections and proxying. On the field of authentication, Tomcat supports HTTP-Basic, HTTP-Digest and SSL-based authentication. Apache can add to that SPNEGO (Kerberos5, read Microsoft Active Directory Service), plus several backend mechs for the Basic and Digest (LDAP, MySQL, PostgreSQL,...). Tomcat can only benefit from that. My advice to you, if you're learning or experimenting, use Tomcat StandAlone. If you're thinking production, gather your requrements and see what fits you best. It could again very well be TC standalone. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache+Tomcat
Scenario two will be less hassle - unless you need a feature of Apache HTTP Server. If you plan to only use Apache HTTP Server as a listener for http request - it will be better off with the Tomcat alone. If, for any particular reason, you absolutely wish to use the Apache HTTP server as the http listener only - you can proxy the request in Apache to Tomcat. And not bother with mod-jk2. regards, Hari Mailvaganam On 5/10/05, Praveen KUMAR [EMAIL PROTECTED] wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? -- With best regards, Praveen Soni - 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+Tomcat
On 5/10/05, Praveen KUMAR [EMAIL PROTECTED] wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) If you need to ask this question then you should be using Apache Tomcat standalone using the Coyote connector that comes standard. If you have specialized needs that aren't being met by Tomcat standaone then you might consider looking at an apache Webserver front end. 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: Apache+Tomcat
From: Praveen KUMAR [mailto:[EMAIL PROTECTED] Subject: Apache+Tomcat What would be difference in both the scenarios in terms of performance and reliability? Reliability: (very) generally, the fewer moving parts, the less chance of problems. Performance: only you can answer that question by measuring how your application runs on both configurations on the target hardware and OS. Note that the Tomcat 5.5 branch is noticeably faster than 5.0. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache + tomcat + JK connector configuration
http://www.one0.com/html/downloads.php Download the pdf ( nice ) / doc version Nice :o) Guru -Original Message- From: anshul shrivastava [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 18:08 To: Tomcat Users List Subject: Re: apache + tomcat + JK connector configuration Importance: High Hi all, This is my first post to group. I've already asked this problem in popular forums, but can't resolve. Hope, someone of you'll help. Thank you, in advance, very much. I'm using Tomcat Apache Tomcat/5.0.16 on jdk 1.5.0 ( port 8080 ). I've installed Apache2 ( port 80 ) using MSI installer on Windows 200 Professional. I want to use mod_jserv and connect Tomcat, Apache and database MySQL. I read, it is better not to process .html requests by Tomcat, instead by Apache. Also, I want to run .jsp files from ~/wwwroot ( Apache is already working PHP files in ~/wwwroot ). Someone of you, said to forward, .jsp to Apache using .htaccess. Also, it can be done by Apache Module, how ? Please also tell me, where ( exact url ) can I download jk_connecter or mod_jserv ? ( I've already downloaded something! ). Please help. anshul shrivastava ( I'm very new to Java; swithcing to Java! from PHP ) What is the username/password for http://localhost:8080/admin/ What is catalina, by the way ? ( h'ven't seen it in previous versions ). - Original Message - From: Delphine Lê [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, April 18, 2005 6:26 PM Subject: RE: apache + tomcat + JK connector configuration Bob, Thank you but Apache doesn't start if I add this line. The Apache config I have is: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount /examples worker1 It seems to works fine (see the logs in my very first message). And also, I can see that it automatically creates a mod_jk.conf file in $TOMCAT_HOME\conf\auto Regards -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: vendredi 15 avril 2005 19:52 To: Tomcat Users List Subject: Re: apache + tomcat + JK connector configuration Delphine, Have you added JkSet config.file ... to your apache config file? Bob On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote: I tried this, but it didn't help unfortunately Thank you Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send
Re: apache + tomcat + JK connector configuration
Hi all, This is my first post to group. I've already asked this problem in popular forums, but can't resolve. Hope, someone of you'll help. Thank you, in advance, very much. I'm using Tomcat Apache Tomcat/5.0.16 on jdk 1.5.0 ( port 8080 ). I've installed Apache2 ( port 80 ) using MSI installer on Windows 200 Professional. I want to use mod_jserv and connect Tomcat, Apache and database MySQL. I read, it is better not to process .html requests by Tomcat, instead by Apache. Also, I want to run .jsp files from ~/wwwroot ( Apache is already working PHP files in ~/wwwroot ). Someone of you, said to forward, .jsp to Apache using .htaccess. Also, it can be done by Apache Module, how ? Please also tell me, where ( exact url ) can I download jk_connecter or mod_jserv ? ( I've already downloaded something! ). Please help. anshul shrivastava ( I'm very new to Java; swithcing to Java! from PHP ) What is the username/password for http://localhost:8080/admin/ What is catalina, by the way ? ( h'ven't seen it in previous versions ). - Original Message - From: Delphine Lê [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, April 18, 2005 6:26 PM Subject: RE: apache + tomcat + JK connector configuration Bob, Thank you but Apache doesn't start if I add this line. The Apache config I have is: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount /examples worker1 It seems to works fine (see the logs in my very first message). And also, I can see that it automatically creates a mod_jk.conf file in $TOMCAT_HOME\conf\auto Regards -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: vendredi 15 avril 2005 19:52 To: Tomcat Users List Subject: Re: apache + tomcat + JK connector configuration Delphine, Have you added JkSet config.file ... to your apache config file? Bob On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote: I tried this, but it didn't help unfortunately Thank you Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port
RE: apache + tomcat + JK connector configuration
From: anshul shrivastava [mailto:[EMAIL PROTECTED] Subject: Re: apache + tomcat + JK connector configuration I'm using Tomcat Apache Tomcat/5.0.16 Why such an old level? If you want to use the 5.0 branch, at least get the current version. Better yet, use 5.5. I read, it is better not to process .html requests by Tomcat, Although this was often true in the past, the performance of the current Tomcat levels is such that it can handle static content quite effectively. Avoiding use of Apache httpd also eliminates a significant amount of complexity. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache + tomcat + JK connector configuration
Avoiding use of Apache httpd also eliminates a significant amount of complexity. httpd.conf is an important file. I wanna use PHP/JSP/MySQL with Apache. ( surprised ) Please someone, send a useful reply ! - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, April 26, 2005 11:11 PM Subject: RE: apache + tomcat + JK connector configuration From: anshul shrivastava [mailto:[EMAIL PROTECTED] Subject: Re: apache + tomcat + JK connector configuration I'm using Tomcat Apache Tomcat/5.0.16 Why such an old level? If you want to use the 5.0 branch, at least get the current version. Better yet, use 5.5. I read, it is better not to process .html requests by Tomcat, Although this was often true in the past, the performance of the current Tomcat levels is such that it can handle static content quite effectively. Avoiding use of Apache httpd also eliminates a significant amount of complexity. - Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache + tomcat + JK connector configuration
(676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 128 [Sat Apr 23 20:06:02 2005] [jk_ajp_common.c (955)]: Error connecting to the Tomcat process. [Sat Apr 23 20:06:02 2005] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=2 [Sat Apr 23 20:06:02 2005] [jk_ajp_common.c (1318)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed errno = 128 [Sat Apr 23 20:06:02 2005] [jk_ajp_common.c (1529)]: Into jk_endpoint_t::done, closing connection 0 [Sat Apr 23 20:06:02 2005] [jk_ajp_common.c (605)]: In jk_endpoint_t::ajp_close_endpoint [Sat Apr 23 20:06:02 2005] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Apr 23 20:06:02 2005] [jk_uri_worker_map.c (500)]: Attempting to map URI '/favicon.ico' [Sat Apr 23 20:06:02 2005] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Apr 23 20:06:02 2005] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Apr 23 20:06:02 2005] [jk_uri_worker_map.c (500)]: Attempting to map URI '/favicon.ico' [Sat Apr 23 20:06:02 2005] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match snip --- Hope it helps a little. -- Ted Christensen anshul shrivastava wrote: Hi all, This is my first post to group. I've already asked this problem in popular forums, but can't resolve. Hope, someone of you'll help. Thank you, in advance, very much. I'm using Tomcat Apache Tomcat/5.0.16 on jdk 1.5.0 ( port 8080 ). I've installed Apache2 ( port 80 ) using MSI installer on Windows 200 Professional. I want to use mod_jserv and connect Tomcat, Apache and database MySQL. I read, it is better not to process .html requests by Tomcat, instead by Apache. Also, I want to run .jsp files from ~/wwwroot ( Apache is already working PHP files in ~/wwwroot ). Someone of you, said to forward, .jsp to Apache using .htaccess. Also, it can be done by Apache Module, how ? Please also tell me, where ( exact url ) can I download jk_connecter or mod_jserv ? ( I've already downloaded something! ). Please help. anshul shrivastava ( I'm very new to Java; swithcing to Java! from PHP ) What is the username/password for http://localhost:8080/admin/ What is catalina, by the way ? ( h'ven't seen it in previous versions ). - Original Message - From: Delphine Lê [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, April 18, 2005 6:26 PM Subject: RE: apache + tomcat + JK connector configuration Bob, Thank you but Apache doesn't start if I add this line. The Apache config I have is: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount /examples worker1 It seems to works fine (see the logs in my very first message). And also, I can see that it automatically creates a mod_jk.conf file in $TOMCAT_HOME\conf\auto Regards -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: vendredi 15 avril 2005 19:52 To: Tomcat Users List Subject: Re: apache + tomcat + JK connector configuration Delphine, Have you added JkSet config.file ... to your apache config file? Bob On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote: I tried this, but it didn't help unfortunately Thank you Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10
RE: apache + tomcat + JK connector configuration
Bob, Thank you but Apache doesn't start if I add this line. The Apache config I have is: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount /examples worker1 It seems to works fine (see the logs in my very first message). And also, I can see that it automatically creates a mod_jk.conf file in $TOMCAT_HOME\conf\auto Regards -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: vendredi 15 avril 2005 19:52 To: Tomcat Users List Subject: Re: apache + tomcat + JK connector configuration Delphine, Have you added JkSet config.file ... to your apache config file? Bob On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote: I tried this, but it didn't help unfortunately Thank you Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:6969). Failed errno = 61 [Wed Apr 13 18:50:16 2005] [info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process. What should I change in Tomcat configuration to have it work with JK instead of JK2 ? It is of course started and listening on port 6969. The configuration in server.xml looks like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: apache + tomcat + JK connector configuration
Delphine, Have you added JkSet config.file ... to your apache config file? Bob On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote: I tried this, but it didn't help unfortunately Thank you Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:6969). Failed errno = 61 [Wed Apr 13 18:50:16 2005] [info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process. What should I change in Tomcat configuration to have it work with JK instead of JK2 ? It is of course started and listening on port 6969. The configuration in server.xml looks like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache + tomcat + JK connector configuration
Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:6969). Failed errno = 61 [Wed Apr 13 18:50:16 2005] [info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process. What should I change in Tomcat configuration to have it work with JK instead of JK2 ? It is of course started and listening on port 6969. The configuration in server.xml looks like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat JK Mod
JkMount /context/* worker1 JkMount /context worker1 -Original Message- From: Geoff Wiggs [mailto:[EMAIL PROTECTED] Sent: April 13, 2005 8:16 PM To: tomcat-user@jakarta.apache.org Subject: Apache Tomcat JK Mod I know this question has probably been asked 1000 times, but here I go again. I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. Regards, Geoff [EMAIL PROTECTED] !DSPAM:425db628239247680086418!
RE: Apache Tomcat JK Mod
I tried this, but I still get sent to the Tomcat splash page. The url I am trying to translate to is www.orcastech.com/home/ . Any more clues? VirtualHost * ServerName www.servername.com RewriteEngine On RewriteRule (.*) /home$1 JkMount /home/* worker1 JkMount /emba48wiki*worker1 JkMount /admin worker1 JkMount /managerworker1 JkMount /* worker1 /VirtualHost Geoff Wiggs Orcas Technologies, Inc [EMAIL PROTECTED] 650-520-1121 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:11 PM To: Tomcat Users List Subject: Re: Apache Tomcat JK Mod Geoff Wiggs wrote: I know this question has probably been asked 1000 times, but here I go again. OK. Once for all :) RewriteEngine On RewriteRule (.*) /servlets-examples$1 [PT] I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. I still do not understand why would yo wish to do something like that. You can easily make Tomcat working on port 80, and move your /home to the ROOT. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat JK Mod
Is there an index.jsp in your context? -Original Message- From: Geoff Wiggs [mailto:[EMAIL PROTECTED] Sent: April 14, 2005 10:37 AM To: 'Mladen Turk' Cc: tomcat-user@jakarta.apache.org Subject: RE: Apache Tomcat JK Mod I tried this, but I still get sent to the Tomcat splash page. The url I am trying to translate to is www.orcastech.com/home/ . Any more clues? VirtualHost * ServerName www.servername.com RewriteEngine On RewriteRule (.*) /home$1 JkMount /home/* worker1 JkMount /emba48wiki*worker1 JkMount /admin worker1 JkMount /managerworker1 JkMount /* worker1 /VirtualHost Geoff Wiggs Orcas Technologies, Inc [EMAIL PROTECTED] 650-520-1121 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:11 PM To: Tomcat Users List Subject: Re: Apache Tomcat JK Mod Geoff Wiggs wrote: I know this question has probably been asked 1000 times, but here I go again. OK. Once for all :) RewriteEngine On RewriteRule (.*) /servlets-examples$1 [PT] I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. I still do not understand why would yo wish to do something like that. You can easily make Tomcat working on port 80, and move your /home to the ROOT. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:425e801d311201629985329!
RE: Apache Tomcat JK Mod
Yes - there is an index.jsp in the context /home/ (\\server\c\Apache\Tomcat\webapps\home) directory. Is there some way to tell how the rewrite is being processed? My rewrite log is blank. Geoff -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 7:46 AM To: 'Tomcat Users List' Subject: RE: Apache Tomcat JK Mod Is there an index.jsp in your context? -Original Message- From: Geoff Wiggs [mailto:[EMAIL PROTECTED] Sent: April 14, 2005 10:37 AM To: 'Mladen Turk' Cc: tomcat-user@jakarta.apache.org Subject: RE: Apache Tomcat JK Mod I tried this, but I still get sent to the Tomcat splash page. The url I am trying to translate to is www.orcastech.com/home/ . Any more clues? VirtualHost * ServerName www.servername.com RewriteEngine On RewriteRule (.*) /home$1 JkMount /home/* worker1 JkMount /emba48wiki*worker1 JkMount /admin worker1 JkMount /managerworker1 JkMount /* worker1 /VirtualHost Geoff Wiggs Orcas Technologies, Inc [EMAIL PROTECTED] 650-520-1121 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:11 PM To: Tomcat Users List Subject: Re: Apache Tomcat JK Mod Geoff Wiggs wrote: I know this question has probably been asked 1000 times, but here I go again. OK. Once for all :) RewriteEngine On RewriteRule (.*) /servlets-examples$1 [PT] I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. I still do not understand why would yo wish to do something like that. You can easily make Tomcat working on port 80, and move your /home to the ROOT. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:425e801d311201629985329! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache + tomcat + JK connector configuration
I tried this, but it didn't help unfortunately Thank you Are you using load balance in your app? If not, you probably don't need this line: worker.worker1.lbfactor=50 Try to use this configuration in the server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Hope this helps... -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 6:41 PM To: tomcat-user@jakarta.apache.org Subject: RE: apache + tomcat + JK connector configuration thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:6969). Failed errno = 61 [Wed Apr 13 18:50:16 2005] [info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process. What should I change in Tomcat configuration to have it work with JK instead of JK2 ? It is of course started and listening on port 6969. The configuration in server.xml looks like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache + tomcat + JK connector configuration
Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:6969). Failed errno = 61 [Wed Apr 13 18:50:16 2005] [info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process. What should I change in Tomcat configuration to have it work with JK instead of JK2 ? It is of course started and listening on port 6969. The configuration in server.xml looks like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache + tomcat + JK connector configuration
thank you, but it's got them: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=6969 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 Post the workers.properties file. You probably need to include these lines in that file: worker.list=worker1 worker.worker1.port=6969 -Original Message- From: Delphine Lê [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:01 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat + JK connector configuration Hello, Has anyone had any success in configuring Apache (2.0.53) with Tomcat (4.1.29) in Windows XP, using a recent JK connector ? We have a server running with the JK2 connector and I'm trying to replace it with the latest JK connector (JK-1.2.10), the reason being that JK2 is officially unsupported as of 15 Nov 2004 and we're experiencing a problem with truncated requests due to this connector. In Apache, I configured a worker called worker1 and I send everything from context /examples to this worker following http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html. The configuration looks fine, since I can see in the following lines in mod_jk.log: [Wed Apr 13 18:49:13 2005] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /examples=worker1 was added [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219): creating worker worker1 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125): about to create instance worker1 of ajp13 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138): about to validate and init worker1 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781): worker worker1 contact is 'localhost:6969' However, if I send a request, it doesn't get through and I get an error message in the browser. The log shows: [Wed Apr 13 18:50:16 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:6969). Failed errno = 61 [Wed Apr 13 18:50:16 2005] [info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process. What should I change in Tomcat configuration to have it work with JK instead of JK2 ? It is of course started and listening on port 6969. The configuration in server.xml looks like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=6969 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ 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: Apache Tomcat JK Mod
Geoff Wiggs wrote: I know this question has probably been asked 1000 times, but here I go again. OK. Once for all :) RewriteEngine On RewriteRule (.*) /servlets-examples$1 [PT] I have Apache / Tomcat and jk_mod all running correctly. If I hit the URL correctly (i.e. www.server.com/context/) my jsp's and servlets come up just fine. Now I want to serve my home page (www.server.com http://www.server.com/ ) as a JSP. My context is /home. If I hit www.server.com/home the JSP comes up just the way I want it. How can I make the connection between the request for www.servername.com http://www.servername.com/ and the correct context www.servername.com/home? Apache, jk_mod or Tomcat options would be fine, I am just having a problem making the connection between the three work the way I need. I still do not understand why would yo wish to do something like that. You can easily make Tomcat working on port 80, and move your /home to the ROOT. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, tomcat and virtual host
Yes, I'd like to set up the following set up the following URLs: http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ but this http://www.domain1.com/ must redirects to a tomcat instance and I would like to implement load balancing on this one (so using mod_jk). How should I configure my httpd.conf to realize that as so far if I implement mod_jk on my https instance, all domains are redirected to the tomcat instance. Thanks. DvJ From: David Rees [EMAIL PROTECTED] Reply-To: David Rees [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Apache, tomcat and virtual host Date: Tue, 5 Apr 2005 17:54:22 -0700 On Apr 5, 2005 4:17 AM, david joffrin [EMAIL PROTECTED] wrote: I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Yes, it is possible to configure multiple virtual hosts with Apache and Tomcat... Your explanation of your current setup is confusing. Are you trying to setup the following URLs? http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, tomcat and virtual host
On Apr 5, 2005 11:23 PM, david joffrin [EMAIL PROTECTED] wrote: Yes, I'd like to set up the following set up the following URLs: http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ but this http://www.domain1.com/ must redirects to a tomcat instance and I would like to implement load balancing on this one (so using mod_jk). How should I configure my httpd.conf to realize that as so far if I implement mod_jk on my https instance, all domains are redirected to the tomcat instance. Why don't you post links to or paste in your httpd.conf and tomcat-workers.properties so that we have half a chance of figuring out your problem? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, tomcat and virtual host
On Apr 5, 2005 4:17 AM, david joffrin [EMAIL PROTECTED] wrote: I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Yes, it is possible to configure multiple virtual hosts with Apache and Tomcat... Your explanation of your current setup is confusing. Are you trying to setup the following URLs? http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat 4.1.18 - Displaying empty Strings as null
install tomcat 4.1.31 on your new server Mendez, Eric wrote: Hello, I recently installed Apache/Tomcat v 4.1.18 on my new server, and I have a JSP page that extracts values from an Oracle database, if the value in the database is an empty String (), it returns as a null value in my JSP page. I have another server with Tomcat v. 4.1.31, and I am not having this issue. The new server has JDK v. 1.4.2 and my old server has v. 1.4.1. Any ideas will help. Thanks Confidentiality Note: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful. - 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 Tomcat modjk - loss of communication - possibly tuning issue?
I think the best way is to increase the maxProcessors and acceptCount to be the same as the apache webserver. Check for the MaxClients entry in the httpd.conf. Sharon French [EMAIL PROTECTED] wrote:Under heavy loads the following errors appear in the mod_jk.log: [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 104 Some requests are handled just fine during the time when these problems are occuring, others result in the end users recieving the Internal Server Error from apache. The problem corrects itself, with the only tell-tale sign being the messages in the logfile. Based on comments in other threads and on other sites, we changed the configuration of our Connector to include connectionTimeout=-1 (disable connection timeouts - on very fast machines apache can apparently timeout before tomcat has a chance to respond), increase maxProcessors to 100 (from default of 75 - by running a ps and grep-ing for the number of tomcat processes, we can see that we are consistently running the maximum number of processes), and increase acceptCount to 100 (because our requests tend to take a fairly long time to be turned around by tomcat (lots of backend processing), we have a high number of concurrent requests). Configuration: Apache 2.0.44 connected to Tomcat 4.1.24 with mod_jk, loadbalancing between 2 tomcat instances Environment: Red Hat (2.4.18-24.7.xsmp) Dell PowerEdge 1650 4G RAM From server.xml port=11009 minProcessors=5 maxProcessors=100 acceptCount=100 debug=0 connectionTimeout=-1 enableLookups=false/ I've configured each tomcat instance to use 1G of memory (-Xmx), although after running with gc logging on (-Xloggc), it appears that each instance is using only 65M - 120M. It appears to me that the problem is in the communication between apache and tomcat, and since we only see the problem during periods of heavy usage, I had been concentrating my efforts on tuning the parameters in the Connector. But my recent changes (maxProcessors from 75 to 100 and acceptCount from 10 to 100) don't seem to have alleviated the problem. Is it simply that they should be turned up further, or am I barking up the wrong tree? Any thoughts would be immensely appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: apache + tomcat with 2 domains but same session?
Just want you guys to know that I have found a solution for my problem. I have to change the source code in tomcat to get this to work. Here is what I've done: In source org.apache.coyote.tomcat5.CoyoteRequest line 2313 (btw, I am using tomcat5.0.28 source) I added cookie.setDomain(.abc.com); // beware of the leading dot compile the source and replace the new catalina.jar into my tomcat server/lib directory. I am now able to switch between both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp and the session persists !!! I wonder why the web.xml file in conf/ didn't provide such an option for us to set more cookie options. As for now, I can only set session-timeout in web.xml. I suggest adding like cookie-domain session-config session-timeout30/session-timeout cookie-domain.abc.com/cookie-domain /session-config I know resin have such an option, see here http://browserinsight2.lunaimaging.com:8090/ref/app-config.xtp#session-config I am posting this to both user list and developer list, I hope someone in the tomcat project will read it and implement this in the future. Thanks everyone that have helped me though, means a lot. Simon - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 12, 2005 8:43 PM Subject: Re: apache + tomcat with 2 domains but same session? [I have a major sinus cold - so I might not be writing clearly ...] I don't think URL rewriting from apache mod_rewrite will solve your problem. Tomcat maintains state with the session via a session cookie. The cookie is fixed to the currnet domain name (not configurable) and the cookie is fixed to the current webapp path(also not configurable). But the session cookie is the key to picking up the session. Since you are working in a differnet domain - the session cookie is not sent by the client. But for clients that do not allow cookies, you can use url rewriting via the servlet API. (See HttpResponse.encodeUrl()). This method detects whether the client has sent the request and maintained state via a session cookie and if a cookie was not used, the url is rewritten and encoded with a path variable called jsessionid. (eg: foo.jsp;jsessionid=ABDDAAN9900) To get a session from aaa.com to work in bbb.com - you need to have a page on aaa.com link to bbb.com with the URL containing the jessessionid path parameter. -Tim Simon Lau wrote: Tim, thanks for your help. but... I have been following your suggestion and use mod_rewrite to rewrite bbb.abc.com to aaa.abc.com. Here is 3 scenarios: 1) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1 Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://aaa.abc.com/myapp/index.jsp (but i want http://bbb.abc.com/myapp/index.jsp instead) Session persist, no problem 2) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1 [PT] Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://bbb.abc.com/myapp/index.jsp Client brower display 400 Bad Request error mod_rewrite.log get forcing 'http://aaa.abc.com/myapp/index.jsp' to get passed through to next API URI-to-filename handler 3) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1 [P] Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://bbb.abc.com/myapp/index.jsp Client brower display Forbidden, You don't have permission to access /myapp/index.jsp mod_rewrite.log get forcing proxy-throughput with http://aaa.abc.com/myapp/index.jsp; so all of these cases didn't give me the result i wanted. the result i wanted is: -Client access http://bbb.abc.com/myapp/index.jsp -Client brower address bar display http://bbb.abc.com/myapp/index.jsp -Session persist with http://aaa.abc.com/myapp/index.jsp Am i on the right track? or am i doing it totally wrong? or is there way to get around this? please help. thanks again. Simon - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 7:44 PM Subject: Re: apache + tomcat with 2 domains but same session? You can get away with this by using URL rewriting. When you are using aaa.abc.com and wish to redirect or link to bbb.abc.com - you would need to rewrite the URL to include the jsessionid path parameter. But you *cannot* do this via response.encodeURL(..) since that method will detect your URL is in another webapp. So you will need to write your own implementation of encodeURL to achieve this. -Tim Simon Lau wrote: Hi, I want to setup my apache to have 2 domains, say aaa.abc.com
Re: apache + tomcat with 2 domains but same session?
[I have a major sinus cold - so I might not be writing clearly ...] I don't think URL rewriting from apache mod_rewrite will solve your problem. Tomcat maintains state with the session via a session cookie. The cookie is fixed to the currnet domain name (not configurable) and the cookie is fixed to the current webapp path(also not configurable). But the session cookie is the key to picking up the session. Since you are working in a differnet domain - the session cookie is not sent by the client. But for clients that do not allow cookies, you can use url rewriting via the servlet API. (See HttpResponse.encodeUrl()). This method detects whether the client has sent the request and maintained state via a session cookie and if a cookie was not used, the url is rewritten and encoded with a path variable called jsessionid. (eg: foo.jsp;jsessionid=ABDDAAN9900) To get a session from aaa.com to work in bbb.com - you need to have a page on aaa.com link to bbb.com with the URL containing the jessessionid path parameter. -Tim Simon Lau wrote: Tim, thanks for your help. but... I have been following your suggestion and use mod_rewrite to rewrite bbb.abc.com to aaa.abc.com. Here is 3 scenarios: 1) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1 Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://aaa.abc.com/myapp/index.jsp (but i want http://bbb.abc.com/myapp/index.jsp instead) Session persist, no problem 2) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1[PT] Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://bbb.abc.com/myapp/index.jsp Client brower display 400 Bad Request error mod_rewrite.log get forcing 'http://aaa.abc.com/myapp/index.jsp' to get passed through to next API URI-to-filename handler 3) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1[P] Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://bbb.abc.com/myapp/index.jsp Client brower display Forbidden, You don't have permission to access /myapp/index.jsp mod_rewrite.log get forcing proxy-throughput with http://aaa.abc.com/myapp/index.jsp; so all of these cases didn't give me the result i wanted. the result i wanted is: -Client access http://bbb.abc.com/myapp/index.jsp -Client brower address bar display http://bbb.abc.com/myapp/index.jsp -Session persist with http://aaa.abc.com/myapp/index.jsp Am i on the right track? or am i doing it totally wrong? or is there way to get around this? please help. thanks again. Simon - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 7:44 PM Subject: Re: apache + tomcat with 2 domains but same session? You can get away with this by using URL rewriting. When you are using aaa.abc.com and wish to redirect or link to bbb.abc.com - you would need to rewrite the URL to include the jsessionid path parameter. But you *cannot* do this via response.encodeURL(..) since that method will detect your URL is in another webapp. So you will need to write your own implementation of encodeURL to achieve this. -Tim Simon Lau wrote: Hi, I want to setup my apache to have 2 domains, say aaa.abc.com and bbb.abc.com. Both of this domain goes to the same application context, say /myapp So when i access both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp will give me the exact same content, no problem. My question is how do i persist the session while i switch between aaa.abc.com and bbb.abc.com? For example i have a shopping basket storing with 2 products and i want to - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache + tomcat with 2 domains but same session?
You can get away with this by using URL rewriting. When you are using aaa.abc.com and wish to redirect or link to bbb.abc.com - you would need to rewrite the URL to include the jsessionid path parameter. But you *cannot* do this via response.encodeURL(..) since that method will detect your URL is in another webapp. So you will need to write your own implementation of encodeURL to achieve this. -Tim Simon Lau wrote: Hi, I want to setup my apache to have 2 domains, say aaa.abc.com and bbb.abc.com. Both of this domain goes to the same application context, say /myapp So when i access both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp will give me the exact same content, no problem. My question is how do i persist the session while i switch between aaa.abc.com and bbb.abc.com? For example i have a shopping basket storing with 2 products and i want to access the basket in both aaa.abc.com and bbb.abc.com Btw, i am using apache2.0.52 + tomcat5.0.28 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
I've also written a custom webdav servlet because we need to work with a custom/virtualised file store. Our servlet works fine for everything except some flavours of M$shite Windows - the symptoms I get are identical to the ones you describe. Like you our server is not running on localhost, and the user's directory is not the root, and the user has to authenticate (using basic authentication)... As yet I have not been able to work out a solution, although I know it exists because sites like sharemation.com have somehow worked around the problem - I just haven't figured out how they do it. If you find a solution to this problem can you let me know - it has driven us mad for months before we finally gave up... We recommend users install webdrive - it works great but costs US$30 a pop! Thanks for any help (if you find a solution) John Sidney-Woollett ps Here is another document that may help you: http://support.microsoft.com/default.aspx?scid=kb;EN-US;269681 And some specific instructions that work (sometimes) but I don't want my users to have to play around with their OS installs: quote The problem is a conflicting Office Installation (since Office 2002) which changes the webdav components of Windows XP. To change them back (to the working one) you need to follow these steps: 1. You will find a file called webfldrs.msi (Normally under \WINDOWS\SYSTEM32\webfldrs.msi - if you installed Windows XP Servicepack 1 you will find it under \WINDOWS\ServicePackFiles\i386\webfldrs.msi). 2. Start the installation with double-click or right-click - webfldrs.msi. 3. Now you have to click on Select reinstall mode. 4. Uncheck Repair all detected reinstall problems. Check Force all files to be reinstalled, regardless of checksum or version. Check Verify that required user registry entries are present. Check Verify that required machine registry entries are present. Check Validate shortcuts. 5. Press OK and REINSTALL 6. Normally no reboot is required and now everything goes fine. /quote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Here's an update---I'm narrowing it down. I tried to connect directly to Tomcat without Apache in-between. Same problem. So this probably isn't something Apache is doing to mess up communications. I recompiled Apache so that I could add headers, and I added: DAV: 1,2 MS-Author-Via: DAV Allow: OPTIONS, PROPFIND, GET, HEAD This way, even error messages and redirects will show WebDAV support, and even an OPTIONS request for / will show WebDAV method support. It still doesn't work. The *only* thing that isn't exactly what a WebDAV server would send back is when MS Web Folders tries to do a PROPFIND on /webapp/ and Tomcat sends back: 501 Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API. (Again, MS Web Folders shouldn't even try to access /webapp/ directly---it should try to access /webapp/webdav/ .) About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) Why is it that nothing in this world is straightforward? (That's a rhetorical question---don't feel obliged to answer.) Cheers, Garret Garret Wilson wrote: Some more info: When Web Folders first tries to access http://www.example.com/webapp/webdav/ , user agent Microsoft-WebDAV-MiniRedir/5.1.2600 tries to do a PROPFIND on http://www.example.com/webapp . Apache (from Tomcat?) redirects with 302 to http://www.example.com/webapp/ . Microsoft-WebDAV-MiniRedir/5.1.2600 tries to do a PROPFIND on http://www.example.com/webapp/ . Apache sends back (from Tomcat, I suppose) a 501 I don't know what the heck a PROPFIND is type of response. (MS never should have tried to touch http://www.example.com/webapp/ , as that's a parent directory to what I requested.) Again Microsoft-WebDAV-MiniRedir/5.1.2600 tries to do a PROPFIND on http://www.example.com/webapp and goes through the whole procedure again. Finally it gets tired and issues an OPTIONS request on /, to which Apache/Tomcat issues a 202 OK (but with no DAV header). So then Microsoft Data Access Internet Publishing Provider Protocol Discovery gets into the action and issues its own OPTIONS on /. (Why MS can't simply try to access http://www.example.com/webapp/webdav/ like I asked in the first place, I'll never know.) Another 200 OK response. Finally MS gets around to doing an OPTIONS on http://www.example.com/webapp/webdav (which it should have done in the very first request). Tomcat (through Apache) issues its 401 Unauthorized response (as it should), along with the DAV: 1,2 header (as it should). MS decides, Oh, well, I'll issue an OPTIONS on the root path '/' again and goes through the entire process. Then I see various attempts at GET /_vti_inf.html and POST /_vti_bin/shtml.exe , indicating that MS Web Folders didn't recognize WebDAV and is trying to use FrontPage extension witchraft. Sending back a MS-Author-Via: DAV header should stop this---but my WebDAV servlet never got the chance because MS Web Folders wouldn't authenticate in the presence of a 401 Unauthorized. I know that IE, Web Folders, and the whole shebang is a load of (insert expletive here), but I've managed to work around everything else so that it works on pure Tomcat on localhost. There's some little thing that's throwing things off in the Tomcat-behind-Apache-on-Internet scenario, and if I can just find out what it is, I can cut off this last MS bug and get this to working. Does it have something to do with Apache modifying a HTTP request or response to or from Tomcat? Does it have something to do with the server being located somewhere other than localhost, altering the behavior of Microsoft-WebDAV-MiniRedir/5.1.2600 or Microsoft Data Access Internet Publishing Provider Protocol Discovery? An inquiring mind wants to know---but really has to get some sleep right now. Thanks again to Doug and everyone else for your time. Garret Garret Wilson wrote: I've written a custom WebDAV servlet which works fine configured on Windows XP Professional localhost with Tomcat 5.5.4. I upload everything to a http://www.example.com/webapp/webdav/ . The domain is served on Red Hat 6 by Apache 2.0.49, which forwards to Tomcat using ProxyPass and ProxyPassReverse. I try to connect via Microsoft Windows XP Professional Web Folders. (My WebDAV servlet works around all the various Microsoft redirection bugs, and works fine with Web Folders on localhost.) Web Folders doesn't recognize the folder. I whip out Ethereal, and here's what I find: User agent Microsoft Data Access Internet Publishing Provider Protocol Discovery sends an HTTP OPTIONS request to /. Apache sends back a 200 OK. Then Microsoft Web Folders sends an OPTIONS request to /webapp/webdav/. My servlet sends back a 401 Unauthorized, asking
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Uhh, that is what I was thinking. On Tue, 11 Jan 2005 19:17:00 +0200 (EET), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - 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, Tomcat, WebDAV, and Web Folders... Oh, my!
About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Yeah, that's what I *assume*, anyway. But Ethereal doesn't work on localhost, so I can only assume. There are these possibilities: * Tomcat returns something other than 501 Not Implemented when configured on localhost. (Not likely.) * MS Web Folders does different checks when accessing the Internet-at-large than when accessing localhost. (Likely? I don't know what to expect with MS Web Folders anymore.) I'm guessing the latter is happening, especially as two MS user agents get into the act: Microsoft-WebDAV-MiniRedir/5.1.2600 and Microsoft Data Access Internet Publishing Provider Protocol Discovery And here's more news: I created a new DefaultServlet mapped to / that for PROPFIND simply returns 403 Forbidden. Something different happens. First, Microsoft-WebDAV-MiniRedir/5.1.2600 does a PROPFIND on /webapp (which gets redirected to /webapp/). MyDefaultServlet returns 403 Forbidden. Fine. Can you guess what Microsoft-WebDAV-MiniRedir/5.1.2600 does? Microsoft-WebDAV-MiniRedir/5.1.2600 then tries to do another PROPFIND on /webapp! And another---for a total of five times! (It's forbidden, you idiot---and /webapp is none of your business anyway; you're supposed to be accessing /webapp/webdav/! Arggg!!!) Then Microsoft Data Access Internet Publishing Provider Protocol Discovery comes along and does its little OPTIONS / (200 OK) OPTIONS /webapp/webdav (401 Unauthorized) dance for three times, and then goes into the FrontPage mumbo-jumbo. What is left to do---issue a 401 Unauthorized on PROPFIND /webapp ? Issue a 401 Unauthorized on OPTIONS / ? Rewrite the operating system? (Yeah, the latter is probably what I'll have to do to fix all this mess.) (Grumble grumble grumble...) Any suggestions on what to do next? Garret Varley, Roger wrote: About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - 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, Tomcat, WebDAV, and Web Folders... Oh, my!
Does anyone have an IIS box you can connect to to see what happens. Then maybe you can mimic it. Doug - Original Message - From: Garret Wilson [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 1:12 PM Subject: Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my! Yeah, that's what I *assume*, anyway. But Ethereal doesn't work on localhost, so I can only assume. There are these possibilities: * Tomcat returns something other than 501 Not Implemented when configured on localhost. (Not likely.) * MS Web Folders does different checks when accessing the Internet-at-large than when accessing localhost. (Likely? I don't know what to expect with MS Web Folders anymore.) I'm guessing the latter is happening, especially as two MS user agents get into the act: Microsoft-WebDAV-MiniRedir/5.1.2600 and Microsoft Data Access Internet Publishing Provider Protocol Discovery And here's more news: I created a new DefaultServlet mapped to / that for PROPFIND simply returns 403 Forbidden. Something different happens. First, Microsoft-WebDAV-MiniRedir/5.1.2600 does a PROPFIND on /webapp (which gets redirected to /webapp/). MyDefaultServlet returns 403 Forbidden. Fine. Can you guess what Microsoft-WebDAV-MiniRedir/5.1.2600 does? Microsoft-WebDAV-MiniRedir/5.1.2600 then tries to do another PROPFIND on /webapp! And another---for a total of five times! (It's forbidden, you idiot---and /webapp is none of your business anyway; you're supposed to be accessing /webapp/webdav/! Arggg!!!) Then Microsoft Data Access Internet Publishing Provider Protocol Discovery comes along and does its little OPTIONS / (200 OK) OPTIONS /webapp/webdav (401 Unauthorized) dance for three times, and then goes into the FrontPage mumbo-jumbo. What is left to do---issue a 401 Unauthorized on PROPFIND /webapp ? Issue a 401 Unauthorized on OPTIONS / ? Rewrite the operating system? (Yeah, the latter is probably what I'll have to do to fix all this mess.) (Grumble grumble grumble...) Any suggestions on what to do next? Garret Varley, Roger wrote: About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - 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, Tomcat, WebDAV, and Web Folders... Oh, my!
That would be nice. It would have to be an IIS box configured so that: * http://www.example.com/ does not support WebDAV (or everything is forbidden) * http://www.example.com/webapp/ supports WebDAV, but everything is forbidden * http://www.example.com/webapp/webdav/ supports WebDAV with DIGEST authentication. I actually have different webdav/realm/ subdirectories, so it doesn't even make sense for me to authenticate in the parent directories---there would be no valid realm for me to send as a DIGEST challenge! (This is why it's so crazy---and potentially show-stopping---that MS Web Folders is even accessing directories up the hierarchy.) Garret Parsons Technical Services wrote: Does anyone have an IIS box you can connect to to see what happens. Then maybe you can mimic it. Doug - Original Message - From: Garret Wilson [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 1:12 PM Subject: Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my! Yeah, that's what I *assume*, anyway. But Ethereal doesn't work on localhost, so I can only assume. There are these possibilities: * Tomcat returns something other than 501 Not Implemented when configured on localhost. (Not likely.) * MS Web Folders does different checks when accessing the Internet-at-large than when accessing localhost. (Likely? I don't know what to expect with MS Web Folders anymore.) I'm guessing the latter is happening, especially as two MS user agents get into the act: Microsoft-WebDAV-MiniRedir/5.1.2600 and Microsoft Data Access Internet Publishing Provider Protocol Discovery And here's more news: I created a new DefaultServlet mapped to / that for PROPFIND simply returns 403 Forbidden. Something different happens. First, Microsoft-WebDAV-MiniRedir/5.1.2600 does a PROPFIND on /webapp (which gets redirected to /webapp/). MyDefaultServlet returns 403 Forbidden. Fine. Can you guess what Microsoft-WebDAV-MiniRedir/5.1.2600 does? Microsoft-WebDAV-MiniRedir/5.1.2600 then tries to do another PROPFIND on /webapp! And another---for a total of five times! (It's forbidden, you idiot---and /webapp is none of your business anyway; you're supposed to be accessing /webapp/webdav/! Arggg!!!) Then Microsoft Data Access Internet Publishing Provider Protocol Discovery comes along and does its little OPTIONS / (200 OK) OPTIONS /webapp/webdav (401 Unauthorized) dance for three times, and then goes into the FrontPage mumbo-jumbo. What is left to do---issue a 401 Unauthorized on PROPFIND /webapp ? Issue a 401 Unauthorized on OPTIONS / ? Rewrite the operating system? (Yeah, the latter is probably what I'll have to do to fix all this mess.) (Grumble grumble grumble...) Any suggestions on what to do next? Garret Varley, Roger wrote: About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Garret Wilson wrote: snip Why doesn't Microsoft Web Folders ask my for my password? Why does it ignore the 401 Unauthorized and go back to asking for OPTIONS on the root? Does this have something to do with using Apache to proxy to Tomcat? Why did a non-proxied Tomcat work find on my Windows XP Professional machine? snip I can only guess that the responses are somehow different. Have you tried something like tcpmon (from the Axis project) to look at the headers? I found it invaluable when investigating webDAV issues a while back. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Here's new news: Apparently the whole PROPFIND / and Apache proxy things were red herrings. The central issue seems to be that MS Web Folders doesn't know what to do with a 401 Unauthorized response to an OPTIONS request on the WebDAV root folder (when it finally gets around to checking). I reconfigured my WebDAV servlet to bypass authorization for OPTIONS requests (as a test), and once MS Web Folders requested OPTIONS and my servlet sent them back, it issued a PROPFIND and correctly popped up the authorization dialog. (But there are more problems---see below.) Requiring OPTIONS to forsake authorization is a security risk. If I can't return 401 Unauthorized for OPTIONS, then a client can issue OPTIONS at will and find out which resources exist and which are collections. But let's say that I open up OPTIONS for all my realms, just to make MS Web Folders work. I'm still not out of the clear. Once MS Web Folders tries to do a PROPFIND and I enter my name and password, it doesn't work. In fact, MS Web Folder doesn't even send back my credentials! It apparently sends an identical PROPFIND request as the one that just failed, and then shows another dialog box with user changed to www.example.com\user1. (The servers is a virtual host on Apache, proxied to Tomcat.) Now, this I've seen before, with Apache mod_dav on a virtual host. I never found the source of the problem. (I have Apache mod_dav working fine with non-virtual-host SSL domains.) Now I've opened up a security risk, and there's still another problem to track down. Thanks for your pointers, and for being a wonderful audience. ;) Garret Garret Wilson wrote: Yeah, that's what I *assume*, anyway. But Ethereal doesn't work on localhost, so I can only assume. There are these possibilities: * Tomcat returns something other than 501 Not Implemented when configured on localhost. (Not likely.) * MS Web Folders does different checks when accessing the Internet-at-large than when accessing localhost. (Likely? I don't know what to expect with MS Web Folders anymore.) I'm guessing the latter is happening, especially as two MS user agents get into the act: Microsoft-WebDAV-MiniRedir/5.1.2600 and Microsoft Data Access Internet Publishing Provider Protocol Discovery And here's more news: I created a new DefaultServlet mapped to / that for PROPFIND simply returns 403 Forbidden. Something different happens. First, Microsoft-WebDAV-MiniRedir/5.1.2600 does a PROPFIND on /webapp (which gets redirected to /webapp/). MyDefaultServlet returns 403 Forbidden. Fine. Can you guess what Microsoft-WebDAV-MiniRedir/5.1.2600 does? Microsoft-WebDAV-MiniRedir/5.1.2600 then tries to do another PROPFIND on /webapp! And another---for a total of five times! (It's forbidden, you idiot---and /webapp is none of your business anyway; you're supposed to be accessing /webapp/webdav/! Arggg!!!) Then Microsoft Data Access Internet Publishing Provider Protocol Discovery comes along and does its little OPTIONS / (200 OK) OPTIONS /webapp/webdav (401 Unauthorized) dance for three times, and then goes into the FrontPage mumbo-jumbo. What is left to do---issue a 401 Unauthorized on PROPFIND /webapp ? Issue a 401 Unauthorized on OPTIONS / ? Rewrite the operating system? (Yeah, the latter is probably what I'll have to do to fix all this mess.) (Grumble grumble grumble...) Any suggestions on what to do next? Garret Varley, Roger wrote: About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - 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, Tomcat, WebDAV, and Web Folders... Oh, my!
While I'm tracking down the domain authentication problem, here's another problem to be aware of. IE 5, Office 2000, and Office XP only support WebDAV BASIC authentication, but not DIGEST: http://support.microsoft.com/default.aspx?scid=kb;en-us;321932 You upgrade to Windows XP, and by default it only supports WebDAV DIGEST authentication, but not BASIC: http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/sp2netwk.mspx#EFAA Sheer brilliance. I'm guessing this has nothing to do with my authentication problem, because XP Web Folders handled DIGEST authentication just fine on localhost---but Dorothy, we're not on localhost anymore... Garret Garret Wilson wrote: Here's new news: Apparently the whole PROPFIND / and Apache proxy things were red herrings. The central issue seems to be that MS Web Folders doesn't know what to do with a 401 Unauthorized response to an OPTIONS request on the WebDAV root folder (when it finally gets around to checking). I reconfigured my WebDAV servlet to bypass authorization for OPTIONS requests (as a test), and once MS Web Folders requested OPTIONS and my servlet sent them back, it issued a PROPFIND and correctly popped up the authorization dialog. (But there are more problems---see below.) Requiring OPTIONS to forsake authorization is a security risk. If I can't return 401 Unauthorized for OPTIONS, then a client can issue OPTIONS at will and find out which resources exist and which are collections. But let's say that I open up OPTIONS for all my realms, just to make MS Web Folders work. I'm still not out of the clear. Once MS Web Folders tries to do a PROPFIND and I enter my name and password, it doesn't work. In fact, MS Web Folder doesn't even send back my credentials! It apparently sends an identical PROPFIND request as the one that just failed, and then shows another dialog box with user changed to www.example.com\user1. (The servers is a virtual host on Apache, proxied to Tomcat.) Now, this I've seen before, with Apache mod_dav on a virtual host. I never found the source of the problem. (I have Apache mod_dav working fine with non-virtual-host SSL domains.) Now I've opened up a security risk, and there's still another problem to track down. Thanks for your pointers, and for being a wonderful audience. ;) Garret Garret Wilson wrote: Yeah, that's what I *assume*, anyway. But Ethereal doesn't work on localhost, so I can only assume. There are these possibilities: * Tomcat returns something other than 501 Not Implemented when configured on localhost. (Not likely.) * MS Web Folders does different checks when accessing the Internet-at-large than when accessing localhost. (Likely? I don't know what to expect with MS Web Folders anymore.) I'm guessing the latter is happening, especially as two MS user agents get into the act: Microsoft-WebDAV-MiniRedir/5.1.2600 and Microsoft Data Access Internet Publishing Provider Protocol Discovery And here's more news: I created a new DefaultServlet mapped to / that for PROPFIND simply returns 403 Forbidden. Something different happens. First, Microsoft-WebDAV-MiniRedir/5.1.2600 does a PROPFIND on /webapp (which gets redirected to /webapp/). MyDefaultServlet returns 403 Forbidden. Fine. Can you guess what Microsoft-WebDAV-MiniRedir/5.1.2600 does? Microsoft-WebDAV-MiniRedir/5.1.2600 then tries to do another PROPFIND on /webapp! And another---for a total of five times! (It's forbidden, you idiot---and /webapp is none of your business anyway; you're supposed to be accessing /webapp/webdav/! Arggg!!!) Then Microsoft Data Access Internet Publishing Provider Protocol Discovery comes along and does its little OPTIONS / (200 OK) OPTIONS /webapp/webdav (401 Unauthorized) dance for three times, and then goes into the FrontPage mumbo-jumbo. What is left to do---issue a 401 Unauthorized on PROPFIND /webapp ? Issue a 401 Unauthorized on OPTIONS / ? Rewrite the operating system? (Yeah, the latter is probably what I'll have to do to fix all this mess.) (Grumble grumble grumble...) Any suggestions on what to do next? Garret Varley, Roger wrote: About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override org.apache.catalina.servlets.DefaultServlet? (There goes container independence.) But surely Tomcat returns 501 when accessed via Localhost and you've already said that scenario works. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Garret Wilson wrote: Apparently the whole PROPFIND / and Apache proxy things were red herrings. The central issue seems to be that MS Web Folders doesn't know what to do with a 401 Unauthorized response to an OPTIONS request on the WebDAV root folder (when it finally gets around to checking). I reconfigured my WebDAV servlet to bypass authorization for OPTIONS requests (as a test), and once MS Web Folders requested OPTIONS and my servlet sent them back, it issued a PROPFIND and correctly popped up the authorization dialog. (But there are more problems---see below.) This seems to be related: http://support.microsoft.com/?kbid=831805 So... if I put workarounds in my WebDAV servlet to work with MS Web Folders from XP SP2, will it still fail with XP SP1, because SP1 won't even send an OPTIONS except to the root? http://greenbytes.de/tech/webdav/webdav-redirector-list.html I wrote *my* WebDAV servlet reading from the RFCs. What in the world did MS coders use when they wrote MS Web Folders? Surely not the actual WebDAV specification... This is all just plain ridiculous. Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Ahh the world according to B.G. and Micro$lime. What do you think the odd are that it works against IIS? M$ is famous for their interpretations of the RFC and implementation of odd handling of standards. Thus if you don't live in a Micky$oft world you will have more than you share of problems. Anyway, hope you get it solved. Doug - Original Message - From: Garret Wilson [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 4:21 PM Subject: Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my! Garret Wilson wrote: Apparently the whole PROPFIND / and Apache proxy things were red herrings. The central issue seems to be that MS Web Folders doesn't know what to do with a 401 Unauthorized response to an OPTIONS request on the WebDAV root folder (when it finally gets around to checking). I reconfigured my WebDAV servlet to bypass authorization for OPTIONS requests (as a test), and once MS Web Folders requested OPTIONS and my servlet sent them back, it issued a PROPFIND and correctly popped up the authorization dialog. (But there are more problems---see below.) This seems to be related: http://support.microsoft.com/?kbid=831805 So... if I put workarounds in my WebDAV servlet to work with MS Web Folders from XP SP2, will it still fail with XP SP1, because SP1 won't even send an OPTIONS except to the root? http://greenbytes.de/tech/webdav/webdav-redirector-list.html I wrote *my* WebDAV servlet reading from the RFCs. What in the world did MS coders use when they wrote MS Web Folders? Surely not the actual WebDAV specification... This is all just plain ridiculous. Garret - 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 + tomcat with 2 domains but same session?
Tim, thanks for your help. but... I have been following your suggestion and use mod_rewrite to rewrite bbb.abc.com to aaa.abc.com. Here is 3 scenarios: 1) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1 Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://aaa.abc.com/myapp/index.jsp (but i want http://bbb.abc.com/myapp/index.jsp instead) Session persist, no problem 2) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1[PT] Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://bbb.abc.com/myapp/index.jsp Client brower display 400 Bad Request error mod_rewrite.log get forcing 'http://aaa.abc.com/myapp/index.jsp' to get passed through to next API URI-to-filename handler 3) RewriteCond %{HTTP_HOST} ^bbb\.(.*)$ RewriteRule ^(.+) http://aaa.%1$1[P] Client access http://bbb.abc.com/myapp/index.jsp Client brower address bar display http://bbb.abc.com/myapp/index.jsp Client brower display Forbidden, You don't have permission to access /myapp/index.jsp mod_rewrite.log get forcing proxy-throughput with http://aaa.abc.com/myapp/index.jsp; so all of these cases didn't give me the result i wanted. the result i wanted is: -Client access http://bbb.abc.com/myapp/index.jsp -Client brower address bar display http://bbb.abc.com/myapp/index.jsp -Session persist with http://aaa.abc.com/myapp/index.jsp Am i on the right track? or am i doing it totally wrong? or is there way to get around this? please help. thanks again. Simon - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 11, 2005 7:44 PM Subject: Re: apache + tomcat with 2 domains but same session? You can get away with this by using URL rewriting. When you are using aaa.abc.com and wish to redirect or link to bbb.abc.com - you would need to rewrite the URL to include the jsessionid path parameter. But you *cannot* do this via response.encodeURL(..) since that method will detect your URL is in another webapp. So you will need to write your own implementation of encodeURL to achieve this. -Tim Simon Lau wrote: Hi, I want to setup my apache to have 2 domains, say aaa.abc.com and bbb.abc.com. Both of this domain goes to the same application context, say /myapp So when i access both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp will give me the exact same content, no problem. My question is how do i persist the session while i switch between aaa.abc.com and bbb.abc.com? For example i have a shopping basket storing with 2 products and i want to access the basket in both aaa.abc.com and bbb.abc.com Btw, i am using apache2.0.52 + tomcat5.0.28 - 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 + tomcat with 2 domains but same session?
Good point. May be clustring helps! Have not used this concept. Regards Rajaneesh -Original Message- From: Simon Lau [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 2:22 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat with 2 domains but same session? Hi, I want to setup my apache to have 2 domains, say aaa.abc.com and bbb.abc.com. Both of this domain goes to the same application context, say /myapp So when i access both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp will give me the exact same content, no problem. My question is how do i persist the session while i switch between aaa.abc.com and bbb.abc.com? For example i have a shopping basket storing with 2 products and i want to access the basket in both aaa.abc.com and bbb.abc.com Btw, i am using apache2.0.52 + tomcat5.0.28 any comments will be greatly appreciated. Thanks. Simon - 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 + tomcat with 2 domains but same session?
Take a look at http://support.softartisans.com/kbview.aspx?ID=666 [first link that i found on google about using cookies on diff subdomains] Basically you save a cookie unique for each user that with domain .abc.com Retrieve session vars [the basket in your case] from database via the value of this cookie. I guess there is a way to automatically save the session into database with tomcat, but I don't know anything about this, and retrieve it from two subdomains. If there is the second solution, I'm interested in more details. Viorel Dragomir . .. --- - Original Message - From: Rajaneesh To: 'Tomcat Users List' Sent: Wednesday, January 12, 2005 07:17 Subject: RE: apache + tomcat with 2 domains but same session? Good point. May be clustring helps! Have not used this concept. Regards Rajaneesh -Original Message- From: Simon Lau [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 2:22 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat with 2 domains but same session? Hi, I want to setup my apache to have 2 domains, say aaa.abc.com and bbb.abc.com. Both of this domain goes to the same application context, say /myapp So when i access both http://aaa.abc.com/myapp/index.jsp http://bbb.abc.com/myapp/index.jsp will give me the exact same content, no problem. My question is how do i persist the session while i switch between aaa.abc.com and bbb.abc.com? For example i have a shopping basket storing with 2 products and i want to access the basket in both aaa.abc.com and bbb.abc.com Btw, i am using apache2.0.52 + tomcat5.0.28 any comments will be greatly appreciated. Thanks. Simon - 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, Tomcat, WebDAV, and Web Folders... Oh, my!
It may be that the login request is not getting back to you intact. Do you have another app that is protected and triggers a login prompt? Like the manager app. If not hit me off list and I will give you a URL to try. If all else fails, would form auth over SSL work? Just a thought, yeah I know, and so are nightmares. Doug - Original Message - From: Garret Wilson [EMAIL PROTECTED] To: tomcat-user tomcat-user@jakarta.apache.org Sent: Monday, January 10, 2005 11:12 PM Subject: Apache, Tomcat, WebDAV, and Web Folders... Oh, my! I've written a custom WebDAV servlet which works fine configured on Windows XP Professional localhost with Tomcat 5.5.4. I upload everything to a http://www.example.com/webapp/webdav/ . The domain is served on Red Hat 6 by Apache 2.0.49, which forwards to Tomcat using ProxyPass and ProxyPassReverse. I try to connect via Microsoft Windows XP Professional Web Folders. (My WebDAV servlet works around all the various Microsoft redirection bugs, and works fine with Web Folders on localhost.) Web Folders doesn't recognize the folder. I whip out Ethereal, and here's what I find: User agent Microsoft Data Access Internet Publishing Provider Protocol Discovery sends an HTTP OPTIONS request to /. Apache sends back a 200 OK. Then Microsoft Web Folders sends an OPTIONS request to /webapp/webdav/. My servlet sends back a 401 Unauthorized, asking for digest credentials. So far, so good. Then Microsoft Web Folders starts over again, sending an HTTP OPTIONS request to /, and then an OPTIONS request to /webapp/webdav/ (never asking me for my username/password), until it finally gives up and says that there must not be a valid WebDAV server at the requested location. Why doesn't Microsoft Web Folders ask my for my password? Why does it ignore the 401 Unauthorized and go back to asking for OPTIONS on the root? Does this have something to do with using Apache to proxy to Tomcat? Why did a non-proxied Tomcat work find on my Windows XP Professional machine? (If it has anything to do with it, I'm testing this in a cafe going through Surf and Sip WiFi.) Thanks in advance for any insight. Garret - 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, Tomcat, WebDAV, and Web Folders... Oh, my!
Parsons Technical Services wrote: It may be that the login request is not getting back to you intact. Do you have another app that is protected and triggers a login prompt? Web Folders works without problems when Tomcat is running on localhost. The password dialog pops up just fine. I use Firefox to browse the directory of http://www.example.com/webapp/webdav/ using GET, which goes through my WebDAV servlet. Firefox pops up an authentication dialog and, after I enter the correct username and password, displays a directory list generated by my WebDAV servlet. I use DavExplorer 0.90 to open http://www.example.com/webapp/webdav/ . DavExplorer pops up a DIGEST authentication dialog and, after I enter the correct username and password, allows me to access the entire WebDAV tree. I use Microsoft Internet Explorer 6 to browse to http://www.example.com/webapp/webdav/ using HTTP GET. After a dialog pops up and I enter the correct username and password, the WebDAV servlet-generated directory list appears. Still using MS IE 6, I try to open http://www.example.com/webapp/webdav/ as a Web Folder using File|Open... (as Web Folder). IE reports that it is unable to open the location as a Web Folder---would I like to see the default view? If I answer in the affirmative, IE sends a GET and shows me the directory listing. Why is MS Web Folders doing this strange OPTIONS thing with / and ignoring my 401 Unauthorized HTTP response? If all else fails, would form auth over SSL work? Just a thought, yeah I know, and so are nightmares. Form authorization with WebDAV? But the answer is no---I want to find out what this isn't working. Thanks anyway! Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
snip Still using MS IE 6, I try to open http://www.example.com/webapp/webdav/ as a Web Folder using File|Open... (as Web Folder). IE reports that it is unable to open the location as a Web Folder---would I like to see the default view? If I answer in the affirmative, IE sends a GET and shows me the directory listing. Why is MS Web Folders doing this strange OPTIONS thing with / and ignoring my 401 Unauthorized HTTP response? snip Did you close all IE windows prior to this last step? If not, then it never destroyed the session. As for the other, Google has several sites that simply say replace IE. But past that there is one issue on M$ that has to do with the message you are getting from IE but doesn't match you setup. Might give you some ideas. http://support.microsoft.com/default.aspx?scid=kb;en-us;290227 On IE5 there was an error file (WecErr.txt file in your TEMP folder ). You might find one on IE6. Good luck. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Parsons Technical Services wrote: Why is MS Web Folders doing this strange OPTIONS thing with / and ignoring my 401 Unauthorized HTTP response? Did you close all IE windows prior to this last step? If not, then it never destroyed the session. I have now---same result. (Why would I care if it had destroyed the session or not?) As for the other, Google has several sites that simply say replace IE. Good answer. I came up with that one a long time ago. But the problem goes beyond IE---Web Folders is the root problem, here. I know, replace the OS. While we're at it, I'd like to redesign HTTP... (Folding LWS? What were they thinking?) And WebDAV. (Did no one realize that DAV: is not a valid URI and therefore not a valid XML namespace? What were they thinking?) ;) But past that there is one issue on M$ that has to do with the message you are getting from IE but doesn't match you setup. Might give you some ideas. http://support.microsoft.com/default.aspx?scid=kb;en-us;290227 No luck. On IE5 there was an error file (WecErr.txt file in your TEMP folder ). You might find one on IE6. It doesn't seem to be there. Thanks, Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!
Some more info: When Web Folders first tries to access http://www.example.com/webapp/webdav/ , user agent Microsoft-WebDAV-MiniRedir/5.1.2600 tries to do a PROPFIND on http://www.example.com/webapp . Apache (from Tomcat?) redirects with 302 to http://www.example.com/webapp/ . Microsoft-WebDAV-MiniRedir/5.1.2600 tries to do a PROPFIND on http://www.example.com/webapp/ . Apache sends back (from Tomcat, I suppose) a 501 I don't know what the heck a PROPFIND is type of response. (MS never should have tried to touch http://www.example.com/webapp/ , as that's a parent directory to what I requested.) Again Microsoft-WebDAV-MiniRedir/5.1.2600 tries to do a PROPFIND on http://www.example.com/webapp and goes through the whole procedure again. Finally it gets tired and issues an OPTIONS request on /, to which Apache/Tomcat issues a 202 OK (but with no DAV header). So then Microsoft Data Access Internet Publishing Provider Protocol Discovery gets into the action and issues its own OPTIONS on /. (Why MS can't simply try to access http://www.example.com/webapp/webdav/ like I asked in the first place, I'll never know.) Another 200 OK response. Finally MS gets around to doing an OPTIONS on http://www.example.com/webapp/webdav (which it should have done in the very first request). Tomcat (through Apache) issues its 401 Unauthorized response (as it should), along with the DAV: 1,2 header (as it should). MS decides, Oh, well, I'll issue an OPTIONS on the root path '/' again and goes through the entire process. Then I see various attempts at GET /_vti_inf.html and POST /_vti_bin/shtml.exe , indicating that MS Web Folders didn't recognize WebDAV and is trying to use FrontPage extension witchraft. Sending back a MS-Author-Via: DAV header should stop this---but my WebDAV servlet never got the chance because MS Web Folders wouldn't authenticate in the presence of a 401 Unauthorized. I know that IE, Web Folders, and the whole shebang is a load of (insert expletive here), but I've managed to work around everything else so that it works on pure Tomcat on localhost. There's some little thing that's throwing things off in the Tomcat-behind-Apache-on-Internet scenario, and if I can just find out what it is, I can cut off this last MS bug and get this to working. Does it have something to do with Apache modifying a HTTP request or response to or from Tomcat? Does it have something to do with the server being located somewhere other than localhost, altering the behavior of Microsoft-WebDAV-MiniRedir/5.1.2600 or Microsoft Data Access Internet Publishing Provider Protocol Discovery? An inquiring mind wants to know---but really has to get some sleep right now. Thanks again to Doug and everyone else for your time. Garret Garret Wilson wrote: I've written a custom WebDAV servlet which works fine configured on Windows XP Professional localhost with Tomcat 5.5.4. I upload everything to a http://www.example.com/webapp/webdav/ . The domain is served on Red Hat 6 by Apache 2.0.49, which forwards to Tomcat using ProxyPass and ProxyPassReverse. I try to connect via Microsoft Windows XP Professional Web Folders. (My WebDAV servlet works around all the various Microsoft redirection bugs, and works fine with Web Folders on localhost.) Web Folders doesn't recognize the folder. I whip out Ethereal, and here's what I find: User agent Microsoft Data Access Internet Publishing Provider Protocol Discovery sends an HTTP OPTIONS request to /. Apache sends back a 200 OK. Then Microsoft Web Folders sends an OPTIONS request to /webapp/webdav/. My servlet sends back a 401 Unauthorized, asking for digest credentials. So far, so good. Then Microsoft Web Folders starts over again, sending an HTTP OPTIONS request to /, and then an OPTIONS request to /webapp/webdav/ (never asking me for my username/password), until it finally gives up and says that there must not be a valid WebDAV server at the requested location. Why doesn't Microsoft Web Folders ask my for my password? Why does it ignore the 401 Unauthorized and go back to asking for OPTIONS on the root? Does this have something to do with using Apache to proxy to Tomcat? Why did a non-proxied Tomcat work find on my Windows XP Professional machine? (If it has anything to do with it, I'm testing this in a cafe going through Surf and Sip WiFi.) Thanks in advance for any insight. Garret - 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 Tomcat integration
roger there is step by step instruction http://www.sitepoint.com/article/quick-start-guide-windows HIH vimal - Original Message - From: Roger Mori-Tuesta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 20, 2004 5:19 AM Subject: Apache Tomcat integration Dear Partners: Any information how to integrate Tomcat 5 and Apache 2.+ in windows platform is appreciated. 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: Apache Tomcat production deployment: yr opinion reqd
Hi, It's kind of funny how you spelled our the first four long words in the subject, but then yr for your ;) a) Is Apache web server/Tomcat a proven production option for large-scale deployments (we are looking at about 1000 users served by a single instance of Apache/Tomcat3.x on an AS/400 box]. Now, this might sound silly but we would be extremely happy if someone can allay our concerns :) Yes, Apache/Tomcat is a proven production options for deployments much larger than yours. There are commercial sites serving millions of hits per day easily. However, I believe they use mostly Tomcat 4.x and 5.x. For Tomcat 3.x, I'm not an expert and don't know. b) I believe the default configuration settings for Apache/Tomcat are usuallly appropriate for a medim-sized deployment. Whatever you based that belief on, consider it carefully. document/web-site/ list mail archive that can guide me on how to arrive at optimum configuration settings? Search these archives. Look at the Tomcat and Apache configuration references. And most importantly, test your specific app against its expected load. No one else can do that work for you, and there are no magic settings that will just work. c) Are there any performance improvements that I can expect if i upgrade to Tomcat 4.x? Yes. And even more for 5.x. Yoav 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]
RE: Apache Tomcat production deployment: yr opinion reqd
Comments below. From: Vijay [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Apache Tomcat production deployment: yr opinion reqd Date: Wed, 17 Nov 2004 08:28:37 -0800 (PST) Hello everyone - We would like to evaluate Apache/Tomcat as a production-quality deployment for our organization's retail operations. I would appreciate if someone could comment / provide expert opinion on the following: a) Is Apache web server/Tomcat a proven production option for large-scale deployments (we are looking at about 1000 users served by a single instance of Apache/Tomcat3.x on an AS/400 box]. Now, this might sound silly but we would be extremely happy if someone can allay our concerns :) Alot will depend on the configuration of the as/400 and the code you are using. What is the number of estimated concurrent users? b) I believe the default configuration settings for Apache/Tomcat are usuallly appropriate for a medim-sized deployment. Is there any document/web-site/ list mail archive that can guide me on how to arrive at optimum configuration settings? Any information on what to look out for when configuring for medium to large deployments would be of immense help. You can google for most tidbits and information, if you have a specific question the archives of this list are a good resouce, also there are numerous books on the subject, (which there are several lists of them if you serach the archive). I would however offer one caveat settings, configurations and JVM/application optimizations are like finger prints, and so you can get ideas, but your going to have to see through trial and error what works for your specific application/hardware/software. c) Are there any performance improvements that I can expect if i upgrade to Tomcat 4.x? Tons ;) Thanks in advance for yr help! best regards vijay = --- The human mind is too precious to be wasted or imprisoned. - Anonymous --- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat production deployment: yr opinion reqd
On Wed, Nov 17, 2004 at 08:28:37AM -0800, Vijay wrote: : b) I believe the default configuration settings for : Apache/Tomcat are usuallly appropriate for a : medim-sized deployment. Is there any : document/web-site/ list mail archive that can guide me : on how to arrive at optimum configuration settings? I wince every time I see this question. If there were such magical, one-size-fits-all settings, I'd have faith in the Tomcat developers to put them in the default config. =) : Any information on what to look out for when : configuring for medium to large deployments would be : of immense help. There must be some J2EE tuning guides out there... What does Google tell you? -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]
RE: Apache Tomcat production deployment: yr opinion reqd
Alot will depend on the configuration of the as/400 and the code you are using. What is the number of estimated concurrent users? Thanks for yr inputs! We are looking at about 850-900 maximum concurrent users. c) Are there any performance improvements that I can expect if i upgrade to Tomcat 4.x? Tons ;) Are there any specific performance gains in 4 or 5.x (over 3.x)? Rather, what might I miss out on if i retained 3.x? [3.x is doing just fine today and we wouldn't want to disturb this unless there is a compelling reason vis-a-vis performance] Didier McGillis [EMAIL PROTECTED] wrote: Comments below. From: Vijay Reply-To: Tomcat Users List To: [EMAIL PROTECTED] Subject: Apache Tomcat production deployment: yr opinion reqd Date: Wed, 17 Nov 2004 08:28:37 -0800 (PST) Hello everyone - We would like to evaluate Apache/Tomcat as a production-quality deployment for our organization's retail operations. I would appreciate if someone could comment / provide expert opinion on the following: a) Is Apache web server/Tomcat a proven production option for large-scale deployments (we are looking at about 1000 users served by a single instance of Apache/Tomcat3.x on an AS/400 box]. Now, this might sound silly but we would be extremely happy if someone can allay our concerns :) Alot will depend on the configuration of the as/400 and the code you are using. What is the number of estimated concurrent users? b) I believe the default configuration settings for Apache/Tomcat are usuallly appropriate for a medim-sized deployment. Is there any document/web-site/ list mail archive that can guide me on how to arrive at optimum configuration settings? Any information on what to look out for when configuring for medium to large deployments would be of immense help. You can google for most tidbits and information, if you have a specific question the archives of this list are a good resouce, also there are numerous books on the subject, (which there are several lists of them if you serach the archive). I would however offer one caveat settings, configurations and JVM/application optimizations are like finger prints, and so you can get ideas, but your going to have to see through trial and error what works for your specific application/hardware/software. c) Are there any performance improvements that I can expect if i upgrade to Tomcat 4.x? Tons ;) Thanks in advance for yr help! best regards vijay = --- The human mind is too precious to be wasted or imprisoned. - Anonymous --- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- The human mind is too precious to be wasted or imprisoned. - Anonymous --- - Do you Yahoo!? The all-new My Yahoo! Get yours free!
RE: Apache/Tomcat problem
jk2_module is correct. Have you link the libapr-0.so.0? What is your LoadModule in httpd.conf? -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 4:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Apache/Tomcat problem Hi, I have a Linux FC1 machine running httpd (see conf below) I have now a tomcat applocation that I want to access through httpd since only the port 80 is open to this machine. Therefore, I did install jakarta-tomcat-connectors-jk2-2.0.4-src jakarta-tomcat-5.0.28. Trying apachectl configtest I got the following error: Syntax error on line 199 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `mod_jk2' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: mod_jk2 line 199 is the fresh addition of : LoadModule mod_jk2 modules/mod_jk2 Doing an nm on /etc/httpd/modules/mod_jk2.so does not show any 'mod_jk2' but a 'jk2_module'... Do you know about this problem ? Thanks -- Server version: Apache/2.0.51 Server built: Oct 3 2004 10:35:33 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/etc/httpd -D SUEXEC_BIN=/usr/sbin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:419281d3317799267813214!
Re: Apache/Tomcat problem
Phillip Qin wrote: jk2_module is correct. Have you link the libapr-0.so.0? What is your LoadModule in httpd.conf? OK, you give me the hint, I had to put 'jk2_module' instead of 'mod_jk2' in myLoadModule. At least httpd starts, I may me back for configuration file problems. Thanks -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 4:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Apache/Tomcat problem Hi, I have a Linux FC1 machine running httpd (see conf below) I have now a tomcat applocation that I want to access through httpd since only the port 80 is open to this machine. Therefore, I did install jakarta-tomcat-connectors-jk2-2.0.4-src jakarta-tomcat-5.0.28. Trying apachectl configtest I got the following error: Syntax error on line 199 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `mod_jk2' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: mod_jk2 line 199 is the fresh addition of : LoadModule mod_jk2 modules/mod_jk2 Doing an nm on /etc/httpd/modules/mod_jk2.so does not show any 'mod_jk2' but a 'jk2_module'... Do you know about this problem ? Thanks -- Server version: Apache/2.0.51 Server built: Oct 3 2004 10:35:33 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/etc/httpd -D SUEXEC_BIN=/usr/sbin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:419281d3317799267813214! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache/Tomcat problem
Yup LoadModule jk2_module modules/mod_jk2.so -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 5:07 PM To: Tomcat Users List Subject: Re: Apache/Tomcat problem Phillip Qin wrote: jk2_module is correct. Have you link the libapr-0.so.0? What is your LoadModule in httpd.conf? OK, you give me the hint, I had to put 'jk2_module' instead of 'mod_jk2' in myLoadModule. At least httpd starts, I may me back for configuration file problems. Thanks -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 4:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Apache/Tomcat problem Hi, I have a Linux FC1 machine running httpd (see conf below) I have now a tomcat applocation that I want to access through httpd since only the port 80 is open to this machine. Therefore, I did install jakarta-tomcat-connectors-jk2-2.0.4-src jakarta-tomcat-5.0.28. Trying apachectl configtest I got the following error: Syntax error on line 199 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `mod_jk2' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: mod_jk2 line 199 is the fresh addition of : LoadModule mod_jk2 modules/mod_jk2 Doing an nm on /etc/httpd/modules/mod_jk2.so does not show any 'mod_jk2' but a 'jk2_module'... Do you know about this problem ? Thanks -- Server version: Apache/2.0.51 Server built: Oct 3 2004 10:35:33 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/etc/httpd -D SUEXEC_BIN=/usr/sbin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf - 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] !DSPAM:419290f2327091545416499!
Re: Apache/Tomcat problem
I 'm back. I did start httpd then tomcat. I did test jsp-examples through 'http://192.168.0.3:8080/jsp-examples' and it works Then I did 'http://192.168.0.3/jsp-examples and I get a : 503 Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Any ideas ? Here are my conf files: --- JK2.PROPERTIES --- ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni handler.list=apr,channelUnix,request # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket channelUnix.file=/usr/localhot/jakarta-tomcat-5.0.28/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so --- WORKER2.PROPERTIES --- # workers2.properties # Shared memory handling. Needs to be set. [shm] info=coreboard. Required for reconfiguration and statu with multiprocess servers file=/usr/local/jakarta-tomcat-5.0.28/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/usr/local/jakarta-tomcat-5.0.28/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/usr/local/jakarta-tomcat-5.0.28/work/jk2.socket] channel=channel.un:/usr/local/jakarta-tomcat-5.0.28/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] # Uri mapping for gridsphere [uri:/gridsphere/*] [uri:/vqwiki/*] Yup LoadModule jk2_module modules/mod_jk2.so -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 5:07 PM To: Tomcat Users List Subject: Re: Apache/Tomcat problem Phillip Qin wrote: jk2_module is correct. Have you link the libapr-0.so.0? What is your LoadModule in httpd.conf? OK, you give me the hint, I had to put 'jk2_module' instead of 'mod_jk2' in myLoadModule. At least httpd starts, I may me back for configuration file problems. Thanks -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 4:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Apache/Tomcat problem Hi, I have a Linux FC1 machine running httpd (see conf below) I have now a tomcat applocation that I want to access through httpd since only the port 80 is open to this machine. Therefore, I did install jakarta-tomcat-connectors-jk2-2.0.4-src jakarta-tomcat-5.0.28. Trying apachectl configtest I got the following error: Syntax error on line 199 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `mod_jk2' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: mod_jk2 line 199 is the fresh addition of : LoadModule mod_jk2 modules/mod_jk2 Doing an nm on /etc/httpd/modules/mod_jk2.so does not show any 'mod_jk2' but a 'jk2_module'... Do you know about this problem ? Thanks -- Server version: Apache/2.0.51 Server built: Oct 3 2004 10:35:33 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/etc/httpd -D SUEXEC_BIN=/usr/sbin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf - 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] !DSPAM:419290f2327091545416499
RE: Apache / Tomcat restart
Hi, Why are you using Apache and JK2? Using Tomcat standalone, most of the systems I've put in place run for weeks and months without needing a restart. However, it takes good design *and* support/maintenance practices (such as not reloading the app in place every five minutes) to get there. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: Apache / Tomcat restart Hello all! I'm running a webapp with apache 2, tomcat 5 and jk2 under debian. The system is running fine for about a week or so. Then some strange small things start to happen. The webapp loads new pages put doesn't show them in a browser, all GET requests are ok, but POST requests are not responding, and other things like that. When apache / tomcat is restarted everything is back to normal. I wonder if other people are experiencing similar things? How often do you _need_ to restart your systems? There is no problem for me to restart the system with a cron job at night, but if you guys don't have to restart why should I? I think that my tomcat / jk2 config is proper, but I have no experience in configuring apache 2 so this is pretty much out of the box configured. Regards Trond Ziarkowski - 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]
Re: Apache / Tomcat restart
Hi Shapira, the reason for running apache / jk2 is that we are running other things on the same server using php. Haven't tried to make php run inside tomcat, never even checked to see if it is possible. The php stuff existed before we started using tomcat so the natural approach for us was to expand our existing solution to also support running servlets / jsp. However we are in the process of porting our old php stuff to servlets / jsp, so in the near future we should be able to use tomcat standalone. I'm a junior (2yrs. exp.) and curious about hints / tips when you talk about good design and support / maintenance practices. Pointers to good docs on these topics or som pointers from you or others that are more experienced than myself would be much appreciated. Regards Trond Ziarkowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache / Tomcat restart
Hi, the reason for running apache / jk2 is that we are running other things on the same server using php. Haven't tried to make php run inside tomcat, never even checked to see if it is possible. The php stuff It's possible, but clunky. So you're fine for now, but when you're done converting to all servlets/JSPs, you should seriously consider running Tomcat standalone. I'm a junior (2yrs. exp.) and curious about hints / tips when you talk about good design and support / maintenance practices. Pointers to good docs on these topics or som pointers from you or others that are more experienced than myself would be much appreciated. You can search the archives: you'll find a good amount of tips and such. Yoav 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]
Re: Apache-Tomcat: File Not Found instead of Tomcat
as far as i understand JKMount actually is essentially pretty much the same as an alias in apache... I have to check thought if mod_jk and mod_jk2 behave the same on this because i am still using mod_jk on my server Hope this helps! Allen Williams wrote: Alain, Thanks for the tip. I will try it within a day or so. What does JkMount do, and is there any documentation anywhere on what elements are needed where? anw -Original Message- From: Alain Gaeremynck [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 6:49 PM To: Tomcat Users List Subject: Re: Apache-Tomcat: File Not Found instead of Tomcat First time i try to help someone on this list... Hope i'm right :) You seem to be missing some config in httpd.conf IfModule mod_jk.c JkMount /examples/* worker1 /IfModule Allen Williams wrote: I am setting (what should be) a straigthforward and very common integration of Apache and Tomcat on Debian Linux, with Apache2 serving static content and Tomcat4 serving jsp's and servlet's. The base directory of the apache service is /var/www. The CATALINA_BASE is /var/lib/tomcat4, which contains webapps/examples, webapps/admin, webapps/manager, and webdav(?-don't know what this is). All this is set up to just run on localhost. When I point my browser to http://localhost;, I get the right Apache index page, but when I try to go to http://localhost/examples;, or any of the others, I get a File Not Found error. How do I set this up? Here are the relevant parts of the config files: --- httpd.conf (actually, under Debian distribution, snippets included in apache2.conf): LoadModule jk2_module /usr/lib/apache2/modules/mod_jk2.so # To enable mod_jk2, customize workers2.properties* from # /usr/share/doc/libapache2-mod-jk2/examples and copy it to # /etc/apache2/workers2.properties. Then uncomment the following line: JkSet config.file /etc/apache2/workers2.properties workers.properties: # # This is the minimal JK2 connector configuration file. # [logger.file:0] level=DEBUG file=/var/log/apache2/apache-jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers # file=anonymous # debug=0 file=/etc/apache2/scoreboard.shm size=100 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [ajp13:localhost:8009] info=ajp13 worker; connects to tomcat using AJP 1.3 protocol channel=channel.socket:localhost:8009 [uri:/admin/*] info=Tomcat HTML based administration web application. debug=5 context=admin worker=ajp13:localhost:8009 [uri:/manager/*] info=A scriptable management web application for the Tomcat Web Server. debug=5 context=manager worker=ajp13:localhost:8009 [uri:/examples/*] info=tomcat Examples. debug=5 context=examples worker=ajp13:localhost:8009 And, on the Tomcat side, server.xml: Server port=8005 shutdown=SHUTDOWN debug=5 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Tomcat-Standalone !-- *** COMMENTED OUT *** Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8180 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=5 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=5 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger
RE: Apache, Tomcat and mod_jk2 - question about layout
Think of an empty jk2.properties. -Original Message- From: Allen Williams [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 7:20 PM To: Tomcat Users List Subject: RE: Apache, Tomcat and mod_jk2 - question about layout Thanks so much. I'll try it today or tomorrow. Even though you didn't change it, could you please post your jk2.properties? Don't need the httpd.conf- it's pretty straightforward. Thanks again, allen -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:23 AM To: 'Tomcat Users List' Subject: RE: Apache, Tomcat and mod_jk2 - question about layout This is my workers2.properties (not workers.properties). You don't need to touch jk2.properties or httpd.conf. # shared memory handling. [shm] file=C:\Program Files\Apache Group\Tomcat 4.1\work\jk2.shm size=1048576 # Defines a load balancer named lb. Use even if you only have one machine. #[lb:lb] # example socket channel, explicitly set port and host [channel.socket:localhost:8009] #tomcatId=localhost:8009 port=8009 host=127.0.0.1 tomcatId=jvm1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 #group=lb # uri mapping #[uri:/examples/*] #group=lb [uri:investments.localhost/lciponline/*] #group=lb [uri:test.localhost/onlinestore/*] #group=lb #[uri:/investments/*] #group=lb # ROOT [uri:investments.localhost/*] [uri:test.localhost/*] [uri:investments.localhost/manager/*] #group=lb [uri:test.localhost/manager/*] [uri:investments.localhost/admin/*] [uri:test.localhost/admin/*] [status:] info=Status worker, displays runtime information [uri:investments.localhost/jkstatus/*] #worker=status:status group=status: [uri:test.localhost/jkstatus/*] #worker=status:status group=status: -Original Message- From: Allen Williams [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 9:03 AM To: Tomcat Users List Subject: RE: Apache, Tomcat and mod_jk2 - question about layout Second request: Would you post what you did to integrate the two? I've followed all the clues on both apache and tomcat websites, which is exactly what it says in three books I've got, and I still get a File Not Found error from apache when I go to the dynamic content. Is there some reference and description of the parameters and values for the workers.properties, jk2.properties, and httpd.conf files? Although the Jakarta website has some of this, the examples showing the parameters being used are pretty sparse. What does JkMount do? I can't find this documented anywhere. I assure you, I've spent DAYS on the websites, in the books, and looking for documentation whereever I can find it. Thanks, Allen -Original Message- From: footh [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:08 PM To: Tomcat Users List Subject: Re: Apache, Tomcat and mod_jk2 - question about layout Thanks for the tips. I believe the site will be using SSL at some point so that may be a reason to use Apache. But for the time being, I suppose I might as well use Tomcat standalone knowing that I can just flip a switch (well, a couple switches) to get Apache back in there. --- Peter Johnson [EMAIL PROTECTED] wrote: I am using Apache2, jk2 and Tomcat5 but I do so because I want to offload the SSL and compression onto a first tier leaving the second just to generate the content. I also use the first tier for uri rewriting using mod_rewrite. If you don't need uri rewriting I would consider using Tomcat standalone as the performance is likely to be comparable but the reduced admin by removing Apache and jk would be a big benefit. Why have more steps that can go wrong? More to debug when it does? To answer the questions from your first email. The images will be being returned from Apache, remember that an image is a separate request. I will qualify this by stating that any dynamically generated images will be returned by Tomcat. Regarding the directory setup ... it is whatever works best for you. I personally do the following: Apache Content - /sites/static/site name/... Tomcat Content - /sites/webapps/site name/ This means that all of the Tomcat content is outside the realm of Apache and thus security concerns are reduced. my 2c, PJ footh wrote: I've read the FAQ on the topic of whether to go through Apache or just use Tomcat stand-alone and frankly, it seemed inconclusive. Then I did a search and it seemed the general consensus was to use Tomcat stand-alone for development enviroments and Apache for production. Really, that's all I went by. I figured using Apache, Tomcat and mod_jk was the more robust solution and better suited for the long haul. More and more features will likely be added
RE: Apache, Tomcat and mod_jk2 - question about layout
Second request: Would you post what you did to integrate the two? I've followed all the clues on both apache and tomcat websites, which is exactly what it says in three books I've got, and I still get a File Not Found error from apache when I go to the dynamic content. Is there some reference and description of the parameters and values for the workers.properties, jk2.properties, and httpd.conf files? Although the Jakarta website has some of this, the examples showing the parameters being used are pretty sparse. What does JkMount do? I can't find this documented anywhere. I assure you, I've spent DAYS on the websites, in the books, and looking for documentation whereever I can find it. Thanks, Allen -Original Message- From: footh [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:08 PM To: Tomcat Users List Subject: Re: Apache, Tomcat and mod_jk2 - question about layout Thanks for the tips. I believe the site will be using SSL at some point so that may be a reason to use Apache. But for the time being, I suppose I might as well use Tomcat standalone knowing that I can just flip a switch (well, a couple switches) to get Apache back in there. --- Peter Johnson [EMAIL PROTECTED] wrote: I am using Apache2, jk2 and Tomcat5 but I do so because I want to offload the SSL and compression onto a first tier leaving the second just to generate the content. I also use the first tier for uri rewriting using mod_rewrite. If you don't need uri rewriting I would consider using Tomcat standalone as the performance is likely to be comparable but the reduced admin by removing Apache and jk would be a big benefit. Why have more steps that can go wrong? More to debug when it does? To answer the questions from your first email. The images will be being returned from Apache, remember that an image is a separate request. I will qualify this by stating that any dynamically generated images will be returned by Tomcat. Regarding the directory setup ... it is whatever works best for you. I personally do the following: Apache Content - /sites/static/site name/... Tomcat Content - /sites/webapps/site name/ This means that all of the Tomcat content is outside the realm of Apache and thus security concerns are reduced. my 2c, PJ footh wrote: I've read the FAQ on the topic of whether to go through Apache or just use Tomcat stand-alone and frankly, it seemed inconclusive. Then I did a search and it seemed the general consensus was to use Tomcat stand-alone for development enviroments and Apache for production. Really, that's all I went by. I figured using Apache, Tomcat and mod_jk was the more robust solution and better suited for the long haul. More and more features will likely be added to this site so I need to be forward thinking. --- Parsons Technical Services [EMAIL PROTECTED] wrote: Unless you have a reason, why not let Tomcat do it all? Doug - Original Message - From: footh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 5:13 PM Subject: Apache, Tomcat and mod_jk2 - question about layout After going through all the documentation, I have gotten mod_jk2 to forward jsp requests to Tomcat. However, I have a question about the layout... Essentially, my site will be .html pages with some occasional .jsp pages (it will likely change in the future to all .jsp/servlets, but for now that's the way it is). Right now, I have the Apache DocumentRoot pointing to the directory containing the site and also I have a Tomcat Context with a blank path property and docBase property pointing to the same site directory. So, basically, I can browse the site by going to http://localhost:8080 using Tomcat in addition to the standard http://localhost address (through Apache). And, with mod_jk2 working, I can also hit http://localhost/xyz.jsp and have a .jsp page execute correctly. So, my question is, is this the correct way to configure this kind of web site? When .jsp pages are hit, are the images actually being loaded by Apache or by Tomcat? A problem I've discovered is that if I need to use a web.xml file in the WEB-INF directory, I can actually browse to the WEB-INF directory when hitting the site through port 80 (Apache). Obviously, this is not a good idea so I am thinking there is probably a better way to set this site up. Any ideas? Thanks, JF === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best
RE: Apache, Tomcat and mod_jk2 - question about layout
This is my workers2.properties (not workers.properties). You don't need to touch jk2.properties or httpd.conf. # shared memory handling. [shm] file=C:\Program Files\Apache Group\Tomcat 4.1\work\jk2.shm size=1048576 # Defines a load balancer named lb. Use even if you only have one machine. #[lb:lb] # example socket channel, explicitly set port and host [channel.socket:localhost:8009] #tomcatId=localhost:8009 port=8009 host=127.0.0.1 tomcatId=jvm1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 #group=lb # uri mapping #[uri:/examples/*] #group=lb [uri:investments.localhost/lciponline/*] #group=lb [uri:test.localhost/onlinestore/*] #group=lb #[uri:/investments/*] #group=lb # ROOT [uri:investments.localhost/*] [uri:test.localhost/*] [uri:investments.localhost/manager/*] #group=lb [uri:test.localhost/manager/*] [uri:investments.localhost/admin/*] [uri:test.localhost/admin/*] [status:] info=Status worker, displays runtime information [uri:investments.localhost/jkstatus/*] #worker=status:status group=status: [uri:test.localhost/jkstatus/*] #worker=status:status group=status: -Original Message- From: Allen Williams [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 9:03 AM To: Tomcat Users List Subject: RE: Apache, Tomcat and mod_jk2 - question about layout Second request: Would you post what you did to integrate the two? I've followed all the clues on both apache and tomcat websites, which is exactly what it says in three books I've got, and I still get a File Not Found error from apache when I go to the dynamic content. Is there some reference and description of the parameters and values for the workers.properties, jk2.properties, and httpd.conf files? Although the Jakarta website has some of this, the examples showing the parameters being used are pretty sparse. What does JkMount do? I can't find this documented anywhere. I assure you, I've spent DAYS on the websites, in the books, and looking for documentation whereever I can find it. Thanks, Allen -Original Message- From: footh [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:08 PM To: Tomcat Users List Subject: Re: Apache, Tomcat and mod_jk2 - question about layout Thanks for the tips. I believe the site will be using SSL at some point so that may be a reason to use Apache. But for the time being, I suppose I might as well use Tomcat standalone knowing that I can just flip a switch (well, a couple switches) to get Apache back in there. --- Peter Johnson [EMAIL PROTECTED] wrote: I am using Apache2, jk2 and Tomcat5 but I do so because I want to offload the SSL and compression onto a first tier leaving the second just to generate the content. I also use the first tier for uri rewriting using mod_rewrite. If you don't need uri rewriting I would consider using Tomcat standalone as the performance is likely to be comparable but the reduced admin by removing Apache and jk would be a big benefit. Why have more steps that can go wrong? More to debug when it does? To answer the questions from your first email. The images will be being returned from Apache, remember that an image is a separate request. I will qualify this by stating that any dynamically generated images will be returned by Tomcat. Regarding the directory setup ... it is whatever works best for you. I personally do the following: Apache Content - /sites/static/site name/... Tomcat Content - /sites/webapps/site name/ This means that all of the Tomcat content is outside the realm of Apache and thus security concerns are reduced. my 2c, PJ footh wrote: I've read the FAQ on the topic of whether to go through Apache or just use Tomcat stand-alone and frankly, it seemed inconclusive. Then I did a search and it seemed the general consensus was to use Tomcat stand-alone for development enviroments and Apache for production. Really, that's all I went by. I figured using Apache, Tomcat and mod_jk was the more robust solution and better suited for the long haul. More and more features will likely be added to this site so I need to be forward thinking. --- Parsons Technical Services [EMAIL PROTECTED] wrote: Unless you have a reason, why not let Tomcat do it all? Doug - Original Message - From: footh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 5:13 PM Subject: Apache, Tomcat and mod_jk2 - question about layout After going through all the documentation, I have gotten mod_jk2 to forward jsp requests to Tomcat. However, I have a question about the layout... Essentially, my site will be .html pages with some occasional .jsp pages (it will likely change in the future to all .jsp/servlets, but for now that's the way it is). Right now, I have the Apache
Re: Apache + Tomcat
On Wed, 27 Oct 2004 18:07:51 -0300, Willian Corrêa [EMAIL PROTECTED] wrote: Sory my english is very poor, i'm brazilian... but... I'm using Apache with Tomcat under port 80 with mod JK to connect this servers. I have very much virtual hosts in my server. I need know how much, a part, use of memory, cpu...? (remember: sorted by virtual host). and... any time a virtual host is configured on server.xml i need restart the tomcat server, exist other form? Exist any form to resolve this questions? thanks Your first question is really strange. i could not understand it. I am brazilian also, so if you prefer, send me the question on private, and I will translate it for you so you can post to the list. The second question answer is yes: if you change anything on server.xml, then you have to restart Tomcat to see the changes. The only exception are the contexts for each separate application, that can be accepted just by reloading the application itself using Tomcat Manager. Thanks, Marcelo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]