RE: tomcat not releasing db connections
I start my app using a Servlet. When I shut down Tomcat, this Servlet is called. In fact, Servlet's detroy method is called. In Servlet's destroy method, I free up the db connections and do some other resource cleanup. -Original Message- From: Kapil Sharma [mailto:[EMAIL PROTECTED] Sent: March 16, 2003 6:03 PM To: Tomcat Users List Subject: tomcat not releasing db connections Hi, I am using the default setting of tomcat with apache 1.3.27. Tomcat does not release the db connections. I have keepalive on in my apache settings. Are they related in some way to create this problem? kapil - 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: First simple questions
If you build jk2, you will find a workers2.properties in jk/build dir/sub-dir. I remember it does the load balancing using lb. -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 5:18 AM To: [EMAIL PROTECTED] Subject: First simple questions Hi, We try to configure load balancing using JK2 and our first question is about the syntax used. Should we use lb_factor OR lbfactor ? Second question : what is the range of this factor ? from 1 to ??? Thanks for your help. Eric LAGALISSE Coordinateur de production CASDEN - Banque Populaire Tel. : 01 64 80 30 35
RE: Apache - Tomcat connectors
Disagree. I think the simplicity of jk2 configuration (not building of jk2) confuses people. Because, we as developer, get used to think complicated. I did feel frustrated building jk2. Once I built it, I was surprised that the configuration is so simple. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 11:32 AM To: Tomcat Users List Subject: RE: Apache - Tomcat connectors I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: RE : Apache - Tomcat connectors
Build: Search archive you will find a link to a site that teaches you step by step how to build mod_jk2. Since it's Friday, why don't I just give you the link http://www.pubbitch.org/jboss/mod_jk2.html. Configure: Follow tomcat-connector's document. -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 12:12 PM To: Tomcat Users List Subject: RE : Apache - Tomcat connectors I'm not sure that configuring jk2 will be easier if we build it because someone can easily build something without knowing how to configure it. But i'm ready to believe you so provide us YOUR method to build this module and i'll write back onto this forum my point of view. I'm sure a lot of people are waiting for this build method. Eric LAGALISSE -Message d'origine- De : apachep2 [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 mars 2003 17:43 À : 'Tomcat Users List' Objet : RE: Apache - Tomcat connectors Disagree. I think the simplicity of jk2 configuration (not building of jk2) confuses people. Because, we as developer, get used to think complicated. I did feel frustrated building jk2. Once I built it, I was surprised that the configuration is so simple. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 11:32 AM To: Tomcat Users List Subject: RE: Apache - Tomcat connectors I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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]
FW: Delivery Status Notification (Failure)
I don't want my post receiving this kind crap. Please either unsubscribe from the list or turn off your auto-reply. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 5:01 PM To: [EMAIL PROTECTED] Subject: Delivery Status Notification (Failure) This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. [EMAIL PROTECTED] Reporting-MTA: dns;yensid.seattle.ceoworkz Received-From-MTA: dns;yensid.seattle.ceoworkz Arrival-Date: Mon, 10 Mar 2003 14:01:10 -0800 Final-Recipient: rfc822;[EMAIL PROTECTED] Action: failed Status: 5.2.1 ---BeginMessage--- Title: RE: Problem with Tomcat 4.1 and Apache 2 integration using mod_jk 2 I have had similar issue so I have to not to use UnixSocket. I would give it a try and hope it resolves my issue. -Original Message- From: Scott Marshall [mailto:[EMAIL PROTECTED]] Sent: March 10, 2003 4:49 PM To: Tomcat Users List Subject: RE: Problem with Tomcat 4.1 and Apache 2 integration using mod_jk 2 Can I ask if anyone has a different solution than this one? I have the same problem, and commenting everything sounds more like a work-around than a solution. Redhat 6.1 Tomcat 4.1.18 (using the coyote jk2 connector) Apache2.0.43 Thanks, Scott At 04:45 PM 3/7/2003 +0530, Madhan G Dennis wrote: Hi Everyone, I've solved it. All I had to do was comment out every line in jk2.properties and everything works fine :-) Thanks !! - Madhan -Original Message- From: Madhan G Dennis [mailto:[EMAIL PROTECTED]] Sent: Friday, March 07, 2003 3:41 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Problem with Tomcat 4.1 and Apache 2 integration using mod_jk2 Hi Everyone, I am trying to integrate Tomcat 4.1 and Apache 2. Everything works fine if I use the /examples webapp. However when I try to use my own webapp I get the following error. I would be very grateful if someone could help me out. In one mailing list I saw a post with the same problem which said the solution was to use port 8009. I tried that too in my server.xml and jk2.properties but it is still not working. Mar 7, 2003 3:18:00 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Mar 7, 2003 3:18:00 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Mar 7, 2003 3:18:01 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Mar 7, 2003 3:18:03 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.18 Mar 7, 2003 3:18:11 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Mar 7, 2003 3:18:11 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.start(JkMain.java:341) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java: 1056) at org.apache.catalina.core.StandardService.start(StandardService.java:5 06) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 9) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Mar 7, 2003 3:18:11 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.processProperty(JkMain.java:537) at org.apache.jk.server.JkMain.processProperties(JkMain.java:505) at org.apache.jk.server.JkMain.start(JkMain.java:346) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java: 1056) at org.apache.catalina.core.StandardService.start(StandardService.java:5 06) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 9) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at
[OT]RE: FW: Delivery Status Notification (Failure)
This notification was received after I replied to tomcat user list. There must be some one subscribed to the list while for some reason his email address was invalid. This guy shall unsubscribe his email address from the listing so as not to annoy other people on the list. -Original Message- From: Jens Skripczynski [mailto:[EMAIL PROTECTED] Sent: March 11, 2003 1:42 PM To: Tomcat Users List Subject: Re: FW: Delivery Status Notification (Failure) apachep2: I don't want my post receiving this kind crap. Please either unsubscribe from the list or turn off your auto-reply. This autoreply is sent by a MTA. To notify you, that the person does not exist (Please read the message). So as the mail account does not exist, you will not reach the person, but you reached all valid tomcat-user subscriber. You could contact please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) as you can read in your welcome email. Just for the phrase 'receiving this kind crap'. Ciao Jens Skripczynski -- E-Mail: skripczynski(at)mail2003(dot)skripczynski(dot)de at present, with the exception of tobacco, alcohol and television, most drugs are illegal, and yet our kids can always find them on every school corner -- Manu Chao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Tomcat 4.1 and Apache 2 integration using mod_jk 2
I have had similar issue so I have to not to use UnixSocket. I would give it a try and hope it resolves my issue. -Original Message- From: Scott Marshall [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 4:49 PM To: Tomcat Users List Subject: RE: Problem with Tomcat 4.1 and Apache 2 integration using mod_jk 2 Can I ask if anyone has a different solution than this one? I have the same problem, and commenting everything sounds more like a work-around than a solution. Redhat 6.1 Tomcat 4.1.18 (using the coyote jk2 connector) Apache2.0.43 Thanks, Scott At 04:45 PM 3/7/2003 +0530, Madhan G Dennis wrote: Hi Everyone, I've solved it. All I had to do was comment out every line in jk2.properties and everything works fine :-) Thanks !! - Madhan -Original Message- From: Madhan G Dennis [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 3:41 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Problem with Tomcat 4.1 and Apache 2 integration using mod_jk2 Hi Everyone, I am trying to integrate Tomcat 4.1 and Apache 2. Everything works fine if I use the /examples webapp. However when I try to use my own webapp I get the following error. I would be very grateful if someone could help me out. In one mailing list I saw a post with the same problem which said the solution was to use port 8009. I tried that too in my server.xml and jk2.properties but it is still not working. Mar 7, 2003 3:18:00 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Mar 7, 2003 3:18:00 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Mar 7, 2003 3:18:01 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Mar 7, 2003 3:18:03 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.18 Mar 7, 2003 3:18:11 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Mar 7, 2003 3:18:11 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.start(JkMain.java:341) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java: 1056) at org.apache.catalina.core.StandardService.start(StandardService.java:5 06) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 9) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Mar 7, 2003 3:18:11 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.processProperty(JkMain.java:537) at org.apache.jk.server.JkMain.processProperties(JkMain.java:505) at org.apache.jk.server.JkMain.start(JkMain.java:346) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java: 1056) at org.apache.catalina.core.StandardService.start(StandardService.java:5 06) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 9) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Mar 7, 2003 3:18:11 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009
RE: DataSource resource in GlobalNamingResources
It is just a scope thing. -Original Message- From: Jon Archer [mailto:[EMAIL PROTECTED] Sent: March 4, 2003 6:49 PM To: [EMAIL PROTECTED] Subject: DataSource resource in GlobalNamingResources I see a lot of to and fro over setting up database connection pooling as a JNDI resource. I only see solutions where the Resource and ResourceParams end up inside a Context block. I specifically want to have mine sit inside the GlobalNamingResources block. Has anyone managed to do this and if so, could you share your technique? Thanks in advance, Jon - 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: Default Page Apache/Tomcat/SSL
What I can think of is 1. call your index.jsp in index.html; or 2. put index.jsp in webapps/yourapp -Original Message- From: Maya Gadde [mailto:[EMAIL PROTECTED] Sent: March 3, 2003 6:47 PM To: [EMAIL PROTECTED] Subject: Default Page Apache/Tomcat/SSL Hi, We have Tomcat 4.1.12 configured with Apache 2.x + SSL. My webapps are installed in the webapp directory for tomcat. I want the default page loaded on one of my apps to be index.jsp instead of index.html. I have tried everything so far and have failed. My httpd.conf has the following listing: # # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi index.jsp /IfModule web.xml has the following: welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list It still doesn't load index.jsp. This is what I get when I try: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL I am using https://.../xyz Help!! -- Regards, Maya - 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: Problems configuring Tomcat with Apache using mod_jk2
Can you search archive? My bet is you didn't define [uri] in your workers2.properties. -Original Message- From: David Godfrey [mailto:[EMAIL PROTECTED] Sent: March 4, 2003 11:36 AM To: '[EMAIL PROTECTED]' Subject: Problems configuring Tomcat with Apache using mod_jk2 Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - 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: Problems configuring Tomcat with Apache using mod_jk2
David, I am confused. You said you use jk2. But in your log, I can only see mod_jk resuming normal operations while it should be mod_jk2/2.0.3-dev configured -- resume.. if you use jk2. -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: March 4, 2003 11:37 AM To: '[EMAIL PROTECTED]' Subject: Re: Problems configuring Tomcat with Apache using mod_jk2 You need to JkMount the /examples in httpd.conf. Something like JkMount */examples blah where blah is the name of your loadbalancer setup in workers.properties. It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.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]