Two applications, one in a sub folder - Urgent help needed
Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I think one of the possible sol might be mapping the location tag in httpd.conf to diff webapp , i dont know how to do so. Pl. help, -- Thanks and kind Regards, Abhishek jain
Tomcat current thread count
Hi, In our production enviroment I have a weird problem and I am trying to understand if / how can it be fixed. The error is like above: * * *INFO: Maximum number of threads (250) created for connector with address null and port 8080* * * * * * * *# A fatal error has been detected by the Java Runtime Environment:* *#* *# java.lang.OutOfMemoryError: requested 4096000 bytes for GrET in /BUILD_AREA/jdk6_16/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?* *#* *# Internal Error (allocation.inline.hpp:39), pid=15074, tid=326871952* *# Error: GrET in /BUILD_AREA/jdk6_16/hotspot/src/share/vm/utilities/growableArray.cpp* *#* *# JRE version: 6.0_16-b01* *# Java VM: Java HotSpot(TM) Server VM (14.2-b01 mixed mode linux-x86 )* *# An error report file with more information is saved as:* *# /home/oracle/hs_err_pid15074.log* *#* *# If you would like to submit a bug report, please visit:* *# **http://java.sun.com/webapps/bugreport/crash.jsp*http://java.sun.com/webapps/bugreport/crash.jsp *#* * * * * *#* *# A fatal error has been detected by the Java Runtime Environment:* *#* *# java.lang.OutOfMemoryError: requested 4096000 bytes for GrET in /BUILD_AREA/jdk6_16/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?* *#* *# Internal Error (allocation.inline.hpp:39), pid=15074, tid=326871952* *# Error: GrET in /BUILD_AREA/jdk6_16/hotspot/src/share/vm/utilities/growableArray.cpp* *#* *# JRE version: 6.0_16-b01* *# Java VM: Java HotSpot(TM) Server VM (14.2-b01 mixed mode linux-x86 )* *# An error report file with more information is saved as:* *# /home/oracle/hs_err_pid15074.log* *#* *# If you would like to submit a bug report, please visit:* *# **http://java.sun.com/webapps/bugreport/cr*ash.jsphttp://java.sun.com/webapps/bugreport/crash.jsp # The problem or the weirdness here is everytime we restart a tomcat server this number (250) drops down until it reaches 250 again. For example when I compare current thread count with busy threads I see 240 current and 24 busy. How can I have tomcat drop the current thread count? What can be done to stop the error message above. Thank you. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it
Re: Tomcat current thread count
I am on something right now like this. While running, Do a: netstat -n grep [your port number] | grep CALL_WAIT See if you are hung in CALL+WAIT status. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 4:01 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: 24
Re: Tomcat current thread count
Hi, The command: netstat -n grep 8080 | grep CALL_WAIT gives me nothing, yet when I update CALL_WAIT with TIME_WAIT I can see them. netstat -n grep 8080 | grep TIME_WAIT P.S: Just restarted the servers. As expected the thread counts dropped to normal. Now I am on 43 Current and 20 Busy. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 11:05 AM, Mick Knutson mknut...@baselogic.comwrote: I am on something right now like this. While running, Do a: netstat -n grep [your port number] | grep CALL_WAIT See if you are hung in CALL+WAIT status. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 4:01 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: 24
Re: Tomcat current thread count
TIME_WAIT is fine. Not an issue. That just means they are ready to take requests. CALL_WAIT is not good, if they stick around. If this is an OOM error, then have you started this server and attached javaVisualVM onto it to see what the threads and memory are doing? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 5:16 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: Hi, The command: netstat -n grep 8080 | grep CALL_WAIT gives me nothing, yet when I update CALL_WAIT with TIME_WAIT I can see them. netstat -n grep 8080 | grep TIME_WAIT P.S: Just restarted the servers. As expected the thread counts dropped to normal. Now I am on 43 Current and 20 Busy. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 11:05 AM, Mick Knutson mknut...@baselogic.com wrote: I am on something right now like this. While running, Do a: netstat -n grep [your port number] | grep CALL_WAIT See if you are hung in CALL+WAIT status. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 4:01 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: 24
Re: Two applications, one in a sub folder - Urgent help needed
No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. I think one of the possible sol might be mapping the location tag in httpd.conf to diff webapp , i dont know how to do so. IMO it's better to configure it at tomcat level. -- Regards, Paweł Zuzelski - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
On 25.06.2010 11:22, Mick Knutson wrote: TIME_WAIT is fine. Not an issue. That just means they are ready to take requests. CALL_WAIT is not good, if they stick around. If this is an OOM error, then have you started this server and attached javaVisualVM onto it to see what the threads and memory are doing? Not judging on whether that's the right approach, but you probably meant CLOSE_WAIT. There is no TCP state CALL_WAIT. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping issue
On 24/06/2010 19:24, laredotornado wrote: I tried this too and still got the 404. servlet-mapping servlet-nameMusicVenueServlet/servlet-name url-pattern/play/music/venues/*/url-pattern url-pattern/play/music/includes/venue-listing.jsp/url-pattern /servlet-mapping I also tried escaping the period in the file extension (\.jsp), but no luck. Any ideas how to troubleshoot the problem further? - Dave Does the JSP have any includes from the same directory, that might work when you're using the /* ending, but not when you're using the single JSP? If you put the mapping back to: /play/music/includes/venue-listing and call it with the params on the end, does it work then? p n828cl wrote: From: laredotornado [mailto:laredotorn...@gmail.com] Subject: Servlet mapping issue url-pattern/play/music/includes/venue-listing/url-pattern You left the .jsp off the end of venue-listing. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
Re: Two applications, one in a sub folder - Urgent help needed
hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. -- Thanks and kind Regards, Abhishek jain
Re: Two applications, one in a sub folder - Urgent help needed
On Fri, Jun 25, 2010 at 4:16 PM, abhishek jain abhishek.netj...@gmail.comwrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. sorry i think you are right i will give it a try. please , ignore previous email. will this still work? 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. Please ignore previous email - abhi
Re: Two applications, one in a sub folder - Urgent help needed
On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). p 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. signature.asc Description: OpenPGP digital signature
Re: Two applications, one in a sub folder - Urgent help needed
On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. Mark p 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Two applications, one in a sub folder - Urgent help needed
On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? - abhi
Re: Two applications, one in a sub folder - Urgent help needed
On 25/06/2010 11:56, Mark Thomas wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. Ah yes. Fail. p Mark p 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
Re: Tomcat current thread count
Im actually using Javamelody to monitor the apps. Yet still nothing. Any ideas ? Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 11:22 AM, Mick Knutson mknut...@baselogic.comwrote: TIME_WAIT is fine. Not an issue. That just means they are ready to take requests. CALL_WAIT is not good, if they stick around. If this is an OOM error, then have you started this server and attached javaVisualVM onto it to see what the threads and memory are doing? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 5:16 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: Hi, The command: netstat -n grep 8080 | grep CALL_WAIT gives me nothing, yet when I update CALL_WAIT with TIME_WAIT I can see them. netstat -n grep 8080 | grep TIME_WAIT P.S: Just restarted the servers. As expected the thread counts dropped to normal. Now I am on 43 Current and 20 Busy. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 11:05 AM, Mick Knutson mknut...@baselogic.com wrote: I am on something right now like this. While running, Do a: netstat -n grep [your port number] | grep CALL_WAIT See if you are hung in CALL+WAIT status. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 4:01 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: 24
Re: Two applications, one in a sub folder - Urgent help needed
On 25/06/2010 12:02, abhishek jain wrote: On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? Depends on which version of Tomcat you have. And whether you've configured it correctly. p - abhi signature.asc Description: OpenPGP digital signature
Re: Two applications, one in a sub folder - Urgent help needed
On 25/06/2010 12:19, Pid wrote: On 25/06/2010 12:02, abhishek jain wrote: On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? Depends on which version of Tomcat you have. Actually, overlapping context paths are always valid. Consider: / and /docs And whether you've configured it correctly. +1. Especially if you want /my/context/path Correct varies by version. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Two applications, one in a sub folder - Urgent help needed
On Fri, Jun 25, 2010 at 4:51 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 12:19, Pid wrote: On 25/06/2010 12:02, abhishek jain wrote: On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? Depends on which version of Tomcat you have. Actually, overlapping context paths are always valid. Consider: / and /docs And whether you've configured it correctly. +1. Especially if you want /my/context/path Correct varies by version. I am using tomcat 5.5 and cpanel is configuring it, but i think for this configuration i will have to go to file server.xml and add the additional context path row in the xml , something like: Host name=xxx appBase=/home/xxx/public_html Aliasxxx/Alias * Context path= reloadable=true docBase=/x/public_html debug=1/ Context path=/subfolder reloadable=true docBase=//public_html debug=1/ * Context path=/manager debug=0 privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager /Context /Host is this the right way? -- Thanks and kind Regards, Abhishek jain
Re: question for sso session replication in tomcat 6.0.26
On 24/06/2010 21:49, Okubo, Yasushi (TSD) wrote: My bad. I added *.jsp to the filter since it contains the path to index page as follows. Now, I am wondering when sso session id is created and replicated, is it when index.jsp was accessed or login.jsp was accessed? You had added it and have now removed it? The normal session id is created when you access a JSP for the first time, unless you have specifically configured JSPs to not create a session. A session can also be created manually by a Filter or a Servlet. The SSO session is created when the container login process completes authentication successfully. I'm not entirely clear on when SSO replication occurs - presumably only when there's a change like session invalidation or creation. p == index.jsp == % response.sendRedirect(/test/index.html?homepage=dynprop=Home); % -Original Message- From: Okubo, Yasushi (TSD) Sent: Thursday, June 24, 2010 1:13 PM To: 'Tomcat Users List' Subject: RE: question for sso session replication in tomcat 6.0.26 Hi Pid I started getting the following error upon login to one node onto cluster. Could you tell me what this mean is? Yasushi Jun 24, 2010 10:51:58 AM org.apache.catalina.ha.tcp.ReplicationValve sendReplicationMessage SEVERE: Unable to perform replication request. java.lang.NullPointerException at org.apache.catalina.ha.tcp.ReplicationValve.isRequestWithoutSessionChang e(ReplicationValve.java:590) at org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessag e(ReplicationValve.java:516) at org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(Repli cationValve.java:430) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java :363) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555 ) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java: 421) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 98) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpApr Protocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) at java.lang.Thread.run(Thread.java:619) -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 23, 2010 1:06 AM To: Tomcat Users List Subject: Re: question for sso session replication in tomcat 6.0.26 I'll have to look at the code, but maybe you're being affected by a recent bug whereby the session id changes after login but isn't then replicated. You might search bugzilla to see if this applies to 6.0.26. p On 22 Jun 2010, at 22:41, Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com wrote: Hi There were two cookies created by Tomcat 6.0.26. One is for SSO, and the other is for regular session between client and tomcat. JSESSIONID is working fine : it means session replication and failover, but not JSESSIONIDSSO. JSESSIONIDSSO is updated with new value upon relogin. yasushi JSESSIONIDSSO 65110434847FE0AA1F1EBF0EF0871D25 JSESSIONID 5CFE92814875C4DEFC554526147698A3.jvm2 -Original Message- From: Jon Brisbin [mailto:jon.bris...@npcinternational.com] Sent: Tuesday, June 22, 2010 2:17 PM To: Tomcat Users List Cc: Okubo, Yasushi (TSD) Subject: Re: question for sso session replication in tomcat 6.0.26 Are you using a jvmRoute setting on your BalancerMember definition in mod_proxy config and on the Engine/ element in server.xml? Your cookie would have the jvmRoute property added to the end of it (e.g. ALONGMD5HASH.server1) if so. From the Almighty Google: http://community.jboss.org/wiki/usingmodproxywithjboss Jon Brisbin Portal Webmaster NPC International, Inc. On Jun 22, 2010, at 3:48 PM, Okubo, Yasushi (TSD) wrote: Hi I downloaded apache apache v2.2.15 and compiled and installed, but the result was the same. Session sso replication looked like failed. Upon shutting down the node, it kicked me out of password protected area and needed to re-loin on the second node. On apache, I installed/enabled all modules including basic authentication etc. Is there any requirement on apache side or how the virtual host should be set up in httpd.conf to make sso failover work? Thanks, yasushi -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Tuesday, June 22, 2010 8:04 AM To: Tomcat Users List Subject: Re: question for sso session replication in tomcat 6.0.26 On 22/06/2010 15:56, Okubo, Yasushi (TSD) wrote: Hi Andrew In case of no failover, SSO works for all web
Re: Two applications, one in a sub folder - Urgent help needed
On 25/06/2010 12:27, abhishek jain wrote: On Fri, Jun 25, 2010 at 4:51 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 12:19, Pid wrote: On 25/06/2010 12:02, abhishek jain wrote: On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? Depends on which version of Tomcat you have. Actually, overlapping context paths are always valid. Consider: / and /docs And whether you've configured it correctly. +1. Especially if you want /my/context/path Correct varies by version. I am using tomcat 5.5 and cpanel is configuring it, but i think for this configuration i will have to go to file server.xml and add the additional context path row in the xml , something like: Host name=xxx appBase=/home/xxx/public_html appBase should not equal docBase. Aliasxxx/Alias * Context path= reloadable=true docBase=/x/public_html debug=1/ see above. Context path=/subfolder reloadable=true docBase=//public_html debug=1/ That's just the same docBase again. * Context path=/manager debug=0 privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager /Context /Host is this the right way? Let's start over. Exactly which version: 5.5.what? ... and which JVM version; also are you using HTTPD mod_jk in front of Tomcat - if so, what versions are they? p signature.asc Description: OpenPGP digital signature
Re: Tomcat current thread count
Oops. You are correct. I have been up for 2 weeks on this and need to sleep. But that was my issue. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 5:45 AM, Rainer Jung rainer.j...@kippdata.dewrote: On 25.06.2010 11:22, Mick Knutson wrote: TIME_WAIT is fine. Not an issue. That just means they are ready to take requests. CALL_WAIT is not good, if they stick around. If this is an OOM error, then have you started this server and attached javaVisualVM onto it to see what the threads and memory are doing? Not judging on whether that's the right approach, but you probably meant CLOSE_WAIT. There is no TCP state CALL_WAIT. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Two applications, one in a sub folder - Urgent help needed
From: Paweł Zuzelski [mailto:z...@xatka.net] Subject: Re: Two applications, one in a sub folder - Urgent help needed app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Actually, the path attribute must be removed - it's not allowed here. The path is derived from the name of the .xml file. Otherwise, the above configuration is exactly what the OP needs, and seems to be studiously avoiding. - 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.
RE: Tomcat current thread count
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count Im actually using Javamelody to monitor the apps. Yet still nothing. Any ideas ? Looks like you have two separate problems. The first is that your Tomcat-configured threads get stuck somewhere, so Tomcat keeps creating more until it hits the specified limit. Looking at a thread dump should show you where they are stuck so you can fix your webapp (or database) and correct that issue. The second problem is that the JVM blew up, possibly due to your webapp creating even more threads outside of the control of Tomcat, or perhaps eating up some other resource that provokes an out of memory condition. Again, a thread dump before the JVM dies should give you an idea of what's going on. All indications are that you have a poorly implemented webapp that's not managing resources properly. Also, you should always provide the exact Tomcat version you're using, and the platform you're running on. The only version information you provided (and that by accident) is the JVM level. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Does Tomcat cache pages it's executing?
I have some weird behavior going on, I think with my Tomcat 6.0.18 server in Eclipse. In my dynamic web project in Eclipse I had created a test index.jsp (TESTindex.jsp) page and had the original index.jsp page in the same web content folder. I was renaming these accordingly to TESTindex and index.jsp while testing. I completed testing and deleted the TESTindex.jsp page but when I run my app the deleted TESTindex.jsp page is still showing up as my index.jsp page. I did a SEARCH on my C: for the specific text in the TESTindex.jsp page but search did not find anything. Is there somewhere in Tomcat that is holding that TESTindex.jsp page as my index.jsp page? Is there a cache in Tomcat that I can clear out or something like that? This is driving me crazy. I have my original index.jsp in my project currently that I'm needing my web app to execute but it still goes to this TESTindex.jsp page as my index.jsp page. I've removed and added the project to Tomcat in the Servers tab in Eclipse and I've rebooted Tomcat several times but to no avail. Any suggestions or direction here would be appreciated. Melinda Savoy Sr. Programmer Analyst, ERP Systems Innovative Technology Solutions Texas Health Resources 600 E. Lamar Blvd, Ste 301, Arlington TX 76011 melindasa...@texashealth.orgmailto:melindasa...@texashealth.org Texas Health Resources: Arlington Memorial, Harris Methodist and Presbyterian Hospitals A shared mission and now a shared name. The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system.
Re: Does Tomcat cache pages it's executing?
On 25/06/2010 15:03, Savoy, Melinda wrote: I have some weird behavior going on, I think with my Tomcat 6.0.18 server in Eclipse. In my dynamic web project in Eclipse I had created a test index.jsp (TESTindex.jsp) page and had the original index.jsp page in the same web content folder. I was renaming these accordingly to TESTindex and index.jsp while testing. I completed testing and deleted the TESTindex.jsp page but when I run my app the deleted TESTindex.jsp page is still showing up as my index.jsp page. I did a SEARCH on my C: for the specific text in the TESTindex.jsp page but search did not find anything. Is there somewhere in Tomcat that is holding that TESTindex.jsp page as my index.jsp page? Is there a cache in Tomcat that I can clear out or something like that? This is driving me crazy. I have my original index.jsp in my project currently that I'm needing my web app to execute but it still goes to this TESTindex.jsp page as my index.jsp page. I've removed and added the project to Tomcat in the Servers tab in Eclipse and I've rebooted Tomcat several times but to no avail. Any suggestions or direction here would be appreciated. So you had two files, you've switched them by renaming them, but the earlier version is still being rendered? Tomcat parses a JSP file, generates a Servlet and compiles it - whcih responds on the URL of the JSP. You can find these classes in the tomcat/work directory structure. Note: Eclipse make not have put this in an obvious place, so you may have to hunt for it, if you want to clear out those classes. You could try opening the correct index.jsp and making a small edit and resaving it, the new timestamp might kick off an update of the generated class. p Melinda Savoy Sr. Programmer Analyst, ERP Systems Innovative Technology Solutions Texas Health Resources 600 E. Lamar Blvd, Ste 301, Arlington TX 76011 melindasa...@texashealth.orgmailto:melindasa...@texashealth.org Texas Health Resources: Arlington Memorial, Harris Methodist and Presbyterian Hospitals A shared mission and now a shared name. The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. signature.asc Description: OpenPGP digital signature
Re: Does Tomcat cache pages it's executing?
On 6/25/2010 10:03 AM, Savoy, Melinda wrote: I have some weird behavior going on, I think with my Tomcat 6.0.18 server in Eclipse. In my dynamic web project in Eclipse I had created a test index.jsp (TESTindex.jsp) page and had the original index.jsp page in the same web content folder. I was renaming these accordingly to TESTindex and index.jsp while testing. I completed testing and deleted the TESTindex.jsp page but when I run my app the deleted TESTindex.jsp page is still showing up as my index.jsp page. I did a SEARCH on my C: for the specific text in the TESTindex.jsp page but search did not find anything. Is there somewhere in Tomcat that is holding that TESTindex.jsp page as my index.jsp page? Is there a cache in Tomcat that I can clear out or something like that? This is driving me crazy. I have my original index.jsp in my project currently that I'm needing my web app to execute but it still goes to this TESTindex.jsp page as my index.jsp page. I've removed and added the project to Tomcat in the Servers tab in Eclipse and I've rebooted Tomcat several times but to no avail. Any suggestions or direction here would be appreciated. It's probably your browser cache rather than tomcat, so try clearing it. Undeploying your webapp and deleting its work directory would clear out anything tomcat might have left laying about. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
Hi, My system consists of: Rhel 5.3 Tomcat v 6.0.26 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) I do not see anything else in the catalina.out or any other log file apart from the one I have posted before. What would be the possible ways of finding where the problem lies ? Thanks Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 3:58 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count Im actually using Javamelody to monitor the apps. Yet still nothing. Any ideas ? Looks like you have two separate problems. The first is that your Tomcat-configured threads get stuck somewhere, so Tomcat keeps creating more until it hits the specified limit. Looking at a thread dump should show you where they are stuck so you can fix your webapp (or database) and correct that issue. The second problem is that the JVM blew up, possibly due to your webapp creating even more threads outside of the control of Tomcat, or perhaps eating up some other resource that provokes an out of memory condition. Again, a thread dump before the JVM dies should give you an idea of what's going on. All indications are that you have a poorly implemented webapp that's not managing resources properly. Also, you should always provide the exact Tomcat version you're using, and the platform you're running on. The only version information you provided (and that by accident) is the JVM level. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
Can you run jvisualvm.exe against it? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 10:31 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: Hi, My system consists of: Rhel 5.3 Tomcat v 6.0.26 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) I do not see anything else in the catalina.out or any other log file apart from the one I have posted before. What would be the possible ways of finding where the problem lies ? Thanks Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 3:58 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count Im actually using Javamelody to monitor the apps. Yet still nothing. Any ideas ? Looks like you have two separate problems. The first is that your Tomcat-configured threads get stuck somewhere, so Tomcat keeps creating more until it hits the specified limit. Looking at a thread dump should show you where they are stuck so you can fix your webapp (or database) and correct that issue. The second problem is that the JVM blew up, possibly due to your webapp creating even more threads outside of the control of Tomcat, or perhaps eating up some other resource that provokes an out of memory condition. Again, a thread dump before the JVM dies should give you an idea of what's going on. All indications are that you have a poorly implemented webapp that's not managing resources properly. Also, you should always provide the exact Tomcat version you're using, and the platform you're running on. The only version information you provided (and that by accident) is the JVM level. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat current thread count
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count What would be the possible ways of finding where the problem lies ? As previously stated, take a thread dump *before* the JVM crashes and find out what your threads are stuck on. Your monitoring tool probably may have that capability built-in; if it doesn't, look here: http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Does Tomcat cache pages it's executing?
Thank you to David and Pid for the responses. It is very much appreciated. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, June 25, 2010 9:24 AM To: Tomcat Users List Subject: Re: Does Tomcat cache pages it's executing? On 25/06/2010 15:03, Savoy, Melinda wrote: I have some weird behavior going on, I think with my Tomcat 6.0.18 server in Eclipse. In my dynamic web project in Eclipse I had created a test index.jsp (TESTindex.jsp) page and had the original index.jsp page in the same web content folder. I was renaming these accordingly to TESTindex and index.jsp while testing. I completed testing and deleted the TESTindex.jsp page but when I run my app the deleted TESTindex.jsp page is still showing up as my index.jsp page. I did a SEARCH on my C: for the specific text in the TESTindex.jsp page but search did not find anything. Is there somewhere in Tomcat that is holding that TESTindex.jsp page as my index.jsp page? Is there a cache in Tomcat that I can clear out or something like that? This is driving me crazy. I have my original index.jsp in my project currently that I'm needing my web app to execute but it still goes to this TESTindex.jsp page as my index.jsp page. I've removed and added the project to Tomcat in the Servers tab in Eclipse and I've rebooted Tomcat several times but to no avail. Any suggestions or direction here would be appreciated. So you had two files, you've switched them by renaming them, but the earlier version is still being rendered? Tomcat parses a JSP file, generates a Servlet and compiles it - whcih responds on the URL of the JSP. You can find these classes in the tomcat/work directory structure. Note: Eclipse make not have put this in an obvious place, so you may have to hunt for it, if you want to clear out those classes. You could try opening the correct index.jsp and making a small edit and resaving it, the new timestamp might kick off an update of the generated class. p Melinda Savoy Sr. Programmer Analyst, ERP Systems Innovative Technology Solutions Texas Health Resources 600 E. Lamar Blvd, Ste 301, Arlington TX 76011 melindasa...@texashealth.orgmailto:melindasa...@texashealth.org Texas Health Resources: Arlington Memorial, Harris Methodist and Presbyterian Hospitals A shared mission and now a shared name. The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
You can force it by: set JAVA_OPTS=%JAVA_OPTS% -*XX:+HeapDumpOnCtrlBreak*-XX:+HeapDumpOnOutOfMemoryError --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Jun 25, 2010 at 10:56 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count What would be the possible ways of finding where the problem lies ? As previously stated, take a thread dump *before* the JVM crashes and find out what your threads are stuck on. Your monitoring tool probably may have that capability built-in; if it doesn't, look here: http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat current thread count
From: Mick Knutson [mailto:mknut...@baselogic.com] Subject: Re: Tomcat current thread count You can force it by: set JAVA_OPTS=%JAVA_OPTS% -*XX:+HeapDumpOnCtrlBreak*-XX:+HeapDumpOnOutOfMemoryError No, that gets you a Java heap dump, not a thread dump - not of interest here. The out-of-memory error that brought down the JVM was for the C heap of the process space, not the Java heap. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
Hi, Thanks for the useful link. I have gotten a thread dump using kill -3 . You can find it in the attached file. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 4:56 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count What would be the possible ways of finding where the problem lies ? As previously stated, take a thread dump *before* the JVM crashes and find out what your threads are stuck on. Your monitoring tool probably may have that capability built-in; if it doesn't, look here: http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org 2010-06-25 17:11:59 Full thread dump Java HotSpot(TM) Server VM (14.2-b01 mixed mode): Thread-74 daemon prio=10 tid=0x0a971c00 nid=0x35a6 waiting on condition [0x6ab51000] java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at com.serhs.agents.mikitravel.robots.JAXBPoolTimer.run(JAXBPoolTimer.java:37) Thread-73 daemon prio=10 tid=0x0a4e1000 nid=0x35a5 waiting on condition [0x6abf2000] java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at com.serhs.agents.mikitravel.robots.MappingCacheTimer.run(MappingCacheTimer.java:41) http-8080-6 daemon prio=10 tid=0x0a0a6000 nid=0x34f2 in Object.wait() [0x6aa0c000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x8b779e08 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at java.lang.Object.wait(Object.java:485) at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458) - locked 0x8b779e08 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484) at java.lang.Thread.run(Thread.java:619) http-8080-5 daemon prio=10 tid=0x09fc2000 nid=0x4e79 in Object.wait() [0x6aba1000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x8b346d78 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at java.lang.Object.wait(Object.java:485) at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458) - locked 0x8b346d78 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484) at java.lang.Thread.run(Thread.java:619) http-8080-4 daemon prio=10 tid=0x0a7ed400 nid=0x4e77 in Object.wait() [0x6aa5d000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x8b348f10 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at java.lang.Object.wait(Object.java:485) at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458) - locked 0x8b348f10 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484) at java.lang.Thread.run(Thread.java:619) http-8080-3 daemon prio=10 tid=0x0a7ebc00 nid=0x4e76 in Object.wait() [0x6aaae000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x8b348f90 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at java.lang.Object.wait(Object.java:485) at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458) - locked 0x8b348f90 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484) at java.lang.Thread.run(Thread.java:619) Timer-9 daemon prio=10 tid=0x0a117800 nid=0x468a in Object.wait() [0x6ac43000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x8ad8ef20 (a java.util.TaskQueue) at java.util.TimerThread.mainLoop(Timer.java:509) - locked 0x8ad8ef20 (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:462) Timer-8 daemon prio=10 tid=0x0a5b3400 nid=0x45e1 in Object.wait() [0x6ac94000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x76360980 (a
Re: Does Tomcat cache pages it's executing?
2010/6/25 Pid p...@pidster.com: You could try opening the correct index.jsp and making a small edit and resaving it, the new timestamp might kick off an update of the generated class. That should be it. Tomcat recompiles a JSP only if its timestamp is newer than the one of the class file created from that JSP. IIRC, in the Servers panel in Eclipse IDE in context menu on a server, there is Clean command that cleans tomcat working directory and republishes the webapps. Removing the webapp from the server + Publish + put it back on the server will also do the trick. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saurabh, On 6/25/2010 1:23 AM, Saurabh Agrawal wrote: Please refer first line in following API doc, you will find that two problems are reported in it and option suggested us TimeBasedRollingPolicy. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html DailyRollingFileAppender has been observed to exhibit synchronization issues and data loss. Oh, I had never seen that. Good to know. You're still using an exotic appender, though. The one I see in log4j-extras is org.apache.logging.rolling.RollingFileAppender You ought to be able to just put apache-log4j-x.y.z.jar and apache-log4j-extras-x.y.z.jar into WEB-INF/lib and it should work. Are you trying to configure app-based logging, or do you also want server-based logging to use log4j? If the latter, you need both of those JAR files in Tomcat's lib directory, too. Can you post more of the stack trace that you see? That one looked incomplete. Copied apache-log4j-extras-1.0.jar in ~/WEB-INF/lib directory, where my old log4j is present. I've put both Jars in TOMCAT_HOME/webapps/cp/WEB-INF/lib/ directory. Restarting tomcat (catalina.out) shows that it has picked up both the JAR files, still it is saying that Failing to load class This confirms that above path TOMCAT_HOME/webapps/cp/WEB-INF/lib/ is set in PATH variable. The PATH environment variable is not relevant, here. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwkz/MACgkQ9CaO5/Lv0PDbaQCglslKES/aPLlpsUhorqAvLyXD 75EAn3kJTPqfDvXs4yhvmKl3pcdeRmCz =zpYi -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Özgür, On 6/25/2010 11:39 AM, Ozgur Ozdemircili wrote: Thanks for the useful link. I have gotten a thread dump using kill -3 . You can find it in the attached file. It looks like almost everything is idle, here. Can you wait a while, when you estimate you might be close to encountering this error, and then take another thread dump? That one would probably be more interesting. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk0H4ACgkQ9CaO5/Lv0PBn8wCeO/6Hot7d6IUsmhR960kwh8EN BZYAn14PHLLP4vdUDUP6OQ0EXyLiZmj5 =KX94 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Self-Contained Web Applications
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the server's lib directory. As it stands, now, all webapps must share the same version of the same driver, and the main installation of Tomcat (or scion, when using CATALINA_BASE) must be modified from the default in order to deploy your application :( It would seem to me that, if the webapps's META-INF/context.xml file defines a JNDI Resource, that the server could use the context's libraries to initialize those resources. If the above were possible, then a web application could really be self-contained. That would allow different webapps deployed onto the same server to use different JDBC drivers for the same (type of) database, which would be really nice. Can any of the Tomcat wonks comment on the possibility of using the WebappClassLoader to initialize JNDI resources? I suppose this would also touch on the subject of JNDI DataSources never being closed, since using the WebappClassLoader without closing those resources would create a costly resource leak. Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk0wQACgkQ9CaO5/Lv0PC1CACglg/R97/A6aZ5DD90g4gEM72M mu4An3CYQVCgVgHVwkD3Pw4HpuDE5g1Z =n95V -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
On 25.06.2010 17:51, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Özgür, On 6/25/2010 11:39 AM, Ozgur Ozdemircili wrote: Thanks for the useful link. I have gotten a thread dump using kill -3 . You can find it in the attached file. It looks like almost everything is idle, here. Can you wait a while, when you estimate you might be close to encountering this error, and then take another thread dump? That one would probably be more interesting. Yup, or maybe write a small shell script, sending the signal every 5 minutes or maybe even once every minute in order to make it likely to catch the problematic status. Be prepared for enough space in the logs directory though. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
Hi, I probably wont be able to get the one close to crash but the jstack.out in the attached file contains the output while the applicaction is receiving requests. Hope it will be more helpful. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Fri, Jun 25, 2010 at 5:51 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Özgür, On 6/25/2010 11:39 AM, Ozgur Ozdemircili wrote: Thanks for the useful link. I have gotten a thread dump using kill -3 . You can find it in the attached file. It looks like almost everything is idle, here. Can you wait a while, when you estimate you might be close to encountering this error, and then take another thread dump? That one would probably be more interesting. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk0H4ACgkQ9CaO5/Lv0PBn8wCeO/6Hot7d6IUsmhR960kwh8EN BZYAn14PHLLP4vdUDUP6OQ0EXyLiZmj5 =KX94 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
Aaron Clark wrote: The RDP port is in the registry. It's at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber Bug or not, it only happens when Tomcat is running. Maybe. But what people here are telling you is that - one process cannot change the port another process is listening on. If it can, then this is a bug of the O.S. - if the RDP process changes the port it itself is listening on, then it sounds like a problem of the RDP service/program. - if one process is already listening on one port (like Tomcat is listening on port 80 in this case), then another process cannot open the same port to listen on. If it can, then it is (again) a problem of the O.S. - we've run a lot of Tomcats on a lot of Windows, and never heard of a problem like that. So all in all, do you not want to re-examine your assumptions ? (not saying this to sound nasty or send you back to the MS guys; just trying to be logical, and to look at the more probable causes first, before looking at the less probable ones) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping issue
Did you mean to say, call it WITHOUT the params at the end? If so, when I did that, everything mapped fine. However, I do need the query params to process the page correctly. Sadly, this url-pattern didn't work servlet-mapping servlet-nameMusicVenueServlet/servlet-name url-pattern/play/music/venues/*/url-pattern url-pattern/play/music/includes/venue-listing*/url-pattern /servlet-mapping Note the * after venue-listing in an attempt to capture any query params. Any ideas how to write the url-pattern so that I can catch additional query params? Thanks, - Dave Pid * wrote: On 24/06/2010 19:24, laredotornado wrote: I tried this too and still got the 404. servlet-mapping servlet-nameMusicVenueServlet/servlet-name url-pattern/play/music/venues/*/url-pattern url-pattern/play/music/includes/venue-listing.jsp/url-pattern /servlet-mapping I also tried escaping the period in the file extension (\.jsp), but no luck. Any ideas how to troubleshoot the problem further? - Dave Does the JSP have any includes from the same directory, that might work when you're using the /* ending, but not when you're using the single JSP? If you put the mapping back to: /play/music/includes/venue-listing and call it with the params on the end, does it work then? p n828cl wrote: From: laredotornado [mailto:laredotorn...@gmail.com] Subject: Servlet mapping issue url-pattern/play/music/includes/venue-listing/url-pattern You left the .jsp off the end of venue-listing. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Servlet-mapping-issue-tp28984816p28994244.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Self-Contained Web Applications
On 25/06/2010 17:02, Christopher Schultz wrote: All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the server's lib directory. As it stands, now, all webapps must share the same version of the same driver, and the main installation of Tomcat (or scion, when using CATALINA_BASE) must be modified from the default in order to deploy your application :( You can define a lib dir under CATALINA_BASE and Tomcat will load jars from there by preference over CATALINA_HOME, no? If it doesn't do it by default you can modify catalina.properties so it does. It would seem to me that, if the webapps's META-INF/context.xml file defines a JNDI Resource, that the server could use the context's libraries to initialize those resources. You can define a DataSource in context.xml - that's why Realm has localDataSource. Or do you mean something else? p If the above were possible, then a web application could really be self-contained. That would allow different webapps deployed onto the same server to use different JDBC drivers for the same (type of) database, which would be really nice. Can any of the Tomcat wonks comment on the possibility of using the WebappClassLoader to initialize JNDI resources? I suppose this would also touch on the subject of JNDI DataSources never being closed, since using the WebappClassLoader without closing those resources would create a costly resource leak. Thanks, -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
RE: Servlet mapping issue
From: laredotornado [mailto:laredotorn...@gmail.com] Subject: Re: Servlet mapping issue Did you mean to say, call it WITHOUT the params at the end? No, leave the params in, but omit the .jsp suffix in the URL. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
SSL and non SSL configuration on tomcat 6.0.26, confused
Our environment: Unix Solaris 5.9 Tomcat 6.0.26 JVM 1.6.20 Our application runs in two frameworks. One uses https one does not. I am trying to configure the tomcat connectors to work but when I get it working in one framework it does not work in the other. *I have been told we do not need to 'handle' SSL totally as this is handled by our load balancers. Not sure what these means*. For example: In one framework we'll get permission denied errors and the other will work. If we change things around the opposite occurs but instead of permission errors we get invalid certificate error. The tomcat documentation on connectors does not describe the options very well. Connector port=80 protocol=HTTP/1.1 connectionTimeout=2/ Connector port=443 protocol=HTTP/1.1 SSLEnabled=false maxThreads=150 scheme=https secure=false clientAuth=false sslProtocol=TLS/ The above connectors work with the http framework but gives me the mixed content warning in IE because some requests are http and some https. It's obvious I have not worked with SSL very much. Any help would be greatly appreciated. Regards, John Ranaudo
Re: Servlet mapping issue
2010/6/24 laredotornado laredotorn...@gmail.com: I tried this too and still got the 404. servlet-mapping servlet-nameMusicVenueServlet/servlet-name url-pattern/play/music/venues/*/url-pattern url-pattern/play/music/includes/venue-listing.jsp/url-pattern /servlet-mapping I also tried escaping the period in the file extension (\.jsp), but no luck. Any ideas how to troubleshoot the problem further? - Dave Mapping of exact jsp path to a servlet must work. That is how precompiled JSP pages are added to a web application: they are compiled into servlets and servlets are added into web.xml. See the jsp-examples webapp in Tomcat 5.5 for an example of such configuration. You have to specify the exact path as is. Escaping ('\.') is not needed and will not work. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SSL and non SSL configuration on tomcat 6.0.26, confused
On 25/06/2010 17:56, John-Paul Ranaudo wrote: Our environment: Unix Solaris 5.9 Tomcat 6.0.26 JVM 1.6.20 Our application runs in two frameworks. One uses https one does not. I am trying to configure the tomcat connectors to work but when I get it working in one framework it does not work in the other. *I have been told we do not need to 'handle' SSL totally as this is handled by our load balancers. Not sure what these means*. That usually means that the load-balancer is decoding the SSL connection and passing an unencrypted connection through to the servers in the cluster, which then don't need to repeat the effort. For example: In one framework we'll get permission denied errors and the other will work. If we change things around the opposite occurs but instead of permission errors we get invalid certificate error. The tomcat documentation on connectors does not describe the options very well. This link, or another one? http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL Support Connector port=80 protocol=HTTP/1.1 connectionTimeout=2/ Connector port=443 protocol=HTTP/1.1 SSLEnabled=false maxThreads=150 scheme=https secure=false clientAuth=false sslProtocol=TLS/ Looks like a few odd things going on there. SSLEnabled=false secure=false You'll need to set at least one of those to true. If the connector on 443 is supposed to be decoding SSL connections there's a lot more config you'll need too. See the link above. The above connectors work with the http framework but gives me the mixed content warning in IE because some requests are http and some https. That's nothing to do with the Connectors per se. If your web app is mixing references to secure and insecure pages, you'll get that warning. You need to fix your app so it does the right thing. p It's obvious I have not worked with SSL very much. Any help would be greatly appreciated. Regards, John Ranaudo signature.asc Description: OpenPGP digital signature
RE: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
No offense taken. If I could handle this problem myself I wouldn't be asking for others help. I don't understand how a bug in the OS would cause the RDP port to change if (3rd Party Application A) is running. Aaron K. Clark Senior Technician A+, Network+ CCNA Intellicom, Inc (308) 237 - 0684 x 228 (308) 234 - 6645 (Fax) 1700 2nd Ave Kearney, Ne 68847 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, June 25, 2010 11:35 AM To: Tomcat Users List Subject: Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port Aaron Clark wrote: The RDP port is in the registry. It's at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber Bug or not, it only happens when Tomcat is running. Maybe. But what people here are telling you is that - one process cannot change the port another process is listening on. If it can, then this is a bug of the O.S. - if the RDP process changes the port it itself is listening on, then it sounds like a problem of the RDP service/program. - if one process is already listening on one port (like Tomcat is listening on port 80 in this case), then another process cannot open the same port to listen on. If it can, then it is (again) a problem of the O.S. - we've run a lot of Tomcats on a lot of Windows, and never heard of a problem like that. So all in all, do you not want to re-examine your assumptions ? (not saying this to sound nasty or send you back to the MS guys; just trying to be logical, and to look at the more probable causes first, before looking at the less probable ones) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org CONFIDENTIALITY NOTICE: This communication and any files or attachments transmitted with it may contain information that is confidential, privileged and exempt from disclosure under applicable law. It is intended solely for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by reply E-mail and destroy all copies of the original message. Additionally, we will take the appropriate action to avoid sending you an unintended E-mail in the future. Thank you for your cooperation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SSL and non SSL configuration on tomcat 6.0.26, confused
Thanks for the reply. Ok, so I am assuming I do not have to setup SSL (certificates etc) since my load balancer is decoding the connection. So even if the load balancer is decoding the connection I still have to have SSLEnabled=true? However if I do, does this not make Tomcat try and decode the connection? *Which is the root of my problem. How to use the HTTPS protocol without having Tomcat decrypt the connection since the load balancer has done this for me. * The link to the documentation is correct. However the properties of the connector are confusing to me. For example SSLEnabled if fairly obvious but secure it confusing. Not sure under what context I need to set this. The application always uses relative paths so whatever protocol the framework is using will be what is returned in the page. I have also tried setting the redirect port thinking I can redirect requests to 443 to the port 80 internally and scheme to 'https'. This actually had the effect of making one framework (the one with https) work but broke the other. Regards, John On Fri, Jun 25, 2010 at 1:18 PM, Pid p...@pidster.com wrote: On 25/06/2010 17:56, John-Paul Ranaudo wrote: Our environment: Unix Solaris 5.9 Tomcat 6.0.26 JVM 1.6.20 Our application runs in two frameworks. One uses https one does not. I am trying to configure the tomcat connectors to work but when I get it working in one framework it does not work in the other. *I have been told we do not need to 'handle' SSL totally as this is handled by our load balancers. Not sure what these means*. That usually means that the load-balancer is decoding the SSL connection and passing an unencrypted connection through to the servers in the cluster, which then don't need to repeat the effort. For example: In one framework we'll get permission denied errors and the other will work. If we change things around the opposite occurs but instead of permission errors we get invalid certificate error. The tomcat documentation on connectors does not describe the options very well. This link, or another one? http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL Support Connector port=80 protocol=HTTP/1.1 connectionTimeout=2/ Connector port=443 protocol=HTTP/1.1 SSLEnabled=false maxThreads=150 scheme=https secure=false clientAuth=false sslProtocol=TLS/ Looks like a few odd things going on there. SSLEnabled=false secure=false You'll need to set at least one of those to true. If the connector on 443 is supposed to be decoding SSL connections there's a lot more config you'll need too. See the link above. The above connectors work with the http framework but gives me the mixed content warning in IE because some requests are http and some https. That's nothing to do with the Connectors per se. If your web app is mixing references to secure and insecure pages, you'll get that warning. You need to fix your app so it does the right thing. p It's obvious I have not worked with SSL very much. Any help would be greatly appreciated. Regards, John Ranaudo
Re: Tomcat current thread count
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Özgür, On 6/25/2010 12:21 PM, Ozgur Ozdemircili wrote: I probably wont be able to get the one close to crash but the jstack.out in the attached file contains the output while the applicaction is receiving requests. Hope it will be more helpful. The list stripped your attachment. Try giving it a .txt extension. Sounds stupid, but it appears that works sometimes. I'm guessing that not much help will come from a thread dump during some normal processing... you'll just see your code running normally. What usually trips-up threads is deadlock or long-running requests piling up. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk758ACgkQ9CaO5/Lv0PBnUACfW2XW2+jZc93diac3BrOGzVWh sQQAnjILLLv0n1lX4lFtvN8FPg0cbABy =jm31 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Self-Contained Web Applications
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 6/25/2010 12:44 PM, Pid wrote: On 25/06/2010 17:02, Christopher Schultz wrote: All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the server's lib directory. As it stands, now, all webapps must share the same version of the same driver, and the main installation of Tomcat (or scion, when using CATALINA_BASE) must be modified from the default in order to deploy your application :( You can define a lib dir under CATALINA_BASE and Tomcat will load jars from there by preference over CATALINA_HOME, no? Only if you modify catalina.policy. If it doesn't do it by default you can modify catalina.properties so it does. Right: I'm trying to avoid this. It would be cool if a WAR file using container-managed DataSource could be deployed into a factory-fresh Tomcat install. Specifically, without dropping the JDBC library JAR file into the server's lib directory, and instead using the WAR's WEB-INF/lib directory. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk8BcACgkQ9CaO5/Lv0PDptgCgjn5SZcUE4eD4h3oPc2kX8MHZ U8oAn3Y1EPtzHBHM6uLKlztmvQu9HgNe =7YyJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping issue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/25/2010 12:47 PM, Caldarale, Charles R wrote: From: laredotornado [mailto:laredotorn...@gmail.com] Subject: Re: Servlet mapping issue Did you mean to say, call it WITHOUT the params at the end? No, leave the params in, but omit the .jsp suffix in the URL. I'm surprised that this doesn't work as written: 1. The JspServlet is mapped to *.jsp 2. His servlet is mapped to /play/music/includes/venue-listing* 3. url-patterns match the longest-matching pattern, so #2 ought to override #1 What would be better, probably is: url-pattern/play/music/includes/venue-listing.jsp/url-pattern ...which the OP tried unsuccessfully, earlier. I would have expected that to work, too. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk8NMACgkQ9CaO5/Lv0PCaaACdGyZpvu/cF6X2XELHw9muz/mz qYYAn0BQetjmm0SNpwgQ894hdNmZmvlC =zYOn -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping issue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 6/24/2010 1:29 PM, laredotornado wrote: But visiting the URL http://mydomain.com/context-path/play/music/includes/venue-listing.jsp?id=3type=venues gives a 404. Just a thought: are you sure it's the servlet that can't be found? Is your servlet performing a forward() to a resource that can't be found? Maybe you're looking for the error in the wrong place. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk8SAACgkQ9CaO5/Lv0PBLhQCeKDQp8YXRssHJCT4UfdTs7TKz ILYAoMQ9lvSJap+rVuQzcKsOzAqA99g6 =q7wO -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SSL and non SSL configuration on tomcat 6.0.26, confused
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John-Paul, On 6/25/2010 1:40 PM, John-Paul Ranaudo wrote: Ok, so I am assuming I do not have to setup SSL (certificates etc) since my load balancer is decoding the connection. So even if the load balancer is decoding the connection I still have to have SSLEnabled=true? No, Pid was saying that setting one of the two options (SSLEnabled and secure) to true makes sense... setting both to false is not particularly useful. However if I do, does this not make Tomcat try and decode the connection? Yes, setting SSLEnabled=true will make the connector try to perform the decryption. *Which is the root of my problem. How to use the HTTPS protocol without having Tomcat decrypt the connection since the load balancer has done this for me. * It sounds like you just want Tomcat to know that the connection is secure, but without actually doing the decryption. You should be able to do it like this: Connector port=443 - this is the port that the LB talks to protocol=HTTP/1.1 connectionTimeout=2 scheme=https - so request.getScheme returns correct value secure=true - so request.isSecure returns correct value / There's no need to set SSLProtocol or SSLEnabled (you're not using SSL, remember), they will default to false. The link to the documentation is correct. However the properties of the connector are confusing to me. For example SSLEnabled if fairly obvious but secure it confusing. Not sure under what context I need to set this. You can set these to different values, for instance, to instruct the server to report connections as secure even when they aren't actually tunneled through SSL (as above). The application always uses relative paths so whatever protocol the framework is using will be what is returned in the page. Good. How about redirects? I have also tried setting the redirect port thinking I can redirect requests to 443 to the port 80 internally and scheme to 'https'. This actually had the effect of making one framework (the one with https) work but broke the other. The redirect port is only used when the server decides that a webapp requires a secure connection (see transport-guarantee in web.xml), and the server issues a redirect to the client to upgrade the connection to HTTPS. The default is 443, so if a client arrives on port 80, they will be redirected to the same URL except with https:// on the front and the port added if it's not the default of 443. Now, you have to remember that the port number that does out attached to a redirect URL (say, https://myhost:443/foo/bar) is probably the port on the load-balancer the client will hit, not necessarily the port on the local machine. The following configuration is perfectly legitimate: !-- non-secure connector -- Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / !-- secure connector -- Connector port=8443 protocol=HTTP/1.1 connectionTimeout=2 scheme=https - so request.getScheme returns correct value secure=true - so request.isSecure returns correct value / As you see, redirectPort is set to a port that isn't being handled by Tomcat. That's okay, because the load-balancer is presumably handling requests to myhost:443, terminating the SSL, and proxying the cleartext HTTP request to the 8443 connector, which then reports secure=true to anyone who asks. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwk880ACgkQ9CaO5/Lv0PDRsQCgmB+nCnB/LG8sgt0ByBnOlhsR 0DMAoL4rR/B4KUWsF9CLZOekfaGMKrUP =wXOl -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
From: Aaron Clark [mailto:acl...@intellicominc.com] Subject: RE: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port I don't understand how a bug in the OS would cause the RDP port to change if (3rd Party Application A) is running. We've seen on numerous occasions that Windows mixes up handles occasionally (although I've never seen that with sockets before). If whatever lookup table Windows uses to translate an fd/socket handle into the real structure is corrupted, the process can suddenly start using another port. I can't think of any possible way for any lump of user code to cause this - unless Windows security has taken a giant step backwards. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat current thread count
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count I have gotten a thread dump using kill -3 . Don't see anything wrong with the Tomcat threads. As Chris noted, they are all just waiting for another request to show up, which is normal. However, you do have several Timer-x threads going, which makes me suspicious that you webapp is starting up extra threads and not properly managing them. Simply making them daemon (as they are) is not sufficient, since the daemon threads won't terminate until Tomcat is fully shut down. There are also some other threads running that start in your webapp, including one waiting on a UDP socket. This still looks like poor resource management by your webapp. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
2010/6/23 Aaron Clark acl...@intellicominc.com: 1) Terminal Services starts listening on port 80 instead of 3380 2) We determined this by disabling Tomcat. The problem stopped. This is happening on their website, so we would know it happens because customers would call in saying the website is down. 3) Right now (before the switch) it is showing tomcat running on 80 and svchost running on 3389. I haven't run this command after the switch yet. 4) Tomcat is what runs on port 80, yes. Are access logs enabled on that system? What happens with Tomcat when this happens (is it down and unable to start?) I doubt that this change might happen while Tomcat still runs. Is the system property secured? E.g. such trivial issue as CVE-2009-3548 http://tomcat.apache.org/security-6.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
Konstantin Kolinko wrote: 2010/6/23 Aaron Clark acl...@intellicominc.com: 1) Terminal Services starts listening on port 80 instead of 3380 2) We determined this by disabling Tomcat. The problem stopped. This is happening on their website, so we would know it happens because customers would call in saying the website is down. 3) Right now (before the switch) it is showing tomcat running on 80 and svchost running on 3389. I haven't run this command after the switch yet. 4) Tomcat is what runs on port 80, yes. Are access logs enabled on that system? What happens with Tomcat when this happens (is it down and unable to start?) I doubt that this change might happen while Tomcat still runs. Is the system property secured? E.g. such trivial issue as CVE-2009-3548 http://tomcat.apache.org/security-6.html Aaron, to insist : - there is no way for a process (RDP) to tell the Operating System (Windows), something like change the port number of my listening socket to xxx. Such a call does not exist. - there is no way for a process to tell the OS change the listening port number xxx of process yyy to zzz. Such a call does not exist. - Tomcat itself (nor the JVM that actually runs Tomcat) does not contain code that would even try to do that. But a rogue webapp running under Tomcat /might/ contain code that helps a hacker into doing something like that. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
Do you think its more likey that its a bug in the OS, or the server has been comprimised. Aaron K. Clark A+, Network+, CCNA Intellicom, Inc acl...@intellicominc.com 308-237-0684 x228 (Office) 308-440-5500 (Cell) 1700 2nd Ave Kearney, Ne 68847 From: André Warnier [...@ice-sa.com] Sent: Friday, June 25, 2010 3:47 PM To: Tomcat Users List Subject: Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port Konstantin Kolinko wrote: 2010/6/23 Aaron Clark acl...@intellicominc.com: 1) Terminal Services starts listening on port 80 instead of 3380 2) We determined this by disabling Tomcat. The problem stopped. This is happening on their website, so we would know it happens because customers would call in saying the website is down. 3) Right now (before the switch) it is showing tomcat running on 80 and svchost running on 3389. I haven't run this command after the switch yet. 4) Tomcat is what runs on port 80, yes. Are access logs enabled on that system? What happens with Tomcat when this happens (is it down and unable to start?) I doubt that this change might happen while Tomcat still runs. Is the system property secured? E.g. such trivial issue as CVE-2009-3548 http://tomcat.apache.org/security-6.html Aaron, to insist : - there is no way for a process (RDP) to tell the Operating System (Windows), something like change the port number of my listening socket to xxx. Such a call does not exist. - there is no way for a process to tell the OS change the listening port number xxx of process yyy to zzz. Such a call does not exist. - Tomcat itself (nor the JVM that actually runs Tomcat) does not contain code that would even try to do that. But a rogue webapp running under Tomcat /might/ contain code that helps a hacker into doing something like that. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org CONFIDENTIALITY NOTICE: This communication and any files or attachments transmitted with it may contain information that is confidential, privileged and exempt from disclosure under applicable law. It is intended solely for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by reply E-mail and destroy all copies of the original message. Additionally, we will take the appropriate action to avoid sending you an unintended E-mail in the future. Thank you for your cooperation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
On 25/06/2010 21:49, Aaron Clark wrote: Do you think its more likey that its a bug in the OS, or the server has been comprimised. The latter is easier to analyse, plenty of tools around to do that. Or nuke the server and start over. p Aaron K. Clark A+, Network+, CCNA Intellicom, Inc acl...@intellicominc.com 308-237-0684 x228 (Office) 308-440-5500 (Cell) 1700 2nd Ave Kearney, Ne 68847 From: André Warnier [...@ice-sa.com] Sent: Friday, June 25, 2010 3:47 PM To: Tomcat Users List Subject: Re: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port Konstantin Kolinko wrote: 2010/6/23 Aaron Clark acl...@intellicominc.com: 1) Terminal Services starts listening on port 80 instead of 3380 2) We determined this by disabling Tomcat. The problem stopped. This is happening on their website, so we would know it happens because customers would call in saying the website is down. 3) Right now (before the switch) it is showing tomcat running on 80 and svchost running on 3389. I haven't run this command after the switch yet. 4) Tomcat is what runs on port 80, yes. Are access logs enabled on that system? What happens with Tomcat when this happens (is it down and unable to start?) I doubt that this change might happen while Tomcat still runs. Is the system property secured? E.g. such trivial issue as CVE-2009-3548 http://tomcat.apache.org/security-6.html Aaron, to insist : - there is no way for a process (RDP) to tell the Operating System (Windows), something like change the port number of my listening socket to xxx. Such a call does not exist. - there is no way for a process to tell the OS change the listening port number xxx of process yyy to zzz. Such a call does not exist. - Tomcat itself (nor the JVM that actually runs Tomcat) does not contain code that would even try to do that. But a rogue webapp running under Tomcat /might/ contain code that helps a hacker into doing something like that. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org CONFIDENTIALITY NOTICE: This communication and any files or attachments transmitted with it may contain information that is confidential, privileged and exempt from disclosure under applicable law. It is intended solely for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by reply E-mail and destroy all copies of the original message. Additionally, we will take the appropriate action to avoid sending you an unintended E-mail in the future. Thank you for your cooperation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
Re: Self-Contained Web Applications
On 25/06/2010 19:06, Christopher Schultz wrote: Pid, On 6/25/2010 12:44 PM, Pid wrote: On 25/06/2010 17:02, Christopher Schultz wrote: All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the server's lib directory. As it stands, now, all webapps must share the same version of the same driver, and the main installation of Tomcat (or scion, when using CATALINA_BASE) must be modified from the default in order to deploy your application :( You can define a lib dir under CATALINA_BASE and Tomcat will load jars from there by preference over CATALINA_HOME, no? Only if you modify catalina.policy. If it doesn't do it by default you can modify catalina.properties so it does. Right: I'm trying to avoid this. It would be cool if a WAR file using container-managed DataSource could be deployed into a factory-fresh Tomcat install. Specifically, without dropping the JDBC library JAR file into the server's lib directory, and instead using the WAR's WEB-INF/lib directory. Which part of the container hierarchy would the DataSource be attached to? p -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
Re: Self-Contained Web Applications
On Jun 25, 2010, at 3:59 PM, Pid wrote: Which part of the container hierarchy would the DataSource be attached to? Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? Jon Brisbin Portal Webmaster NPC International, Inc. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Self-Contained Web Applications
From: Jon Brisbin [mailto:jon.bris...@npcinternational.com] Subject: Re: Self-Contained Web Applications Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? Correct. Note that the desired effect should be achievable by including commons-dbcp in its WEB-INF/lib, and coding the application to use that. Completely self-contained, and not dependent on any container behavior or capabilities. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Self-Contained Web Applications
On 25/06/2010 22:29, Jon Brisbin wrote: On Jun 25, 2010, at 3:59 PM, Pid wrote: Which part of the container hierarchy would the DataSource be attached to? Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? We can define a DataSource inside a Context already, hook up a locally configured Realm, and it'll use a driver from the web app ClassLoader, which makes the app completely self contained. I don't understand what Chris is getting at. :s p Jon Brisbin Portal Webmaster NPC International, Inc. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
RE: Self-Contained Web Applications
From: Pid [mailto:p...@pidster.com] Subject: Re: Self-Contained Web Applications We can define a DataSource inside a Context already, hook up a locally configured Realm, and it'll use a driver from the web app ClassLoader, which makes the app completely self contained. I don't understand what Chris is getting at. :s Chris didn't mention anything about realms in his initial message. What I interpreted his posting to mean was he wanted container-managed connection pooling (and all other JNDI-based resource usage) done without placing any classes in any global directory space. In other words, the Tomcat classes would use the webapp's classloader first before looking in any global locations for necessary driver libraries. This might require having the webapp classloader get its own copies of the Tomcat classes, but it sounds doable with a bit of re-plumbing. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port
From: Aaron Clark [mailto:acl...@intellicominc.com] Subject: RE: Apache Tomcat 6.0.18 on Windows Server 2008 R2 Changes RDP Port The RDP port is in the registry. It's at \HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ TerminalServer\WinStations\RDP-Tcp\PortNumber Grumble... regedit doesn't seem to find non-text values, so I missed it when searching for 3389. Does the registry entry change when the switch happens? Do you think its more likey that its a bug in the OS, or the server has been comprimised. Very good question, and not easily answered. Looking in Windows' event logs (in addition to the previously suggested Tomcat logs) might show something of interest going on at the time of the switch. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6.0.26. Crite ria for '400 bad req uest' using MutiThre ading
What is the criteria for send a BAD REQUEST (400) using extensively Mutithread bulk calculation (50 per time) from TOMCAT with SQLSERVER? For extensively, I understand as constantly and many times. Server: CPU 2GHz 4 cores, Mem 8GB, (Linux Server K2.6.16.20 SMP) Thanks for any help. Best Regards. M.Eng. Felipe Maya _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us