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: Tomcat/Apache/JK(2)?
I have Tomcat 5.5.9 using JK to communicate with Apache 2.0.54 just fine. The workers.properties file is configured correctly, the httpd.conf is configured correctly, and I had to make a small change to server.xml to call my new site. This is all running on one Windows 2000 Server machine. When I first started this I was getting the problem listed below. Looking at the mod_jk.log I found that Tomcat 5.5.9 wasn't listening. So, basically what I had to do was start Tomcat MANUALLY, and then everything worked perfectly. So, what I'd like to do is configure JNI so with JK (not JK2 since it is now deprecated) and get Apache 2.0.54 to automatically start Tomcat 5.5.9. Or, I'd like to use JK (via Apache 2.0.54) to start Tomcat 5.5.9 in-process. In short, can I do this? If I can, can someone refer me to the steps I have to take in workers.properties, server.xml, and httpd.config to make this happen. BTW, in my research I have found people using JK to connect Apache 2.0.x to Tomat 4.x, but it usually involves modifying server.xml to use the Tomcat4 CoyoteConnector, and I wasn;t sure if that was available for Tomcat 5.5. Any help would be much appreciated, and if you need any more information from me, please let me know. Thanks. Tom Tom Holmes Jr. wrote: I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file.So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x
Re: Tomcat/Apache/JK(2)?
I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file.So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail
Tomcat/Apache/JK(2)?
Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to prevent direct access to login.jsp
I realize that you're asking if there is a Tomcat-configurable solution to this problem but that isn't the best way to handle this in the Java world. The Tomcat-configurable way might be to force a directory (or web-app) to force a new hit to the server instead of allowing the page to be cached in the browser. I'm not sure how you do this, but I am sure someone does. There is also a way to put a directive in the JSP page that forces it to refresh every time the page is hit ... there's a way to do it, but I've since forgotten yeah, I know, I am just so full of information. My personal best way to solve this is to use Servlets ... if my user goes to my login.jsp page, that's fine ... when they submit though it goes to a Login Servlet which does all the work and then re-directs to the login.jsp page with errors or failed validation. The Servlet uses a javabean to query the database, and if all is well, then the servlet redirects to the web-site itself. The Login Servlet also sets a user object in session ... so that if a user tries to bookmark a URL ... if the user object doesn't exist (because of timing out, or whatever), then I redirect them back to the login.jsp. I know a lot of people don't like that because they have server farms and the user has to be re-directed back to the same machine and objects in session take-up system memory. But, I don't put a lot into that object, it's very minimal, and I don't get many users for it to be an issue, and I bumped up the memory on that web-server anyway. Hope this helps. Thanks. Tom - Original Message - From: Chaikin, Yaakov Y (US SSA) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 08, 2003 5:59 PM Subject: How to prevent direct access to login.jsp Hi, I realized that my user can mess himself by bookmarking the login page he is asked to log in. The login.jsp appears in the URL address in the browser... Does anyone know how to avoid this? How do I block that URL for the user and not for the server? Thanks. Yaakov Chaikin Software Engineer BAE SYSTEMS 301-838-6899 (phone) 301-838-6802 (fax) [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]
Tomcat doesn't start inprocess
I have Apache 2.0.48 and Tomcat 4.1.29 and mod_jk2.dll running on Windows 2000. I am sure that I have the Apache2 workers2.properties and httpd.conf configured properly. I am also sure that I have the tomcat jk2.properties and server.xml file configured properly. I started Apache2 and I got the following code in the Apache2 error log: [Sat Dec 06 16:41:32 2003] [notice] Parent: Created child process 2720 [Sat Dec 06 16:41:32 2003] [notice] Child 2720: Child process is running [Sat Dec 06 16:41:32 2003] [notice] jk2_init() Found child 2720 in scoreboard slot 0 [Sat Dec 06 16:41:32 2003] [notice] vm.init(): Jni lib: c:/j2sdk1.4.2_02/jre/bin/client/jvm.dll [Sat Dec 06 16:41:33 2003] [notice] vm.open2() done [Sat Dec 06 16:41:33 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter [Sat Dec 06 16:41:33 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter [Sat Dec 06 16:41:33 2003] [notice] jni.init() setting stdout=c:/web/Apache2/logs/stdout.log... [Sat Dec 06 16:41:33 2003] [notice] jni.init() setting stderr=c:/web/Apache2/logs/stderr.log... [Sat Dec 06 16:41:33 2003] [notice] jni.init() ARG start [Sat Dec 06 16:41:33 2003] [notice] jni.init() calling main()... [Sat Dec 06 16:41:33 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter [Sat Dec 06 16:41:33 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter [Sat Dec 06 16:41:33 2003] [notice] jni.init() disabling the non init hook worker [Sat Dec 06 16:41:33 2003] [notice] workerEnv.init() ok C:/web/Apache2/conf/workers2.properties [Sat Dec 06 16:41:33 2003] [error] mod_jk child init 1 0 [Sat Dec 06 16:41:33 2003] [notice] Child 2720: Acquired the start mutex. [Sat Dec 06 16:41:33 2003] [notice] Child 2720: Starting 250 worker threads. It all looks good, but it doesn't start Tomcat at all. It looks like there is an error in the stderr.log ... as follows ... TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Try org.apache.catalina.startup.Bootstrap No class found So, the first question is how do I generate more of a detailed error log, and the second question is how do I fix this problem? Any help would be much appreciated.Thanks. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.48 and Tomcat 4.1.29 and JK2
Many months ago, I installed Apache 2.0.46, Tomcat 4.1.18, and JK2. I got this all working fantastically. I had it configured so that when I started Apache, it started Tomcat also. I don't know how I did it, but I'd like to see if anyone knows the details I have forgotten. On another machine, I am using the following projects listed above. I installed Apache 4.0.28 on my Wiin2K system and it works great, so http://localhost on this machine works. I also installed 4.1.29 by only unzipping it and moving to a new location on my system. I put the mod_jk2 in the Apache2 modules directory and updated the httpd.conf file. I updated/created a workers2.properties file and updated the jk2.properties file. I haven't made any changes to server.xml under Tomcat. I don't plan on using Tomcat-Web-Server on 8080, I'd prefer to use Apache2 on port 80. Even though http://localhost works for static HTML, I'd like to get http://localhost/examples to work with Tomcat. Depending on the workers2.properties file, I get different results. Sometimes it says: channelSocket.open() connection failed to localhost 8009. This probably means Tomcat is not running which is why I want Apache startup to startup Tomcat. Thanks. Tom
Re: Apache 2.0.48 and Tomcat 4.1.29 and JK2
There was a way at one point that you didn't have to start Tomcat. There was a way at some point that starting Apache2 would also automatically start Tomcat as well at the same time. That way you didn't have to start one and then the other. I have this working on one machine like that ... can't remember how I did it though? Thanks. Tom - Original Message - From: Asif Chowdhary [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 05, 2003 10:33 AM Subject: RE: Apache 2.0.48 and Tomcat 4.1.29 and JK2 As far as I know. Tomcat has to be started first and then the apache web server. Also in server.xml you have to define coyote connector listening on port 8009 or some other port. 8009 is the default. -Original Message- From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 10:13 AM To: [EMAIL PROTECTED] Subject: Apache 2.0.48 and Tomcat 4.1.29 and JK2 Many months ago, I installed Apache 2.0.46, Tomcat 4.1.18, and JK2. I got this all working fantastically. I had it configured so that when I started Apache, it started Tomcat also. I don't know how I did it, but I'd like to see if anyone knows the details I have forgotten. On another machine, I am using the following projects listed above. I installed Apache 4.0.28 on my Wiin2K system and it works great, so http://localhost on this machine works. I also installed 4.1.29 by only unzipping it and moving to a new location on my system. I put the mod_jk2 in the Apache2 modules directory and updated the httpd.conf file. I updated/created a workers2.properties file and updated the jk2.properties file. I haven't made any changes to server.xml under Tomcat. I don't plan on using Tomcat-Web-Server on 8080, I'd prefer to use Apache2 on port 80. Even though http://localhost works for static HTML, I'd like to get http://localhost/examples to work with Tomcat. Depending on the workers2.properties file, I get different results. Sometimes it says: channelSocket.open() connection failed to localhost 8009. This probably means Tomcat is not running which is why I want Apache startup to startup Tomcat. Thanks. Tom - 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]
RH 8.0 Tomcat 4.1.18 and Apache 2.0.43
I got Apache 2.0.43 and Tomcat 4.1.18 working with jk2 on my Windows 2K Advanced Server, and I got all the virtual hosts working. I am now trying to get SSI (server-side includes) to work though I followed all the directions, but that is a minor issue for me right now. I also have RH Linux 8.0 and it works great (I am a Linux newbie). RH 8.0 already has Apache 2.0 installed, but I am not sure which version it is, though I could find out. It looks like the HTML files reside in /var/www/html although thr server itself lives under /etc/httpd and not in /usr/local/apache2 Now I installed tomcat 4.1.18 and with the startup script it works fine by itself, and all the examples work. I copied over my config files for Apache2 and Tomcat and I just had this one question. On my Windows 2000 box, Apache runs as an NT Service and the Jk2 properties file is setup to run in-process ... hence all I have to do is restart Apache2 with the Apache monitor and Tomcat starts as well running in the background. So, should I do this in Linux? Should I run Tomcat first and then run Apache afterwards? If you can help me, or lead me to a helpful How-To or web-site or web-page, please let me know. Thanks. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP not forwarded to Tomcat
This is a bug with either Tomcat or the Jk (or Jk2) connector. I also had this problem and I have reported it as a bug to the Tomcat-Developers group. In order to work around this fix ... do NOT rely upon the httpd.conf file in order to make your vhosts/web-apps work. Instead ... make sure you create uri's in the workers2.properties file (if you are using Jk2). Look at how they declare the /examples and do this for your own vhosts. The /test is the location of where you have your files. If you need any more information, please let me know.Thanks. [uri:/test] info=Example webapp in the default context. context=/test debug=0 [uri:/test/*.jsp] info=Extension mapping [uri:/test/*] info=Map the whole webapp - Original Message - From: Pascal Robert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 27, 2003 10:57 AM Subject: JSP not forwarded to Tomcat Hi list, First, the setup: - Mac OS X 10.2 - Tomcat/4.1.18 - Apache/1.3.27 - mod_jk-1.3.27.so (build from OS X from Jakarta's site), renamed to mod_jk.so I tried to get some Virtual Host to work with Tomcat (the webapps for each VirtualHost are outside Tomcat's directory). Instead of getting the generated JSP, I get the source, just like if the JSP was sent as text/plain and was not parsed by Tomcat. If I look at the 'mod_jk.log' log, I see requests for static HTML files, but I don't see any log information for my JSP files, so it look like mod_jk don't handle them, even if they should. Apache's config: LoadModule jk_modulelibexec/httpd/mod_jk.so AddModule mod_jk.c JkLogFile /usr/local/tomcat-4/logs/mod_jk.log JkLogLevel debug JkWorkersFile /usr/local/tomcat-4/conf/jk/workers.properties VirtualHost * ServerName my.host JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 DocumentRoot /path/to/the/web/app /VirtualHost Tomcat's config (server.xml): Host name=my.host debug=1 appBase=/path/to/the/web unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=clic_agent_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=clic_agent_catalina_log. suffix=.txt timestamp=true/ Context path= docBase=app debug=1/ /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Virtual host / web-apps / win2k and a BUG
I have been complaining about a problem I have had with Apache 2.0.43, Tomcat 4.1.18, Jk2 and Windows 2000. The problem stems from the fact that if you define multiple vhosts/web-apps listed in the httpd.conf file, then the last web-app will work 100%, but ONLY the last one. If you have multiple web-apps listed (before the last one), the JSP pages will only work if they are filed in the root directory of that web-app. If you put JSP's in any other sub-directory, they will NOT be displayed correctly. Only the source of the JSP page will show and that will be a MAJOR security problem for anyone using multiple web-apps on Apache-Tomcat on Windows 2000. This fix can be corrected if you put the URI information in the workers2.properties file. I have been told you do not need to do this if you put the Location tag inside the VirtualHost as I have shown ... but as I said this only works for the LAST web-app listed. I am 99.9% that this is a BUG with either Tomcat and/or Jk2 because of the nature of the problem and how I solved it. My next step is to take the same configuration and port it to Red Hat Linux 8.0 and see if the problem still happens. If it is a problem in Linux also, I do believe that this problem will be fixed faster. I can 100% of the time reproduce this problem, and have done so many times now. If anyone has any questions, please let me know. Thanks. Tom In the httpd.conf file, I had my virtual host configured as: VirtualHost * ServerName tomholmes.net ServerAlias test.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/test-error_log CustomLog logs/test-access_log common DirectoryIndex default.jsp index.jsp /VirtualHost Partial listing of the server.xml file had a Host tag setup as follows: Host name=test.tomholmes.net debug=0 appBase=wwwroot unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=test_log. suffix=.txt timestamp=true/ Context path= docBase=test debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=test_context_log. suffix=.txt timestamp=true/ /Context /Host Partial listing of the workers2.properties file as follows: [uri:/test] info=Example webapp in the default context. context=/test debug=0 [uri:/test/*.jsp] info=Extension mapping [uri:/test/*] info=Map the whole webapp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Virtual Hosts
Hi Chris, I am afraid we have two seperate issues. It seems like I solved your issues a few days ago and have a few new ones to work out. If you need any more help, send me a message directly and I will see how I can help. However, it seems so far that the answers you have already got will work. My issue is a little different, I have 3 virtual hosts and 3 different web-apps defined under httpd.conf, and I have 3 different Host and Context tags in server.xml. The JSP pages ONLY work with the last web-app defined. What I mean by 'works' is that the JSP pages get compiled into servlets, and then get served correctly by performing the business logic. Any other web-apps defined in the httpd.conf file do not work. What I mean by they 'do not work' is that the JSP pages do not get compiled into servlets, and do not execuet the business logic. Instead the JSP code shows up clear as day as if you were opening a text file. This is a major security problem, and I thought it was fixed. I've posted this issue at least on 3 different occasions now with no answers from anyone. It could be because this issue only happens on a Windows platform? I guess my next step is to test out this problem on Red Hat 8.0 Linux. If I can duplicate the same problem on that platform, I bet it will expedite a fix. Of course, if this isn't a bug in Tomcat, then I'd expect someone would point out that my configuration is wrong ... but that hasn't happened yet. Thanks. Tom - Original Message - From: Chris Schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 7:12 PM Subject: Re: Virtual Hosts Does any know what would cause this message: Directory index forbidden by rule: C:\apache\qv This is when I go the url http://mydomain.com/examples http://mydomain.com/examples/jsp/index.html works just fine I'm having the same problem. In the log files apache2/logs/COM_error_log I get a: Directory index forbidden by rule: Is there a definition in http.conf that I need to alter??? - Original Message - From: John Ruffin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 2:42 PM Subject: RE: Virtual Hosts I'm having a similar issue. I'm running tc4.1.18 on w2k server. http://localhost/examples works but http://mysite.com/examples doesn't. I searched the archives and found some information on creating a host file with the FQDN as the name but that didn't seem to work. Is there something else I need to change? Do I need to configure my firewall || router to let additional ports through? Right now, port:80 (http) serves static content with no problem. I'm new - thanks for your help. -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:16 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Virtual Hosts Tom, I could possibly use some of the information. I am running on the same releases: Apache 2.0.43, Tomcat 4.1.18 win2k. My problem is that I can't get to the directory of my virtualHosts. e.g. http://localhost/examples is not a problem BUT http://mysite.com/examples will not work. I just noticed an err in the log saying - Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples Can't find where to make my edits so the directory can be seen. Maybe this is a related issue? Either way if you know how to configure the systems so that the directory will be shown, I would much appreciated it! - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 11:37 PM Subject: Virtual Hosts I have finally discovered the problem on why some of my web-apps are working and some are not ... it is either my configuration or a MAJOR SERIOUS BUG with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000. I have included a copy of my httpd.conf file because it is the only one that matters here. The server.xml file has one Engine tag and then it has 4 different Host tags with 1 Context for each virtual host. When we have two virtual host/web-apps listed below ONLY the JSP pages work for the second web-app. They do NOT work for the first web-app listed. If I flip these virtual hosts around and then restart the Apache/Tomcat server, then the opposite is true. I then tried 3 web-apps and again ... ONLY the last web-app works and the JSP pages are correctly served. If anyone needs the other files: jk2.properties or workers2.properites or server.xml, please let me know and I can provide them. I am sure that these files are ok. Switching the Host tags around in the Engine tag did not seem to have any effect. I may try this same configuration on my Red Hat Linux 8.0 box and see
Re: Virtual Hosts
John, don't worry about it. I got a couple of people who have a similiar configuration (Apache 2.0.43, Tomcat 4.1.18, and Win2k) with the same setup looking into my configuration files. If they can have multiple virtual hosts with multiple contexts working, then it must be something with my configuration. With open source projects the later versions are usually more stable, but the old idiom 'new systems generate new problems' also applies as well. I'll just keep working on this and waiting for these projects to become more stable. Thanks. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 10:44 PM Subject: RE: Virtual Hosts Sorry, I would love to try and help, but I don't use JK2, so anything I suggested would be a wild guess and more likely to waste your time then solve anything. Not doubting you, but I would be very surprised if this was a problem/bug with Tomcat...I am sure there are people out there with working multi-Host/multi-Context configurations. I know my 4.1.18 test server (Solaris) has two Hosts configured with 2 hosts in each, but that uses JK. Have you looked in bugzilla to see if anyone else has reported this? John -Original Message- From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:36 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Virtual Hosts Hi Chris, I am afraid we have two seperate issues. It seems like I solved your issues a few days ago and have a few new ones to work out. If you need any more help, send me a message directly and I will see how I can help. However, it seems so far that the answers you have already got will work. My issue is a little different, I have 3 virtual hosts and 3 different web-apps defined under httpd.conf, and I have 3 different Host and Context tags in server.xml. The JSP pages ONLY work with the last web-app defined. What I mean by 'works' is that the JSP pages get compiled into servlets, and then get served correctly by performing the business logic. Any other web-apps defined in the httpd.conf file do not work. What I mean by they 'do not work' is that the JSP pages do not get compiled into servlets, and do not execuet the business logic. Instead the JSP code shows up clear as day as if you were opening a text file. This is a major security problem, and I thought it was fixed. I've posted this issue at least on 3 different occasions now with no answers from anyone. It could be because this issue only happens on a Windows platform? I guess my next step is to test out this problem on Red Hat 8.0 Linux. If I can duplicate the same problem on that platform, I bet it will expedite a fix. Of course, if this isn't a bug in Tomcat, then I'd expect someone would point out that my configuration is wrong ... but that hasn't happened yet. Thanks. Tom - Original Message - From: Chris Schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 7:12 PM Subject: Re: Virtual Hosts Does any know what would cause this message: Directory index forbidden by rule: C:\apache\qv This is when I go the url http://mydomain.com/examples http://mydomain.com/examples/jsp/index.html works just fine I'm having the same problem. In the log files apache2/logs/COM_error_log I get a: Directory index forbidden by rule: Is there a definition in http.conf that I need to alter??? - Original Message - From: John Ruffin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 2:42 PM Subject: RE: Virtual Hosts I'm having a similar issue. I'm running tc4.1.18 on w2k server. http://localhost/examples works but http://mysite.com/examples doesn't. I searched the archives and found some information on creating a host file with the FQDN as the name but that didn't seem to work. Is there something else I need to change? Do I need to configure my firewall || router to let additional ports through? Right now, port:80 (http) serves static content with no problem. I'm new - thanks for your help. -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:16 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Virtual Hosts Tom, I could possibly use some of the information. I am running on the same releases: Apache 2.0.43, Tomcat 4.1.18 win2k. My problem is that I can't get to the directory of my virtualHosts. e.g. http://localhost/examples is not a problem BUT http://mysite.com/examples will not work. I just noticed an err in the log saying - Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples Can't find where to make my edits so
Virtual Hosts
I have finally discovered the problem on why some of my web-apps are working and some are not ... it is either my configuration or a MAJOR SERIOUS BUG with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000. I have included a copy of my httpd.conf file because it is the only one that matters here. The server.xml file has one Engine tag and then it has 4 different Host tags with 1 Context for each virtual host. When we have two virtual host/web-apps listed below ONLY the JSP pages work for the second web-app. They do NOT work for the first web-app listed. If I flip these virtual hosts around and then restart the Apache/Tomcat server, then the opposite is true. I then tried 3 web-apps and again ... ONLY the last web-app works and the JSP pages are correctly served. If anyone needs the other files: jk2.properties or workers2.properites or server.xml, please let me know and I can provide them. I am sure that these files are ok. Switching the Host tags around in the Engine tag did not seem to have any effect. I may try this same configuration on my Red Hat Linux 8.0 box and see if the same problem happens. At least that way I could say the problem is cross-platform or just limitations on the Windows 2000 versions. If I can be of any help, or if you need any more information, please let me know. I ask that someone please look at this issue and my configuration and recommend a solution. I really want to use Apache and Tomcat together, but this is incredibly frustrating and should not be a problem. Thanks. Tom VirtualHost * ServerName test.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/test-error_log CustomLog logs/test-access_log common DirectoryIndex default.jsp index.jsp /VirtualHost VirtualHost * ServerName meditech.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech Location /*.jsp JkUriSet uri meditech.tomholmes.net JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/meditech-error_log CustomLog logs/meditech-access_log common DirectoryIndex default.jsp /VirtualHost httpd.conf Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSP won't compile Source Code Showing
I realize that this is a tough question, but I am sure someone has come acrosss this error before. I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with Jk2 on Win2K. The http://localhost/examples works fine. I have even created virtual hosts and set up those web-apps and they all work. Now some of my JSP pages work and some won't. The ones that do NOT work, seems like they do not get sent to Tomcat, it seems that the JSP source just loads and that is a big problem. This problem just started after everything was working for a few days. So, why is it that this is happening, and how can I fix itTIA! Tom -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP won't compile Source Code Showing
Here is some more information on this problem ... My JSP pages work in the root directory of my webapps, but in any sub-directory, they do not work. How messed up is that? It used to be that the JSP pages would work in ANY directory. If you need any more information on this issue, please let me know. Thanks. Tom - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 12:33 PM Subject: JSP won't compile Source Code Showing I realize that this is a tough question, but I am sure someone has come acrosss this error before. I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with Jk2 on Win2K. The http://localhost/examples works fine. I have even created virtual hosts and set up those web-apps and they all work. Now some of my JSP pages work and some won't. The ones that do NOT work, seems like they do not get sent to Tomcat, it seems that the JSP source just loads and that is a big problem. This problem just started after everything was working for a few days. So, why is it that this is happening, and how can I fix itTIA! Tom -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP won't compile Source Code Showing
ok, hopefully these properties will have someone provide me an answer to this problem. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 20, 2003 3:02 PM Subject: RE: JSP won't compile Source Code Showing I don't use JK2, so I can't help much, but my guess is the first thing someone who *can* help you is going to say is: post your properties file and the Context entry from server.xml. So, you might want to do that now, save some time. John -Original Message- From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 3:12 PM To: Tomcat Users List Subject: Re: JSP won't compile Source Code Showing Here is some more information on this problem ... My JSP pages work in the root directory of my webapps, but in any sub-directory, they do not work. How messed up is that? It used to be that the JSP pages would work in ANY directory. If you need any more information on this issue, please let me know. Thanks. Tom - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 12:33 PM Subject: JSP won't compile Source Code Showing I realize that this is a tough question, but I am sure someone has come acrosss this error before. I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with Jk2 on Win2K. The http://localhost/examples works fine. I have even created virtual hosts and set up those web-apps and they all work. Now some of my JSP pages work and some won't. The ones that do NOT work, seems like they do not get sent to Tomcat, it seems that the JSP source just loads and that is a big problem. This problem just started after everything was working for a few days. So, why is it that this is happening, and how can I fix itTIA! Tom -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] workers2.properties Description: Binary data httpd.conf Description: Binary data !-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Dilbert (IM Digital Services) -- Server port=8005 shutdown=SHUTDOWN debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=9/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=9/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved/ 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 Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=9 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Standalone defaultHost=localhost debug=9 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9 resourceName=UserDatabase/ Host name=localhost debug=9 appBase=wwwroot unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path= docBase=tomholmes debug=9 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_localhost_log. suffix=.txt timestamp=true/ /Context /Host Host name=www.tomholmes.net debug=9 appBase=wwwroot/tomholmes unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=tomholmes_log. suffix=.txt timestamp=true/ Context path= docBase= debug=9 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=tomholmes_tomholmes_log. suffix=.txt timestamp=true/ /Context /Host Host name=meditech.tomholmes.net debug=9
JSP Pages showing source
Ok, this problem is pissing me off, and from all the research I have done, I can't figure out what is happening. 1) Tomcat 4.1.18 and Apache 2.0.43 ARE talking to each using mod_jk2.dll on my Win2K machine. 2) The examples DO work with either my localhost and domain. 3) My JSP pages DO work if they don't have a lot of complexity. Everything was working just fine up until this afternoon, I had JSP Pages working, I had gotton 3 virtual hosts working with JSP pages, and I had even figured out how to get JNDI Datsources working with little difficulty. But I ddid something wrong along the way and something crashed in my JSP page ... so I made some changes, made a little tweak to the web.xml file, did some other changes, and lastly restarted the Apache 2.0.43 which runs Tomcat in-process. NOW some of my JSP pages work and some JSP pages flat-out just show the source ... they obviously do not get forwarded to Tomcat for processing. WHY? I can see from the Apache Error Log that the communication from Apache and Tomcat broke at some point in time, BUT WHY did it happen? WHAT CAUSED IT? There is no other errors in any of the txt files, log files, and there are no .out files anywhere. Something broke and I can't even find out what it was. [Mon Jan 20 00:15:33 2003] [notice] Child 2804: Acquired the start mutex. [Mon Jan 20 00:15:33 2003] [notice] Child 2804: Starting 250 worker threads. [Mon Jan 20 00:15:38 2003] [notice] shm.createSlot() Create 1 0x63 0x632000 [Mon Jan 20 00:15:38 2003] [notice] workerEnv.init() create slot epStat.0 [Mon Jan 20 00:15:40 2003] [error] channelSocket.open() connect failed localhost:8009 61 Unknown error [Mon Jan 20 00:15:40 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Mon Jan 20 00:15:40 2003] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error [Mon Jan 20 00:15:40 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1 [Mon Jan 20 00:15:40 2003] [notice] ajp13.done() close endpoint ajp13:localhost:8009 error_state 1 [Mon Jan 20 00:15:40 2003] [error] mod_jk.handler() Error connecting to tomcat 12 I tried to roll back what I had done, and I am not having much luck. I do not want to backtrack everything, or start over again. Why can't I just configure this once and be done with it? Why does one thing break, and then nothing works? Especially when everything was configured and working? I am at my wit's end!! Thanks for any help you can give me. Tom -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Win2K, Apache 2.0.43 and Tomcat 4.1.18
I have spent the last three days looking at all the JK2 docs, and all the sites, and even checked the archives of this list. I believe I have done my due diligence on doing research before posting this message, believe me it was a last resort. 1) Apache 2.0.43 was installed and works great on port 80 2) Tomcat 4.1.18 was installed and it works great on port 8080 if I run it as a standalone. I do want to integrate these two products and use Apache 2.0.43 on port 80. So, the httpd.conf works great with loading the module mod_jk2-2.0.43.dll, no problem there. The file $(tomcat_home)\conf\server.xml hasn't been changed at all, maybe it needs to be. I tried following the web-site instructions on: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ on setting up the jk2.properties my jk2.properties: these are the only properties set, everything else is commented out. This is supposed to be the configuration to make JNI work for AJP13. # Set the desired handler list # handler.list=apr,request,channelJni handler.list=apr,request,channelJni # 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 For size reasons, I am going to include the workers2.properties file which lives in the correct location of: ${apache_home}\conf\workers2.properties So, where is what works http://localhost:8080/examples all the JSP's work and all the Servlets work, but that is the local web-server of tomcat. I want the same thing to work with http://localhost/examples as well. So, what am I doing wrong ... because there is something not set correctly, but I am tearing my hair out by not being able to get this working. I am also going to include my error log so you can see what is going on with that. This is the error log from Apache 2.0.43. Please look at my files and see what you can do to help me with my mistakes. TIA. Tom workers2.properties Description: Binary data error.log Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat, and servlet testing in a multi-user environment
This is a common problem I have had at past employers. What we do now at my company is give everyone Tomcat, it's free right? We have what is called a Deploy Manager or Build Manager. Once a week the DM (or BM) will take the most recent checked-in code from Microsoft Visual Source Safe, move that to the Test server, and then we start Regression testing. We want to make sure everyone's code works with everyone else's. That one server can be started or stopped without bothering everyone else. By having everyone use VSS (or some other Source Control tool) we check in only working code. Everyone daily pulls down the latest code and in a way does their own regression testing on their own machine making sure their code works with everyone elses. The final say is when the BM or DM pulls does their Regression testing. At least once a week, we know everyone's code is working together. Tom - Original Message - From: Robert De Niro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 21, 2001 12:20 PM Subject: tomcat, and servlet testing in a multi-user environment Hi! We are several programmers who are programming servlets and jsp on our tomcat server, and each time we modify a servlet or a jsp, we have to restart tomcat so it takes in consideration our changes, and our problem is that we are working everyone from his computer at the same time, so when someone has made some changes and he wants to restart tomcat, it annoys the others who may be testing their servlet. So is there a way to make tomcat aware of new changes without restarting it or should we install a tomcat on everyone's machine ? Thanks! -- ___ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Make PC-to-Phone calls with Net2Phone. Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121
JDBC/JNDI DataSource
I looked through the archives first, so I think this question has been answered before. Does Tomcat support JDBC/JNDI DataSources and/or Connection Pooling? I heard a rumor that Tomcat 4.x is supposed to have support for this, but how long has it been out for, and is Tomcat 4.x stable? Currently, I amusing Orion as my App Server and I love it. It's small, convenient, can be easily moved around, and supports JNDI/JDBC Datasources. It's free to developers, but $1500 per Server for Commercial use. On two projects that I may be on, they are thinking about going to Tomcat 3.2.x. I really don't know that much about this server except that it's Open Source, can tie in with a few different web-servers (Apache, IIS, etc.), and that it can execute JSP, Servlets, and JavaBeans, but not EJB's ... is that correct? So, I didn't know if it would be worth it to test out Tomcat, or stick with my Orion for now. Thanks for any help. Tom