javax.servlet.ServletException: Wrapper cannot find servlet class - Need Help
Hi, When I start tomcat 4.1.24, I see the below execption in localhost_log file. But am able to connect to the server and do all transactions. 2003-09-18 11:51:10 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.str uts.action.ActionServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:891) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 97) - Root Cause - java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1443) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1289) I have struts.jar in my classpath. Should I include any other jar ? Please lend me your help on this. Thanks, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Not Found in Tomcat 4.1.24
Hi, I have a problem to run Servlet on Tomcat 4.1.24,I have mentioned the whole problem,please let me know how could I resolve this issue. I have created a folder nauman and placed two files index.html and NKServlet.class with NKServlet.java in this way c:\tomcat4.1\webapps\nauman\index.html c:\tomcat4.1\webapps\nauman\WEB-INF\classes\NKServlet.class c:\tomcat4.1\webapps\nauman\WEB-INF\classes\NKServlet.java c:\tomcat4.1\webapps\nauman\WEB-INF\web.xml and I wrote web.xml web-app servlet servlet-nameNKServlet/servlet-name servlet-classNKServlet/servlet-class /servlet /web-app When i run the http://localhost:8080/nauman/index.html, it works fine but when i click the submit button which takes me to Servlet, It doesn't work, It says 404 NKServlet not found. I tried to run with different way but it doesn't work code of index.html is form name=Newfrm action=servlet/NKServlet method=POST input type=submit value=submit /form I did this with href to use get method but It doesn't work. Please help me to find where I'm making mistakes to run the servlet. Thanks in Advance, Nauman __ Post your free ad now! http://personals.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAR
Hello, Can anyone tell me, what is the purpose of the WAR file, how does one create / implement it? Where may I find doco about WAR please? thanks J. P.S Why WAR? What does it stand for? - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
Re: vertial host apache/tomcat
Luke, I placed my httpd.conf in this mail. Hope you (or someone else) knows the answer. # --BEGIN HTTPD.CONF-- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /usr/local/apache # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_winnt.c IfModule !mpm_netware.c #LockFile logs/accept.lock /IfModule /IfModule # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_netware.c IfModule !perchild.c #ScoreBoardFile logs/apache_runtime_status /IfModule /IfModule # # PidFile: The file in which the server should record its process # identification number when it starts. # IfModule !mpm_netware.c PidFile logs/httpd.pid /IfModule # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves IfModule prefork.c StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule # perchild MPM # NumServers: constant number of
RE: Query on url-pattern element of web.xml file ??
Hi, First all thanks for your reply,can you please give me the link of archives so that I can serach there for my query. Regards Bikash --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Senor Wingfield pointed you at the right (and definitive) resource on this already. I just wanted to mention this EXACT question (complete with the /*.jsp mapping) has been asked on the list before, so you can search the archives if you'd like. Yoav Shapira Millennium ChemInformatics -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:05 AM To: [EMAIL PROTECTED] Subject: Query on url-pattern element of web.xml file ?? Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: vertial host apache/tomcat
What's the question? Johan Louwers wrote: Luke, I placed my httpd.conf in this mail. Hope you (or someone else) knows the answer. # --BEGIN HTTPD.CONF-- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /usr/local/apache # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_winnt.c IfModule !mpm_netware.c #LockFile logs/accept.lock /IfModule /IfModule # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_netware.c IfModule !perchild.c #ScoreBoardFile logs/apache_runtime_status /IfModule /IfModule # # PidFile: The file in which the server should record its process # identification number when it starts. # IfModule !mpm_netware.c PidFile logs/httpd.pid /IfModule # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves IfModule prefork.c StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers
Re: WAR
On Thu, 18 Sep 2003 19:11, Jerald Powel wrote: Hello, Can anyone tell me, what is the purpose of the WAR file, how does one create / implement it? Where may I find doco about WAR please? A WAR file is a web application archive. Essentially its a compressed file with all the files you need for your web application in the appropriate directory structure. When you put a WAR file into the webapps directory of tomcat it automatically uncompresses the file and creates a new context without having to explicitly write the context yourself. The following article on OnJava.com should provide you will a good start: http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html You might also consider purchasing a good book. For example, in Mastering Tomcat Development on page 381 there is a description of how to set up Ant to build and deploy web applications. http://www.wiley.com/WileyCDA/WileyTitle/productCd-0471446629.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: vertial host apache/tomcat
:-) I will post the message again that contains the original message. The question was: # --begin original message -- Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. # --end original message -- - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 7:44 AM Subject: Re: vertial host apache/tomcat What's the question? Johan Louwers wrote: Luke, I placed my httpd.conf in this mail. Hope you (or someone else) knows the answer. # --BEGIN HTTPD.CONF-- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /usr/local/apache # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_winnt.c IfModule !mpm_netware.c #LockFile logs/accept.lock /IfModule /IfModule # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two
Re: MySQL DBCP pool exausted error message
Hi Nathan, could you rephrase what the problem is? It's a bit ambiguous. Do you mean that each thread can only do one DB operation and then it gets the exception on its next DB operation, or on its next http request? Have you checked in bugzilla? I think there are some unresolved issues with DBCP. (I keep meaning to do that myself.) Not sure what issues though. Also, are you sure that is the only exception you are getting? Could it be that your error handling is not closing the connections when an exception originally appears? Adam On 09/17/2003 07:20 PM Nathan Christiansen wrote: When I stress test my web app using JMeter, I am suddenly getting a DBCP could not obtain an idle db connection, pool exhausted SQLException thrown. When I test with 25 simulated users every one of my 25 threads gets the exception after the first 25 requests. What am I doing wrong? My setup: RH Linux 7.1 Java 1.4.1_01 Tomcat 4.1.24 DBCP 1.0 MySQL 3.23.56 My pertinent DBCP configuration: removeAbandoned = true maxActive = 25 maxIdle = 10 maxWait = 1 url ends with ?autoReconnect=true I double checked that all of my database connections in my code follow the pattern of: Connection conDBConnection = getConnection(); PreparedStatement psDBStatement = null; ResultSet rsDBResult = null; try { psDBStatement = conDBConnection.prepareStatement(select query from views where viewid = ?); psDBStatement.setInt(1, nViewID); rsDBResult = psDBStatement.executeQuery(); if (rsDBResult.next()) { strReturnValue = rsDBResult.getString(1); } } catch (SQLException sqle) { sqle.printStackTrace(); strReturnValue = null; } finally { try { if (rsDBResult != null) rsDBResult.close(); if (psDBStatement != null) psDBStatement.close(); if (conDBConnection != null) conDBConnection.close(); } catch (SQLException sqle) { sqle.printStackTrace(); } } -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query on url-pattern element of web.xml file ??
The mail from this list is archived here: http://marc.theaimsgroup.com/?l=tomcat-user The specification is a much easier thing to work with though in my opinion. Andoni. - Original Message - From: Bikash Paul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 8:26 AM Subject: RE: Query on url-pattern element of web.xml file ?? Hi, First all thanks for your reply,can you please give me the link of archives so that I can serach there for my query. Regards Bikash --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Senor Wingfield pointed you at the right (and definitive) resource on this already. I just wanted to mention this EXACT question (complete with the /*.jsp mapping) has been asked on the list before, so you can search the archives if you'd like. Yoav Shapira Millennium ChemInformatics -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:05 AM To: [EMAIL PROTECTED] Subject: Query on url-pattern element of web.xml file ?? Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL DBCP pool exausted error message [SOLVED]
Guess you won't be needing my reply then, but looking at your code, it seems that your finally block could be improved slightly :) In the rare situation where statement.close() throws an exception, your connection won't be closed. Adam On 09/17/2003 10:20 PM Nathan Christiansen wrote: Sorry. I had a bug in my code. I had one database call where I was checking parameters and returning without calling Connection.close(); -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com -Original Message- From: Nathan Christiansen Sent: Wednesday, September 17, 2003 11:20 AM To: [EMAIL PROTECTED] Subject: MySQL DBCP pool exausted error message When I stress test my web app using JMeter, I am suddenly getting a DBCP could not obtain an idle db connection, pool exhausted SQLException thrown. When I test with 25 simulated users every one of my 25 threads gets the exception after the first 25 requests. What am I doing wrong? My setup: RH Linux 7.1 Java 1.4.1_01 Tomcat 4.1.24 DBCP 1.0 MySQL 3.23.56 My pertinent DBCP configuration: removeAbandoned = true maxActive = 25 maxIdle = 10 maxWait = 1 url ends with ?autoReconnect=true I double checked that all of my database connections in my code follow the pattern of: Connection conDBConnection = getConnection(); PreparedStatement psDBStatement = null; ResultSet rsDBResult = null; try { psDBStatement = conDBConnection.prepareStatement(select query from views where viewid = ?); psDBStatement.setInt(1, nViewID); rsDBResult = psDBStatement.executeQuery(); if (rsDBResult.next()) { strReturnValue = rsDBResult.getString(1); } } catch (SQLException sqle) { sqle.printStackTrace(); strReturnValue = null; } finally { try { if (rsDBResult != null) rsDBResult.close(); if (psDBStatement != null) psDBStatement.close(); if (conDBConnection != null) conDBConnection.close(); } catch (SQLException sqle) { sqle.printStackTrace(); } } -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
365 logfiles a year
Hi http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html says The actual filenames of the log files are created from a configured prefix, the current date in -MM-DD format, and a configured suffix. nice feature ... (hm) .. can I also turn that off ? 1 logfile is enough. logrotate will manage it. thanks, *-pike Internet search engines that take money from Web sites in exchange for prominent placement should make that practice clearer to Web users, federal regulators said Friday.Many search engine Web sites, including AltaVista, LookSmart and AOL Search, give preferred placement to paid advertisers. The Federal Trade Commission said that prime space can confuse Web users who are looking for the best response to their search, rather than ads for sites that paid up front. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Character Set Issues (windows vs. Unix)
InputStream and OutputStream Readers rely on platform default character encodings (unless you specify an encoding in the constructor). For example, a text file with German umlauts encoding in MacRoman translates without any further effort when read on an OS X server and printed to an ISO-8859-1 page. Move the text files onto a Windows box, and see the funny characters. Perhaps that's the problem? Cheers, Chris on 9/17/03 9:00 AM, Hans Liebenberg at [EMAIL PROTECTED] wrote: Hi Anton, Thats exactly what I am doing. I have even tried Reader reader = r.getCharacterStream(field_name); and then printing out the the char values of the stream same result Its the most bizarre thing i have seen. ...and driving me insane! :( Thanks for you help Hans -Original Message- From: Anton Tagunov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:04 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Character Set Issues (windows vs. Unix) Hello Hans! HL When the application is installed on the windows server the particular HL character (which is some kind of spacing character in word) gets read out of HL the database as HL Ascii code 160, HL BUT on the Linux server the exact same routine reads it as ascii code 65533 HL Same database, same application config - only difference is OS HL The JVM's are both set up as default english installs. Fun story ideed :-) Are you sure you get it wron from ResultSet.getString()? Try doing String s = rs.getString(x); char c = s.charAt(y); out.print((int)c); Are you getting different character codes? Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DefaultServlet throws a LOT of broken pipe exceptions on mp3s
Hi, My app logs are filled to bursting with stack traces from broken pipes while serving embedded mp3 (~100k) files. The files serve ok (status 200), but the log clutter is hiding everything else. Strange thing is these aren't the biggest files. 400k jpg's, etc., no problem. The broken pipe exception occurs ONLY on the mp3's. Any suggestions/clues? Thanks, Chris Running Tomcat 4.0.4 on an OS X (10.2) setup. -- NB: org.apache.catalina replaced by [*] to avoid wrapping. -- 2003-09-17 10:03:07 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at [*]connector.ResponseBase.flushBuffer(ResponseBase.java:674) at [*]connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:764) at [*]connector.ResponseBase.write(ResponseBase.java:647) at [*]connector.ResponseStream.write(ResponseStream.java:312) at [*]connector.http.HttpResponseStream.write(HttpResponseStream.java:189) at [*]servlets.DefaultServlet.copyRange(DefaultServlet.java:1903) at [*]servlets.DefaultServlet.copy(DefaultServlet.java:1652) at [*]servlets.DefaultServlet.serveResource(DefaultServlet.java:1197) at [*]servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at [*]core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 247) at [*]core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at [*]core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:566) at [*]core.StandardPipeline.invoke(StandardPipeline.java:472) at [*]core.ContainerBase.invoke(ContainerBase.java:943) at [*]core.StandardContextValve.invoke(StandardContextValve.java:190) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:566) at [*]authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:564) at [*]valves.CertificatesValve.invoke(CertificatesValve.java:246) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:564) at [*]core.StandardPipeline.invoke(StandardPipeline.java:472) at [*]core.ContainerBase.invoke(ContainerBase.java:943) at [*]core.StandardContext.invoke(StandardContext.java:2347) at [*]core.StandardHostValve.invoke(StandardHostValve.java:180) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:566) at [*]valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:564) at [*]valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:564) at [*]valves.AccessLogValve.invoke(AccessLogValve.java:468) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:564) at [*]core.StandardPipeline.invoke(StandardPipeline.java:472) at [*]core.ContainerBase.invoke(ContainerBase.java:943) at [*]core.StandardEngineValve.invoke(StandardEngineValve.java:174) at [*]core.StandardPipeline.invokeNext(StandardPipeline.java:566) at [*]core.StandardPipeline.invoke(StandardPipeline.java:472) at [*]core.ContainerBase.invoke(ContainerBase.java:943) at [*]connector.http.HttpProcessor.process(HttpProcessor.java:1027) at [*]connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:491) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need your help
gud day, greetings from the philippines. pls help me out with this one. after executing the batch file.. d:\tomcat\jakarta-tomcat-4.1.27-src\catalina\src\binstartup.bat i will encounter this error Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap what i have been missing? pls. help. thank you so much. God Speed, perry santos Computronix College Web Mail http://www.computronix.edu.ph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 365 logfiles a year
The access logs are configureable to turn this off but the other Loggers are not. See the javadocs for AccessLogValve on how to turn it off. -Tim P.van Kemenade wrote: Hi http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html says The actual filenames of the log files are created from a configured prefix, the current date in -MM-DD format, and a configured suffix. nice feature ... (hm) .. can I also turn that off ? 1 logfile is enough. logrotate will manage it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultServlet throws a LOT of broken pipe exceptions on mp3s
Broken pipe means the client the aborted the request which is normal for mp3 since users probably stop listening to the song early. -Tim Chris Rolfe wrote: Hi, My app logs are filled to bursting with stack traces from broken pipes while serving embedded mp3 (~100k) files. The files serve ok (status 200), but the log clutter is hiding everything else. Strange thing is these aren't the biggest files. 400k jpg's, etc., no problem. The broken pipe exception occurs ONLY on the mp3's. Any suggestions/clues? Thanks, Chris Running Tomcat 4.0.4 on an OS X (10.2) setup. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trying to get off this list
Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please help! Error reading server.xml
Dear Alll, Anyone have any ideas of this? ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml At line 24 /Server/Listener/ className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 Catalina.start:java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener Thanks in advance. Soon Chiao.
Re: Trying to get off this list
you have to answer the confirm email it sends you. On 09/18/2003 01:29 PM Ronaldo Quispe wrote: Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Another E-Mail about Applet Client Access
Hi all, I'm relatively new to Tomcat so please excuse any silly errors. I've installed Tomcat/4.1.24 onto a 2k platform and have been building an Intranet site. I've kept the installation standard so it lives in the Tomcat_Home/Webapps/ROOT folder(s). The site now includes JavaScript and SQL+Java Servlets. Everything is running fine up to this point. For reasons of 'monitoring usefulness' I've been asked to add a hit counter (Ugh, I know. I hate the things). Although I know I can do this using the technologies above, I thought I'd try an applet. The class works fine on the server machine in all cases. The html file is in the Tomcat_Home/Webapps/ROOT folder as is the Counter.class file. I understand the applet tag, so therefore the codebase option. But this applet does not load on any client machines. I've read all the achieved mails about the WEB-INF folder etc and which folders are not visible though Tomcat for the client to access applets. But no matter which folder I place the html and class in, the problem still exists. Based on the fact that I've read all the articles I can find on this topic, can someone please fill in the missing link? ### OXFORD INSTRUMENTS http://www.oxford-instruments.com/ ### Unless stated above to be non-confidential, this E-mail and any attachments are private and confidential and are for the addressee only and may not be used, copied or disclosed save to the addressee. If you have received this E-mail in error please notify us upon receipt and delete it from your records. Internet communications are not secure and Oxford Instruments is not responsible for their abuse by third parties nor for any alteration or corruption in transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultServlet throws a LOT of broken pipe exceptions on mp3s
That's what I thought at first, but this happens 80-90% of the time on the 100k+ files. There are two files on the same page, one 100-200k dialog, and a 10-30k sentence. It seems to me unlikely the users are hitting stop that quickly and that often. These are reasonably fast university connections in a class setting. Could it be another request hitting the server? Mishandling of partial GETs? Related, the catalina Logger doesn't seem to take Filters (or am I missing something?). I'd like to keep this cruft (in the meantime) out of the log. Chris on 9/18/03 3:57 AM, Tim Funk wrote: Broken pipe means the client the aborted the request which is normal for mp3 since users probably stop listening to the song early. -Tim Chris Rolfe wrote: Hi, My app logs are filled to bursting with stack traces from broken pipes while serving embedded mp3 (~100k) files. The files serve ok (status 200), but the log clutter is hiding everything else. Strange thing is these aren't the biggest files. 400k jpg's, etc., no problem. The broken pipe exception occurs ONLY on the mp3's. Any suggestions/clues? Thanks, Chris Running Tomcat 4.0.4 on an OS X (10.2) setup. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultServlet throws a LOT of broken pipe exceptions on mp3s
I think in 4.1.24 those messages have been eliminated. Do you get the same errors with wget or similar? It could be the player is sending wacky requests. Otherwise - at 4.0.4 - I'm out of ideas. -Tim Chris Rolfe wrote: That's what I thought at first, but this happens 80-90% of the time on the 100k+ files. There are two files on the same page, one 100-200k dialog, and a 10-30k sentence. It seems to me unlikely the users are hitting stop that quickly and that often. These are reasonably fast university connections in a class setting. Could it be another request hitting the server? Mishandling of partial GETs? Related, the catalina Logger doesn't seem to take Filters (or am I missing something?). I'd like to keep this cruft (in the meantime) out of the log. Chris on 9/18/03 3:57 AM, Tim Funk wrote: Broken pipe means the client the aborted the request which is normal for mp3 since users probably stop listening to the song early. -Tim Chris Rolfe wrote: Hi, My app logs are filled to bursting with stack traces from broken pipes while serving embedded mp3 (~100k) files. The files serve ok (status 200), but the log clutter is hiding everything else. Strange thing is these aren't the biggest files. 400k jpg's, etc., no problem. The broken pipe exception occurs ONLY on the mp3's. Any suggestions/clues? Thanks, Chris Running Tomcat 4.0.4 on an OS X (10.2) setup. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultServlet throws a LOT of broken pipe exceptions on mp3s
Chris Rolfe wrote: That's what I thought at first, but this happens 80-90% of the time on the 100k+ files. There are two files on the same page, one 100-200k dialog, and a 10-30k sentence. It seems to me unlikely the users are hitting stop that quickly and that often. These are reasonably fast university connections in a class setting. Could it be another request hitting the server? Mishandling of partial GETs? Related, the catalina Logger doesn't seem to take Filters (or am I missing something?). I'd like to keep this cruft (in the meantime) out of the log. I had tested the partial GET with stuff like GetRight and WinAMP (and telnet, obviously). I believe the feature works fine. This exception can only occur on a client disconnect, so the only way it could happen is if too many bytes are written (which, I belive, works fine). BTW, if you run a fileserver on Tomcat (unusal, and not the most efficient server for that use, but it works), then I think you should try 5.0.x, such as 5.0.9 or 5.0.12. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JMX / mx4j -- deployment problems
hi tomcat-users, I am making my first steps with JMX or mx4j respectively. I saw that Tomcat 4.1 is able to register MBeans and I saw in the documentation the example descriptor...however, I still dont understand how to proceed. For testing I only wanted to register a simple MBean (from the mx4j examples) in order to see, if I am able to manage some properties. I added to the server.xml the listener, giving the reference to my mbeans-descriptors.xml but still I can see the bean... Now 1) The className property in the descriptor file is for my MBean, ok...domain to give my MBean a certain namespache, i think,... but what are the group and type properties for? Finally, I simply want to use my MBean as a sort of managable background controller... 2) Is it possible to register a MBean only in the webapplication, without modifications e.g. in the server.xml? It would be nice if at startup of the webcontainer, the MBeans could be launched... Or do I have to have a ContextListener and create an own MBeanServer? Thanks for any help, example code and suggestions! ;-) _ MSN - More useful every day http://www.msn.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Benefits of increasing bufferSize in server.xml
Howdy, Why wonder when you can use JMeter? Personally I haven't played enough with bufferSize to conclusively answer your question, but clearly the need for tuning that parameter is directly related to the contents of your webapp, so only you can tune if for your webapp ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Kilic, Hakan [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:09 PM To: '[EMAIL PROTECTED]' Subject: Benefits of increasing bufferSize in server.xml Hi all, I've been tunning my Tomcat server and just wondering about the effects of increasing the bufferSize in the server.xml. From the tomcat documentation bufferSize is The size (in bytes) of the buffer to be provided for input streams created by this connector. By default, buffers of 2048 bytes will be provided. Does this only apply to input streams (requests)? What about large files Tomcat has to serve up to request, how do you increase the buffer size it uses in this case (responses)? I'm basically looking for the Tomcat equivalent of SendBufferSize in Apache. Thanks in advance, -Hakan Kilic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet Not Found in Tomcat 4.1.24
Howdy, You need a servlet mapping element for NKServlet in your web.xml. You should declare a DTD in your web.xml. Loko at your tomcat log, where it's probably telling you it doesn't like your web.xml and is deploying your webapp with default properties, i.e. no mapping for NKServlet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nauman Khan [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:08 PM To: [EMAIL PROTECTED] Subject: Servlet Not Found in Tomcat 4.1.24 Hi, I have a problem to run Servlet on Tomcat 4.1.24,I have mentioned the whole problem,please let me know how could I resolve this issue. I have created a folder nauman and placed two files index.html and NKServlet.class with NKServlet.java in this way c:\tomcat4.1\webapps\nauman\index.html c:\tomcat4.1\webapps\nauman\WEB-INF\classes\NKServlet.class c:\tomcat4.1\webapps\nauman\WEB-INF\classes\NKServlet.java c:\tomcat4.1\webapps\nauman\WEB-INF\web.xml and I wrote web.xml web-app servlet servlet-nameNKServlet/servlet-name servlet-classNKServlet/servlet-class /servlet /web-app When i run the http://localhost:8080/nauman/index.html, it works fine but when i click the submit button which takes me to Servlet, It doesn't work, It says 404 NKServlet not found. I tried to run with different way but it doesn't work code of index.html is form name=Newfrm action=servlet/NKServlet method=POST input type=submit value=submit /form I did this with href to use get method but It doesn't work. Please help me to find where I'm making mistakes to run the servlet. Thanks in Advance, Nauman __ Post your free ad now! http://personals.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting JVM properties via Tomcat config
Howdy, Your could put the property as a context-param in your web.xml, then in a ServletContextListener's contextInitialied method get the context param value and use System.setProperty to set the system property your 3rd party library needs. That said, I wouldn't do the above, but instead use JAVA_OPTS for tomcat. It's cleaner IMHO, but this is a personal style matter. Yoav Shapira Millennium ChemInformatics -Original Message- From: Brent Snook [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:35 PM To: [EMAIL PROTECTED] Subject: Setting JVM properties via Tomcat config Hi, I have a web app. using a third party library that requires that a property be set in the JVM. I am aware of how to set the property using the catalina start-up scripts and via Win2000 registry keys but my supervisor would like to know if it can be set using the Tomcat configuration files or the web descriptor for the app. This would make installation is a bit easier and we'd like to avoid changing any code. Any suggestions would be appreciated. Thanks, Brent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Benefits of increasing bufferSize in server.xml
Hi Hakan, Servlet 2.2 specs provide a method HttpServletResponse.setBufferSize(int size) http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRespon se.html which I use to handle larger responses. (But I didn't yet measure its influence on response performance) Dirk - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:33 PM Subject: RE: Benefits of increasing bufferSize in server.xml Howdy, Why wonder when you can use JMeter? Personally I haven't played enough with bufferSize to conclusively answer your question, but clearly the need for tuning that parameter is directly related to the contents of your webapp, so only you can tune if for your webapp ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Kilic, Hakan [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:09 PM To: '[EMAIL PROTECTED]' Subject: Benefits of increasing bufferSize in server.xml Hi all, I've been tunning my Tomcat server and just wondering about the effects of increasing the bufferSize in the server.xml. From the tomcat documentation bufferSize is The size (in bytes) of the buffer to be provided for input streams created by this connector. By default, buffers of 2048 bytes will be provided. Does this only apply to input streams (requests)? What about large files Tomcat has to serve up to request, how do you increase the buffer size it uses in this case (responses)? I'm basically looking for the Tomcat equivalent of SendBufferSize in Apache. Thanks in advance, -Hakan Kilic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to get off this list
Nope! That does not get me also off this list Ida [EMAIL PROTECTED] 09/18/03 07:38AM you have to answer the confirm email it sends you. On 09/18/2003 01:29 PM Ronaldo Quispe wrote: Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JMX / mx4j -- deployment problems
hi tomcat-users, I am making my first steps with JMX or mx4j respectively. I saw that Tomcat 4.1 is able to register MBeans and I saw in the documentation the example descriptor...however, I still dont understand how to proceed. For testing I only wanted to register a simple MBean (from the mx4j examples) in order to see, if I am able to manage some properties. I added to the server.xml the listener, giving the reference to my mbeans-descriptors.xml but still I can see the bean... Now 1) The className property in the descriptor file is for my MBean, ok...domain to give my MBean a certain namespache, i think,... but what are the group and type properties for? Finally, I simply want to use my MBean as a sort of managable background controller... 2) Is it possible to register a MBean only in the webapplication, without modifications e.g. in the server.xml? It would be nice if at startup of the webcontainer, the MBeans could be launched... Or do I have to have a ContextListener and create an own MBeanServer? Thanks for any help, example code and suggestions! ;-) __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Crashing...
If you could tell me where to look for that System.exit call??I mean in the tomcat scripts??? Paridhi Try finding a rogue System.exit call :). On Tue, 16 Sep 2003, Paridhi Bansal wrote: Hi I am using tomcat4.0.6 as a standalone server for my servlet -applet based application.The server initially listens at port 8443(SSL) and after the request, the servlet throws a jar file and opens up port 4004 for applet-servlet communication. However, when this port is openend, telnetting to the server on this open port i.e 4004 (which is actaully not included in tomcat's configuartion file but is hardcoded in the servlet and applet), the tomcat server itself crashes. All the java threads get terminated automatically.I have to restart tomcat to start things working.What can be the cause for this??Is there something to be included in the tomcat configuration??What can be the solution?? Any help will b highly appreciated... Paridhi -- -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Crashing...
When someone (forget who) suggested looking for System.exit - they meant it might be in *your* code, not the tomcat code. Here is an easy way to look for System.exit: find . -name '*.java' | grep System.exit OR find . -type f | grep System.exit -Tim Paridhi Bansal wrote: If you could tell me where to look for that System.exit call??I mean in the tomcat scripts??? Paridhi Try finding a rogue System.exit call :). On Tue, 16 Sep 2003, Paridhi Bansal wrote: Hi I am using tomcat4.0.6 as a standalone server for my servlet -applet based application.The server initially listens at port 8443(SSL) and after the request, the servlet throws a jar file and opens up port 4004 for applet-servlet communication. However, when this port is openend, telnetting to the server on this open port i.e 4004 (which is actaully not included in tomcat's configuartion file but is hardcoded in the servlet and applet), the tomcat server itself crashes. All the java threads get terminated automatically.I have to restart tomcat to start things working.What can be the cause for this??Is there something to be included in the tomcat configuration??What can be the solution?? Any help will b highly appreciated... Paridhi -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Crashing...
Hi, It wouldn't be in the tomcat scripts, it'd be in your code. Yoav Shapira Millennium ChemInformatics -Original Message- From: Paridhi Bansal [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat Crashing... If you could tell me where to look for that System.exit call??I mean in the tomcat scripts??? Paridhi Try finding a rogue System.exit call :). On Tue, 16 Sep 2003, Paridhi Bansal wrote: Hi I am using tomcat4.0.6 as a standalone server for my servlet -applet based application.The server initially listens at port 8443(SSL) and after the request, the servlet throws a jar file and opens up port 4004 for applet-servlet communication. However, when this port is openend, telnetting to the server on this open port i.e 4004 (which is actaully not included in tomcat's configuartion file but is hardcoded in the servlet and applet), the tomcat server itself crashes. All the java threads get terminated automatically.I have to restart tomcat to start things working.What can be the cause for this??Is there something to be included in the tomcat configuration??What can be the solution?? Any help will b highly appreciated... Paridhi -- -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get off this list
If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get off this list
1) Send an email to [EMAIL PROTECTED] 2) An email will be sent back to you, simply reply to the email and send 3) Your off the list _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jenice Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:27 AM To: 'Tomcat Users List' Subject: RE: Trying to get off this list If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get off this list
The only problem I have encountered before is my employer changed our email addresses, i.e., [EMAIL PROTECTED] to [EMAIL PROTECTED] Unsubscribe won't work. Be sure to use exactly the same address you subscribed to the list to unsubscribe. -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 9:27 AM To: Tomcat Users List Subject: RE: Trying to get off this list 1) Send an email to [EMAIL PROTECTED] 2) An email will be sent back to you, simply reply to the email and send 3) Your off the list _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jenice Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:27 AM To: 'Tomcat Users List' Subject: RE: Trying to get off this list If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Delivery problems: RE: Trying to get off this list
Title: FW: Delivery problems: RE: Trying to get off this list Here comes another naughty subscriber! -Original Message- From: MAILER-DAEMON [mailto:[EMAIL PROTECTED]] Sent: September 18, 2003 9:36 AM To: [EMAIL PROTECTED] Subject: Delivery problems: RE: Trying to get off this list This is an unknown user on this system. Please check the address. If you think there is a problem on our end, please send a message to [EMAIL PROTECTED] Please include the email address. Thank You. Warning, delivery failure! This is a status message indicating that a message could not be delivered to 1 or more recipients. Original message subject: RE: Trying to get off this list Date received: 18-Sep-2003 09:35:53 -0400 Recipients and delivery history [EMAIL PROTECTED] Transcript of session follows --- 18-Sep-2003 09:35:53 -0400 Received via SMTP from ASG.CHIINC.COM 18-Sep-2003 09:36:04 -0400 [EMAIL PROTECTED] is unknown ---BeginMessage--- Title: RE: Trying to get off this list The only problem I have encountered before is my employer changed our email addresses, i.e., [EMAIL PROTECTED] to [EMAIL PROTECTED] Unsubscribe won't work. Be sure to use exactly the same address you subscribed to the list to unsubscribe. -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED]] Sent: September 18, 2003 9:27 AM To: Tomcat Users List Subject: RE: Trying to get off this list 1) Send an email to [EMAIL PROTECTED] 2) An email will be sent back to you, simply reply to the email and send 3) Your off the list _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jenice Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 18, 2003 9:27 AM To: 'Tomcat Users List' Subject: RE: Trying to get off this list If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Delivery problems: RE: Trying to get off this list
I emailed [EMAIL PROTECTED] to request to unsub that user. -Tim (Tired of that bounce notice too) Phillip Qin wrote: Here comes another naughty subscriber! -Original Message- From: MAILER-DAEMON [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 9:36 AM To: [EMAIL PROTECTED] Subject: Delivery problems: RE: Trying to get off this list This is an unknown user on this system. Please check the address. If you think there is a problem on our end, please send a message to [EMAIL PROTECTED] Please include the email address. Thank You. Warning, delivery failure! This is a status message indicating that a message could not be delivered to 1 or more recipients. Original message subject: RE: Trying to get off this list Date received: 18-Sep-2003 09:35:53 -0400 Recipients and delivery history [EMAIL PROTECTED] Transcript of session follows --- 18-Sep-2003 09:35:53 -0400 Received via SMTP from ASG.CHIINC.COM 18-Sep-2003 09:36:04 -0400 [EMAIL PROTECTED] is unknown Subject: RE: Trying to get off this list From: Phillip Qin [EMAIL PROTECTED] Date: Thu, 18 Sep 2003 09:35:44 -0400 To: 'Tomcat Users List' [EMAIL PROTECTED] The only problem I have encountered before is my employer changed our email addresses, i.e., [EMAIL PROTECTED] to [EMAIL PROTECTED] Unsubscribe won't work. Be sure to use exactly the same address you subscribed to the list to unsubscribe. -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 9:27 AM To: Tomcat Users List Subject: RE: Trying to get off this list 1) Send an email to [EMAIL PROTECTED] 2) An email will be sent back to you, simply reply to the email and send 3) Your off the list _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jenice Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:27 AM To: 'Tomcat Users List' Subject: RE: Trying to get off this list If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
howto monitor dbcp connection usage?
i'd like to monitor (log) dbcp connection pool usage. i'm using tomcat 4.1.27 with dbcp 1.0 and mysql (j-connector 3.0.8 - mysql 3.23) i'm investigating if my db refuses or closes the connection in fact calling datasource.getconnection sometimes returns a closed conn (?) any hint? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto monitor dbcp connection usage?
what I've done in the past is write a dbmanager that uses the underlying driver. my dbmanager then implements simple logging and is configurable through web.xml. peter Marco Baiguera [EMAIL PROTECTED] wrote: i'd like to monitor (log) dbcp connection pool usage. i'm using tomcat 4.1.27 with dbcp 1.0 and mysql (j-connector 3.0.8 - mysql 3.23) i'm investigating if my db refuses or closes the connection in fact calling datasource.getconnection sometimes returns a closed conn (?) any hint? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
RE: FW: Delivery problems: RE: Trying to get off this list
I can think of another reason why people can't unsubscribe. People are let go immediately so they won't have chance to unsubscribe. Sad, hope it won't happen on me. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 9:39 AM To: Tomcat Users List Subject: Re: FW: Delivery problems: RE: Trying to get off this list I emailed [EMAIL PROTECTED] to request to unsub that user. -Tim (Tired of that bounce notice too) Phillip Qin wrote: Here comes another naughty subscriber! -Original Message- From: MAILER-DAEMON [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 9:36 AM To: [EMAIL PROTECTED] Subject: Delivery problems: RE: Trying to get off this list This is an unknown user on this system. Please check the address. If you think there is a problem on our end, please send a message to [EMAIL PROTECTED] Please include the email address. Thank You. Warning, delivery failure! This is a status message indicating that a message could not be delivered to 1 or more recipients. Original message subject: RE: Trying to get off this list Date received: 18-Sep-2003 09:35:53 -0400 Recipients and delivery history [EMAIL PROTECTED] Transcript of session follows --- 18-Sep-2003 09:35:53 -0400 Received via SMTP from ASG.CHIINC.COM 18-Sep-2003 09:36:04 -0400 [EMAIL PROTECTED] is unknown Subject: RE: Trying to get off this list From: Phillip Qin [EMAIL PROTECTED] Date: Thu, 18 Sep 2003 09:35:44 -0400 To: 'Tomcat Users List' [EMAIL PROTECTED] The only problem I have encountered before is my employer changed our email addresses, i.e., [EMAIL PROTECTED] to [EMAIL PROTECTED] Unsubscribe won't work. Be sure to use exactly the same address you subscribed to the list to unsubscribe. -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 9:27 AM To: Tomcat Users List Subject: RE: Trying to get off this list 1) Send an email to [EMAIL PROTECTED] 2) An email will be sent back to you, simply reply to the email and send 3) Your off the list _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jenice Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:27 AM To: 'Tomcat Users List' Subject: RE: Trying to get off this list If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed.
Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going)
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas n eeded.
Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going)
Re: peer not authenticated
Hi Bill, For a test, I created a new keystore file that use the keytool from java: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA the password is: kleber My server.xml file is like this: Connector className=org.apache.coyote.tomcat4.CoyoteConnector redirectPort=443 bufferSize=2048 serverSocketTimeout=0 connectionUploadTimeout=30 port=443 connectionTimeout=6 scheme=https enableLookups=true secure=true protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol debug=0 maxKeepAliveRequests=100 disableUploadTimeout=true proxyPort=0 maxProcessors=75 minProcessors=5 tcpNoDelay=true acceptCount=100 useURIValidationHack=false compression=off connectionLinger=-1 Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory rootFile=C:\WINDOWS\root.pem keystoreType=JKS keystorePass=kleber clientAuth=false randomFile=C:\WINDOWS\random.pem keystoreFile=c:\Tomcat\keystore\.keystore protocol=TLS/ /Connector As I ever had said, the page with https:// load normally at the browser, however at DOS windows appears this error: [WARN] Http11Processor - -Exception getting SSL attributes javax.net.ssl.SSLPeerUnverifiedException: peer not authenticatedjavax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62 75) at org.apache.tomcat.util.net.jsse.JSSESupport.getX509Certificates(JSSESupport. java:113) at org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupp ort.java:161) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:748) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java: 321) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:484) I'm also attaching my keystore file I´m thankful for your attention... Kleber - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:03 AM Subject: Re: peer not authenticated That message is supposed to be only logged at 'debug' level. Could you post more of the stack trace, so I can see how to plug this message under normal use? The error itself is harmless (it's just telling you that the user didn't send a client cert, which is normal). Kleber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, My name is Kleber, I am brazilian and I have a problem with Tomcat certificates(if someone could help me, I would be grateful). I was trying to place Tomcat certificate 4.1.27, however I've just had a certificate, because nowadays I'm using Orion server. I have one file called keystore and another '.cer'. I had created a HTTP connection using port 443 and I have used the path from the keystore file. Till this point, everything was working well, the Tomcat was starting normally. When I open a website that use a 'secure encryption', it is loaded normally, however, a error message apears on DOS: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated I had created an keystore file from the beginning, even so the same message error has apeared. I also have tried to import, without sucess, the content from my .cer file to an empty keystore file. Where was I messing up? Since now I´m thankful for your help and I´m waiting for an aswer. []´s Kleber - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed.
Hi, Have you tried moving to a new version of Tomcat? We had problems with earlier versions crashing, We also moved from JDK1.2 to 1.3.1_07 Thanks Pete -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 15:55 To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where should I put properties files
I have a web service (call it XYZ) which requires a .properties file. I had been putting it in %CATALINA_HOME%\webapps\axis\services\XYZ, with the classes in %CATALINA_HOME%\webapps\axis\services\WEB_INF\classes and using this to open the properties file. File PFile = new File(webapps + File.separator + axis + File.separator + services + File.separator + XYZ + File.separator + XYZ.properties); if (!PFile.exists()) throw new CFException(No properties file: + PFile.getAbsolutePath()); This works, but there are two problems: 1) If Tomcat is run as a service, I have to put the properties file in %CATALINA_HOME%\webapps\axis\services\XYZ, instead. 2) I recently ditched the classes and put XYZ.jar into %CATALINA_HOME%\webapps\axis\services\WEB_INF\lib. Now, unless I hard-code a path for the properties file (e.g., C:\XYZ.properties), the service can't find it. How is this issue normally handled? Michael D. Spence Mockingbird Data Systems, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where should I put properties files (corrected, sorry)
I have a web service (call it XYZ) which requires a .properties file. I had been putting it in %CATALINA_HOME%\webapps\axis\services\XYZ, with the classes in %CATALINA_HOME%\webapps\axis\services\WEB_INF\classes and using this to open the properties file. File PFile = new File(webapps + File.separator + axis + File.separator + services + File.separator + XYZ + File.separator + XYZ.properties); if (!PFile.exists()) throw new CFException(No properties file: + PFile.getAbsolutePath()); This works, but there are two problems: 1) If Tomcat is run as a service, I have to put the properties file in %WINSYSDIR%\webapps\axis\services\XYZ, instead. 2) I recently ditched the classes and put XYZ.jar into %CATALINA_HOME%\webapps\axis\services\WEB_INF\lib. Now, unless I hard-code a path for the properties file (e.g., C:\XYZ.properties), the service can't find it. How is this issue normally handled? Michael D. Spence Mockingbird Data Systems, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed.
That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where should I put properties files
Howdy, This is a FAQ, you could read the archives, but here's a summary of the two commons solutions: - Place properties file on classpath, use the Class#getResource or Class#getResourceAsStream method. - Please properties file anywhere under your webapp's root, and use ServletContext#getResource or ServletContext#getResourceAsStream. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael D. Spence [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: Where should I put properties files I have a web service (call it XYZ) which requires a .properties file. I had been putting it in %CATALINA_HOME%\webapps\axis\services\XYZ, with the classes in %CATALINA_HOME%\webapps\axis\services\WEB_INF\classes and using this to open the properties file. File PFile = new File(webapps + File.separator + axis + File.separator + services + File.separator + XYZ + File.separator + XYZ.properties); if (!PFile.exists()) throw new CFException(No properties file: + PFile.getAbsolutePath()); This works, but there are two problems: 1) If Tomcat is run as a service, I have to put the properties file in %CATALINA_HOME%\webapps\axis\services\XYZ, instead. 2) I recently ditched the classes and put XYZ.jar into %CATALINA_HOME%\webapps\axis\services\WEB_INF\lib. Now, unless I hard-code a path for the properties file (e.g., C:\XYZ.properties), the service can't find it. How is this issue normally handled? Michael D. Spence Mockingbird Data Systems, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed.
We did on our last project. But it was the JVM crashing and taking Tomcat down with it. We just moved to a newer version just to make sure. Try and upgrade the JVM, what version are you using ? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 16:12 To: Tomcat Users List Subject: Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed.
Howdy, Regardless, a setup where you can't inspect log files until the end of the day is unacceptable for more people/organizations ;) Try to get that corrected... Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:17 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. We did on our last project. But it was the JVM crashing and taking Tomcat down with it. We just moved to a newer version just to make sure. Try and upgrade the JVM, what version are you using ? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 16:12 To: Tomcat Users List Subject: Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with HttpSessionListener ..
Hi, I am trying to implement the HttpSessionListener (the same class implements ServletContextListener). The code for which is below. 1. I open a browser window , use MyWebApp after logging in it. 2. I open the tomcat manager and reload my MyWebApp. I go to the console at this point and see the message - Session is already invalid. (see code below) 3. I go to my window in step 1. and click on a link to go to a particular .jsp page. I get a blank window. I check the session attributes at this point and my session attribute USER_AUTHORIZED exists and is true. step 2 s result conflicts with step 3s result. (see code below). Invalidating the session does not propagate to the client ??? What am i doing wrong ? public void contextDestroyed(ServletContextEvent sce) { // Destroy sessions. if(sessions != null) { Iterator i = sessions.iterator(); while (i.hasNext()) { HttpSession s = (HttpSession)i.next(); try { if(s != null s.getAttribute(USER_AUTHORISED) != null) { System.out.println(Invalidating session id = + s.getId()); s.invalidate(); } } catch(IllegalStateException ex) { System.out.println(Session is already invalid.); } } } // End Destroy sessions. } public void sessionCreated(HttpSessionEvent event) { if(sessions == null) sessions = new HashSet(); sessions.add(event.getSession()); } public void sessionDestroyed(HttpSessionEvent event) { if(sessions != null) { sessions.remove(event.getSession()); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with HttpSessionListener ..
Howdy, Hypothetically speaking, would your listener code works if sessions were persisted by the container prior to the contextDestroyed event? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 11:27 PM To: Tomcat Users List Subject: Problems with HttpSessionListener .. Hi, I am trying to implement the HttpSessionListener (the same class implements ServletContextListener). The code for which is below. 1. I open a browser window , use MyWebApp after logging in it. 2. I open the tomcat manager and reload my MyWebApp. I go to the console at this point and see the message - Session is already invalid. (see code below) 3. I go to my window in step 1. and click on a link to go to a particular .jsp page. I get a blank window. I check the session attributes at this point and my session attribute USER_AUTHORIZED exists and is true. step 2 s result conflicts with step 3s result. (see code below). Invalidating the session does not propagate to the client ??? What am i doing wrong ? public void contextDestroyed(ServletContextEvent sce) { // Destroy sessions. if(sessions != null) { Iterator i = sessions.iterator(); while (i.hasNext()) { HttpSession s = (HttpSession)i.next(); try { if(s != null s.getAttribute(USER_AUTHORISED) != null) { System.out.println(Invalidating session id = + s.getId()); s.invalidate(); } } catch(IllegalStateException ex) { System.out.println(Session is already invalid.); } } } // End Destroy sessions. } public void sessionCreated(HttpSessionEvent event) { if(sessions == null) sessions = new HashSet(); sessions.add(event.getSession()); } public void sessionDestroyed(HttpSessionEvent event) { if(sessions != null) { sessions.remove(event.getSession()); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Port 443 request not forwarded to Tomcat from Apache
Hi, I am trying to configure apache 2.0.46 to accept request on port 443 and route it to tomcat 4.1.27 using mod_jk. I am not using ssl yet, but it looks like calls are not forwarded to Tomcat from Apache. I am following step 1 of the following URL. http://raibledesigns.com/tomcat/ssl-howto.html http:localhost:443 works but http:localhost:443/application where the application is served by Tomcat does not work. Both of the above url work if I use port 80 instead of 443. Any help or pointers is greatly appreciated. Thanks Ramanan Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with HttpSessionListener ..
No, it would not . But if i understand it right .. .the code below in server.xml should not persist any sessions. Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager On Thursday, September 18, 2003, at 09:32 PM, Shapira, Yoav wrote: Howdy, Hypothetically speaking, would your listener code works if sessions were persisted by the container prior to the contextDestroyed event? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 11:27 PM To: Tomcat Users List Subject: Problems with HttpSessionListener .. Hi, I am trying to implement the HttpSessionListener (the same class implements ServletContextListener). The code for which is below. 1. I open a browser window , use MyWebApp after logging in it. 2. I open the tomcat manager and reload my MyWebApp. I go to the console at this point and see the message - Session is already invalid. (see code below) 3. I go to my window in step 1. and click on a link to go to a particular .jsp page. I get a blank window. I check the session attributes at this point and my session attribute USER_AUTHORIZED exists and is true. step 2 s result conflicts with step 3s result. (see code below). Invalidating the session does not propagate to the client ??? What am i doing wrong ? public void contextDestroyed(ServletContextEvent sce) { // Destroy sessions. if(sessions != null) { Iterator i = sessions.iterator(); while (i.hasNext()) { HttpSession s = (HttpSession)i.next(); try { if(s != null s.getAttribute(USER_AUTHORISED) != null) { System.out.println(Invalidating session id = + s.getId()); s.invalidate(); } } catch(IllegalStateException ex) { System.out.println(Session is already invalid.); } } } // End Destroy sessions. } public void sessionCreated(HttpSessionEvent event) { if(sessions == null) sessions = new HashSet(); sessions.add(event.getSession()); } public void sessionDestroyed(HttpSessionEvent event) { if(sessions != null) { sessions.remove(event.getSession()); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with HttpSessionListener ..
From my tests so far , i found that the user browser is storing cookies. So even when the container is not persisting sessions , the client browser tries to use the old session stored in the cookie. I was under the impression that if the user has an old session and tries to reach MyWebApp , tomcat would detect an invalid session being used and invalidate the old session . How do I deal with this problem ? On Thursday, September 18, 2003, at 09:16 AM, Mufaddal Khumri wrote: No, it would not . But if i understand it right .. .the code below in server.xml should not persist any sessions. Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager On Thursday, September 18, 2003, at 09:32 PM, Shapira, Yoav wrote: Howdy, Hypothetically speaking, would your listener code works if sessions were persisted by the container prior to the contextDestroyed event? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 11:27 PM To: Tomcat Users List Subject: Problems with HttpSessionListener .. Hi, I am trying to implement the HttpSessionListener (the same class implements ServletContextListener). The code for which is below. 1. I open a browser window , use MyWebApp after logging in it. 2. I open the tomcat manager and reload my MyWebApp. I go to the console at this point and see the message - Session is already invalid. (see code below) 3. I go to my window in step 1. and click on a link to go to a particular .jsp page. I get a blank window. I check the session attributes at this point and my session attribute USER_AUTHORIZED exists and is true. step 2 s result conflicts with step 3s result. (see code below). Invalidating the session does not propagate to the client ??? What am i doing wrong ? public void contextDestroyed(ServletContextEvent sce) { // Destroy sessions. if(sessions != null) { Iterator i = sessions.iterator(); while (i.hasNext()) { HttpSession s = (HttpSession)i.next(); try { if(s != null s.getAttribute(USER_AUTHORISED) != null) { System.out.println(Invalidating session id = + s.getId()); s.invalidate(); } } catch(IllegalStateException ex) { System.out.println(Session is already invalid.); } } } // End Destroy sessions. } public void sessionCreated(HttpSessionEvent event) { if(sessions == null) sessions = new HashSet(); sessions.add(event.getSession()); } public void sessionDestroyed(HttpSessionEvent event) { if(sessions != null) { sessions.remove(event.getSession()); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto monitor dbcp connection usage?
what I've done in the past is write a dbmanager that uses the underlying driver. my dbmanager then implements simple logging and is configurable through web.xml. can you explain and/or give an example? thx - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:09 PM Subject: Re: howto monitor dbcp connection usage? what I've done in the past is write a dbmanager that uses the underlying driver. my dbmanager then implements simple logging and is configurable through web.xml. peter Marco Baiguera [EMAIL PROTECTED] wrote: i'd like to monitor (log) dbcp connection pool usage. i'm using tomcat 4.1.27 with dbcp 1.0 and mysql (j-connector 3.0.8 - mysql 3.23) i'm investigating if my db refuses or closes the connection in fact calling datasource.getconnection sometimes returns a closed conn (?) any hint? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto monitor dbcp connection usage?
I'm kinda swamped today. a high level description is this. 1. log4j for logging 2. added configuration keys to web.xml 3. implement a database abstraction layer I. reads connection parameters from web.xml II. use connection pooling driver III. create a datasource interface for getConnection, close and so on IV. implement logic for logging 4. application uses the connection just like any other jdbc connection don't have time to go into detail. hope that helps. peter Marco Baiguera [EMAIL PROTECTED] wrote: what I've done in the past is write a dbmanager that uses the underlying driver. my dbmanager then implements simple logging and is configurable through web.xml. can you explain and/or give an example? thx - Original Message - From: Peter Lin To: Tomcat Users List Sent: Thursday, September 18, 2003 4:09 PM Subject: Re: howto monitor dbcp connection usage? what I've done in the past is write a dbmanager that uses the underlying driver. my dbmanager then implements simple logging and is configurable through web.xml. peter Marco Baiguera wrote: i'd like to monitor (log) dbcp connection pool usage. i'm using tomcat 4.1.27 with dbcp 1.0 and mysql (j-connector 3.0.8 - mysql 3.23) i'm investigating if my db refuses or closes the connection in fact calling datasource.getconnection sometimes returns a closed conn (?) any hint? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: WAR
Try Java in a Nutshell. At 08:11 AM 9/18/2003 +0100, Jerald Powel wrote: Hello, Can anyone tell me, what is the purpose of the WAR file, how does one create / implement it? Where may I find doco about WAR please? thanks J. P.S Why WAR? What does it stand for? - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR
The war file is a jar file with your web-files (and classes for servlets and other stuff you put in web-inf/classes/ ). You can use define war target in ant tool and can create a war file from it. I havn't used personally but you can serach on the net and will find lot of document. Ajay From: Micael [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Tomcat Users List [EMAIL PROTECTED] Subject: Re: WAR Date: Thu, 18 Sep 2003 10:34:37 -0700 Try Java in a Nutshell. At 08:11 AM 9/18/2003 +0100, Jerald Powel wrote: Hello, Can anyone tell me, what is the purpose of the WAR file, how does one create / implement it? Where may I find doco about WAR please? thanks J. P.S Why WAR? What does it stand for? - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Yearning for ol' pals? For ol' school days? http://www.batchmates.com/msn.asp Here's a surprise! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where To Put Resource Bundles?
I'd like to externalize my exception messages in a resource bundle. Where is the generally-accepted place to put them? Thanks - MOD __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where To Put Resource Bundles?
The jvm will look through your classpath for resource bundles. So either add the path in your classpath or stick in a place already specified in your existing classpath. -Paul -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 1:46 PM To: [EMAIL PROTECTED] Subject: Where To Put Resource Bundles? I'd like to externalize my exception messages in a resource bundle. Where is the generally-accepted place to put them? Thanks - MOD __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Coyote Performance
I did some profiling of a slow page (Struts based) on a site using the Coyote connector. This site does not use Apache. It appeared that a java.net.SocketInputStream.read being invoked from org.apache.coyote.http11.InternalInputBuffer.parseRequestLine() was causing a bottleneck. In this case average response over a 5 page interaction with three being relatively simple and two being complex averaged 35 seconds per response when repeated 20 times. I changed the site to use the old and deprecated http connector and performance improved to 4 seconds per response. It appears that the org.apache.catalina.connector.http.SocketInputStream was much faster. Since Coyote is recommended, does anyone have any ideas on how I can get it to perform better? Over dozens of tests, it appears that large pages take a long time with the Coyote connector. Thanks, David Morris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coyote Performance
David Morris wrote: I did some profiling of a slow page (Struts based) on a site using the Coyote connector. This site does not use Apache. It appeared that a java.net.SocketInputStream.read being invoked from org.apache.coyote.http11.InternalInputBuffer.parseRequestLine() was causing a bottleneck. In this case average response over a 5 page interaction with three being relatively simple and two being complex averaged 35 seconds per response when repeated 20 times. I changed the site to use the old and deprecated http connector and performance improved to 4 seconds per response. It appears that the org.apache.catalina.connector.http.SocketInputStream was much faster. Since Coyote is recommended, does anyone have any ideas on how I can get it to perform better? Over dozens of tests, it appears that large pages take a long time with the Coyote connector. You are of course free to use whatever you want, but I believe you are completely wrong ;-) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas n eeded.
you didn't provide your platform, but since *nix has tail, I'm assuming you have windows. Under windows I've never had a tomcat log file that I couldn't view, but you may not be able to use your favorite editor. Notepad has always brought the file up for me where other editors(including wordpad) can not while tomcat is running. Charlie -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:19 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Howdy, Regardless, a setup where you can't inspect log files until the end of the day is unacceptable for more people/organizations ;) Try to get that corrected... Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:17 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. We did on our last project. But it was the JVM crashing and taking Tomcat down with it. We just moved to a newer version just to make sure. Try and upgrade the JVM, what version are you using ? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 16:12 To: Tomcat Users List Subject: Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where should I put properties files
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:09 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Where should I put properties files Howdy, This is a FAQ, you could read the archives, but here's a summary of the two commons solutions: - Place properties file on classpath, use the Class#getResource or Class#getResourceAsStream method. - Please properties file anywhere under your webapp's root, and use ServletContext#getResource or ServletContext#getResourceAsStream. Yoav Shapira Millennium ChemInformatics I hate to be totally ignorant, but I can't seem to discover how my web service class gets access to ServletContext. I'm sure there's some static method in Axis that I can call, but I've just been rooting around in the source for about two hours, to no avail. Where should I be looking? -Original Message- From: Michael D. Spence [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: Where should I put properties files I have a web service (call it XYZ) which requires a .properties file. I had been putting it in %CATALINA_HOME%\webapps\axis\services\XYZ, with the classes in %CATALINA_HOME%\webapps\axis\services\WEB_INF\classes and using this to open the properties file. File PFile = new File(webapps + File.separator + axis + File.separator + services + File.separator + XYZ + File.separator + XYZ.properties); if (!PFile.exists()) throw new CFException(No properties file: + PFile.getAbsolutePath()); This works, but there are two problems: 1) If Tomcat is run as a service, I have to put the properties file in %CATALINA_HOME%\webapps\axis\services\XYZ, instead. 2) I recently ditched the classes and put XYZ.jar into %CATALINA_HOME%\webapps\axis\services\WEB_INF\lib. Now, unless I hard-code a path for the properties file (e.g., C:\XYZ.properties), the service can't find it. How is this issue normally handled? Michael D. Spence Mockingbird Data Systems, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Coyote Performance
In exactly what manner was David completely wrong? In his identification of the bottleneck? In identifying the old connector as faster? Or is there a fundamental mistake in his whole post? -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 1:02 PM To: Tomcat Users List Subject: Re: Coyote Performance David Morris wrote: I did some profiling of a slow page (Struts based) on a site using the Coyote connector. This site does not use Apache. It appeared that a java.net.SocketInputStream.read being invoked from org.apache.coyote.http11.InternalInputBuffer.parseRequestLine() was causing a bottleneck. In this case average response over a 5 page interaction with three being relatively simple and two being complex averaged 35 seconds per response when repeated 20 times. I changed the site to use the old and deprecated http connector and performance improved to 4 seconds per response. It appears that the org.apache.catalina.connector.http.SocketInputStream was much faster. Since Coyote is recommended, does anyone have any ideas on how I can get it to perform better? Over dozens of tests, it appears that large pages take a long time with the Coyote connector. You are of course free to use whatever you want, but I believe you are completely wrong ;-) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WAR
WAR stands for Web Archive Resource, it is basically a .jar file containing all the files of your web-app. If you use an IDE such as NetBeans it is very easy to create, simple right click the root folder and select Generate WAR, choose your target location to save the war file to and that is it. You can then place this .war in your tomcat/webapps folder and the next time you restart Tomcat it will unpack the .war and create a default context for your web-app as well as do any initialization you may have specified in your web.xml HTH Kind Regards Schalk Neethling Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za :: -Original Message- :: From: Micael [mailto:[EMAIL PROTECTED] :: Sent: Thursday, September 18, 2003 7:35 PM :: To: Tomcat Users List; Tomcat Users List :: Subject: Re: WAR :: :: Try Java in a Nutshell. :: :: At 08:11 AM 9/18/2003 +0100, Jerald Powel wrote: :: :: Hello, :: :: Can anyone tell me, what is the purpose of the WAR file, how does one :: create / implement it? Where may I find doco about WAR please? :: :: :: :: thanks :: :: J. :: :: P.S Why WAR? What does it stand for? :: :: :: - :: Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger :: :: :: :: LEGAL NOTICE :: :: This electronic mail transmission and any accompanying documents contain :: information belonging to the sender which may be confidential and legally :: privileged. This information is intended only for the use of the :: individual or entity to whom this electronic mail transmission was sent as :: indicated above. If you are not the intended recipient, any disclosure, :: copying, distribution, or action taken in reliance on the contents of the :: information contained in this transmission is strictly prohibited. If you :: have received this transmission in error, please delete the message. Thank :: you :: :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coyote Performance
I'm not totally clear on how you profiled the page. Did you use OptimizeIt/JProbe, or simply added a start time at the beginning and at the end. from first hand experience, I doubt the connector is the cause, but I could be wrong. What in your struts page is causing it to take 35 seconds? You might want to time the actual application process and see how much time it takes. In theory and practice reading the input into buffers scales better. What exactly does the page do with the input in the first place? peter David Morris [EMAIL PROTECTED] wrote: I did some profiling of a slow page (Struts based) on a site using the Coyote connector. This site does not use Apache. It appeared that a java.net.SocketInputStream.read being invoked from org.apache.coyote.http11.InternalInputBuffer.parseRequestLine() was causing a bottleneck. In this case average response over a 5 page interaction with three being relatively simple and two being complex averaged 35 seconds per response when repeated 20 times. I changed the site to use the old and deprecated http connector and performance improved to 4 seconds per response. It appears that the org.apache.catalina.connector.http.SocketInputStream was much faster. Since Coyote is recommended, does anyone have any ideas on how I can get it to perform better? Over dozens of tests, it appears that large pages take a long time with the Coyote connector. Thanks, David Morris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas n eeded.
You could always try Vim on windows. http://www.vim.org/ You'll never use Notepad again (well, maybe ;)) JEdit has a plug-in (LogViewer) that is effectively a GUI tail. http://www.jedit.org Or go the whole hog and install Cygwin for a bash shell with tail, vi and all manner of *nix utilities. http://www.cygwin.com All Open Source, all free. Enjoy, Jon Cox, Charlie wrote: you didn't provide your platform, but since *nix has tail, I'm assuming you have windows. Under windows I've never had a tomcat log file that I couldn't view, but you may not be able to use your favorite editor. Notepad has always brought the file up for me where other editors(including wordpad) can not while tomcat is running. Charlie -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:19 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Howdy, Regardless, a setup where you can't inspect log files until the end of the day is unacceptable for more people/organizations ;) Try to get that corrected... Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:17 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. We did on our last project. But it was the JVM crashing and taking Tomcat down with it. We just moved to a newer version just to make sure. Try and upgrade the JVM, what version are you using ? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 16:12 To: Tomcat Users List Subject: Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas n eeded.
Or something like Eclipse... It has to many plug-ins to name http://www.eclipse.org Also Open-Source Sjoerd -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: donderdag 18 september 2003 20:37 To: Tomcat Users List You could always try Vim on windows. http://www.vim.org/ You'll never use Notepad again (well, maybe ;)) JEdit has a plug-in (LogViewer) that is effectively a GUI tail. http://www.jedit.org Or go the whole hog and install Cygwin for a bash shell with tail, vi and all manner of *nix utilities. http://www.cygwin.com All Open Source, all free. Enjoy, Jon Cox, Charlie wrote: you didn't provide your platform, but since *nix has tail, I'm assuming you have windows. Under windows I've never had a tomcat log file that I couldn't view, but you may not be able to use your favorite editor. Notepad has always brought the file up for me where other editors(including wordpad) can not while tomcat is running. Charlie -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:19 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Howdy, Regardless, a setup where you can't inspect log files until the end of the day is unacceptable for more people/organizations ;) Try to get that corrected... Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:17 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. We did on our last project. But it was the JVM crashing and taking Tomcat down with it. We just moved to a newer version just to make sure. Try and upgrade the JVM, what version are you using ? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 16:12 To: Tomcat Users List Subject: Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas n eeded.
Sjoerd might be a common name in NL, but I have to ask: Did you ever work for a company called The Allied Group in CT, USA? - MOD --- Sjoerd van Leent [EMAIL PROTECTED] wrote: Or something like Eclipse... It has to many plug-ins to name http://www.eclipse.org Also Open-Source Sjoerd -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: donderdag 18 september 2003 20:37 To: Tomcat Users List You could always try Vim on windows. http://www.vim.org/ You'll never use Notepad again (well, maybe ;)) JEdit has a plug-in (LogViewer) that is effectively a GUI tail. http://www.jedit.org Or go the whole hog and install Cygwin for a bash shell with tail, vi and all manner of *nix utilities. http://www.cygwin.com All Open Source, all free. Enjoy, Jon Cox, Charlie wrote: you didn't provide your platform, but since *nix has tail, I'm assuming you have windows. Under windows I've never had a tomcat log file that I couldn't view, but you may not be able to use your favorite editor. Notepad has always brought the file up for me where other editors(including wordpad) can not while tomcat is running. Charlie -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:19 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Howdy, Regardless, a setup where you can't inspect log files until the end of the day is unacceptable for more people/organizations ;) Try to get that corrected... Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 11:17 AM To: Tomcat Users List Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. We did on our last project. But it was the JVM crashing and taking Tomcat down with it. We just moved to a newer version just to make sure. Try and upgrade the JVM, what version are you using ? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 16:12 To: Tomcat Users List Subject: Re: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. That's the problem. I can't be more specific. One moment I was clicking through the site and the next I get an Apache error saying it could not find the file. Then when I looked at the server processes Tomcat was down. Unfortunately the log file is locked so I cannot see it until I bring the machine down again at about 6pm but I doubt it will say very much either. Do you use DBCP with Tomcat 4.0.x ? Andoni. - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:48 PM Subject: RE: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Be more specific. Describe crash. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 10:55 AM To: Tomcat Users List Subject: Desperation! Tomcat crashing inexplicably. :- Fresh ideas needed. Hello, I am trying to put live a new version of my web site. The biggest change in this version is that it uses DBCP connection pooling. The problem I am having is that after a while of being live Tomcat just crashes with no warning. What are the groups experiences with Tomcat crashing? What kinds of things make it crash? I am at a loss having tried every thing I can imagine to make it work. I would be eternally grateful for any new leads. My thanks, Andoni. Tomcat 4.0.4 (crashes) Apache 1.3.26 (keeps going) DBCP Ajp13 Oracle 9i (keeps going) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CPU usage 100%
Hi, I was not using -server option. Now i changed it to -server option and also increased heap size to 512m. Still i have 100%CPU problem. When this problem occurs i can't access any page. I have to do a kill -9 on jvm and then restart the server. What should i try next. Thanks in advance Ravi - Original Message - From: Jared Walker [EMAIL PROTECTED] Date: 09 Sep 2003 14:10:13 -0500 To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: CPU usage 100% Howdy, If it does it when there is no one accessing the server then I would think its the JVM not tomcat. Check your JVM settings. If you're starting up with the -server option I've noticed that the garbage collection will show 100% cpu utilization even though the system responds fine. This may be what you are experiencing. later, -Jared On Tue, 2003-09-09 at 12:50, Shapira, Yoav wrote: Howdy, The SIGQUIT works for me even when CPU usage is 100%, so it's strange it doesn't work for you. (I'm on solaris though). One important thing to check is your JSP page; make sure you have no infinite loops or other such locks in the page. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: CPU usage 100% Hi all, I am running Tomcat 4.1 on HPUX11.11, jdk1.4.1 running a small jsp page. Tomcat hangs with 100% cpu after some time. I tried to do a kill -SIGQUIT on the process, but there is no trace dump. Trace dump works only when the cpu is not at 100% (or when tomcat is running normally). I tried using glance and checked all the threads, most of the threads are in wait state SYSTEM and 3 threads are in wait state SLEEP. These 3 threads are the ones that have high CPU time. I notice this behaviour even when no body is accessing web page. So it looks like when it is idle for a while the CPU usage goes 100%. I don't know how to debug next. I need some help in finding out why and where the CPU goes nuts. Is there anything i need to change in the config files ? Please help. Thanks in advance, Ravi -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jared Walker [EMAIL PROTECTED] ClickFind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where To Put Resource Bundles?
Thanks, Paul, I'll have to look at the docs. What I'd really like to do is put them in a WAR file and have the servlet find them in there. I COULD put them in WEB-INF/classes, as you've pointed out, but I'd really rather have them as a resource input stream that could be discovered anywhere I wanted in the WAR file. I really should examine the docs before I ask. Thanks - MOD --- Lee, PaulNYC [EMAIL PROTECTED] wrote: The jvm will look through your classpath for resource bundles. So either add the path in your classpath or stick in a place already specified in your existing classpath. -Paul -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 1:46 PM To: [EMAIL PROTECTED] Subject: Where To Put Resource Bundles? I'd like to externalize my exception messages in a resource bundle. Where is the generally-accepted place to put them? Thanks - MOD __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CPU usage 100%
Howdy, Look for infinite loops... Yoav Shapira Millennium ChemInformatics -Original Message- From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:47 PM To: Tomcat Users List Subject: RE: CPU usage 100% Hi, I was not using -server option. Now i changed it to -server option and also increased heap size to 512m. Still i have 100%CPU problem. When this problem occurs i can't access any page. I have to do a kill -9 on jvm and then restart the server. What should i try next. Thanks in advance Ravi - Original Message - From: Jared Walker [EMAIL PROTECTED] Date: 09 Sep 2003 14:10:13 -0500 To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: CPU usage 100% Howdy, If it does it when there is no one accessing the server then I would think its the JVM not tomcat. Check your JVM settings. If you're starting up with the -server option I've noticed that the garbage collection will show 100% cpu utilization even though the system responds fine. This may be what you are experiencing. later, -Jared On Tue, 2003-09-09 at 12:50, Shapira, Yoav wrote: Howdy, The SIGQUIT works for me even when CPU usage is 100%, so it's strange it doesn't work for you. (I'm on solaris though). One important thing to check is your JSP page; make sure you have no infinite loops or other such locks in the page. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: CPU usage 100% Hi all, I am running Tomcat 4.1 on HPUX11.11, jdk1.4.1 running a small jsp page. Tomcat hangs with 100% cpu after some time. I tried to do a kill -SIGQUIT on the process, but there is no trace dump. Trace dump works only when the cpu is not at 100% (or when tomcat is running normally). I tried using glance and checked all the threads, most of the threads are in wait state SYSTEM and 3 threads are in wait state SLEEP. These 3 threads are the ones that have high CPU time. I notice this behaviour even when no body is accessing web page. So it looks like when it is idle for a while the CPU usage goes 100%. I don't know how to debug next. I need some help in finding out why and where the CPU goes nuts. Is there anything i need to change in the config files ? Please help. Thanks in advance, Ravi -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jared Walker [EMAIL PROTECTED] ClickFind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- __ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where should I put properties files
Howdy, I hate to be totally ignorant, but I can't seem to discover how my web service class gets access to ServletContext. I'm sure there's some static method in Axis that I can call, but I've just been rooting around in the source for about two hours, to no avail. It depends what your web service class is. If you are extending AxisServlet or AxisServletBase, just call getServletContext() is that's available from the HttpServlet parent class. Another approach is to use a ServletContextListener which populates some singleton bean with the properties, and then have your service class access this singleton bean. The advantage here is that your service class doesn't have to worry about how the bean is populated. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Auto Form Based Logins
I was wondering if people had thoughts on the following - Is there already a way for a developer to create a session and automatically log someone in. For example, if I already know the user id and password (e.g. from another system), I would like to avoid the lazy authentication J2EE process and login the person in automatically. I know I can force a call to a protected resource and auto post the login form, but some app servers are making this easier for developer. Does Tomcat offer anything in this area? Thanks, Mark __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Benefits of increasing bufferSize in server.xml
Thanks for your help! -Hakan Kilic [EMAIL PROTECTED] + Check out PDF Converter for Microsoft® Word which lets you open PDF files right from within Microsoft Word, automatically converting them into formatted Word documents you can edit. PDF Converter is an inexpensive and simple way to transform PDF files into workable documents in a fraction of the time it would normally take to recreate your documents. If you'd like to check it out, go to: http://www.scansoft.com/pdfconverter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coyote Performance
Mike Curwen wrote: In exactly what manner was David completely wrong? In his identification of the bottleneck? In identifying the old connector as faster? Or is there a fundamental mistake in his whole post? Well, the different is so huge, it is not consistent at all with any measurement I've seen. So the most likely is an obvious mistake somewhere. Simple logic :) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auto Form Based Logins
I've implemented remember me functionality using cookies and filters for form-based authentication. You could probably do the same thing - if you can get your servers are in the same domain (and therefore you cookies can persist b/w applications). http://raibledesigns.com/training/index.jsp?topic=rememberMe HTH, Matt -Original Message- From: Mark Pfeifer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 1:21 PM To: [EMAIL PROTECTED] Subject: Auto Form Based Logins I was wondering if people had thoughts on the following - Is there already a way for a developer to create a session and automatically log someone in. For example, if I already know the user id and password (e.g. from another system), I would like to avoid the lazy authentication J2EE process and login the person in automatically. I know I can force a call to a protected resource and auto post the login form, but some app servers are making this easier for developer. Does Tomcat offer anything in this area? Thanks, Mark __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
init servlet loaded twice
I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ
RE: init servlet loaded twice
Howdy, How many declarations do you have for that servlet in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:39 PM To: '[EMAIL PROTECTED]' Subject: init servlet loaded twice I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: vertial host apache/tomcat
Hi Johan, Are the domains correctly configured in a dns somewhere? That is: when your browser requests a fqdn (fully qualified domain name), the dns needs to translate it to an IP address. You should have a DNS entry for these domains - on a dns server somewhere on the internet - on a dns server you have set up yourself Alternatively for testing: On the machine running the browser, you could put entries in the 'hosts' file. So when your browser requests a fqdn, it gets translated to an IP address. Your httpd.conf, just the last bit concerning virtual hosts could look like this. Simplified for testing and tested to work. NameVirtualHost 192.168.25.5 VirtualHost 192.168.25.5 DocumentRoot /home/httpd/htdocs/ ServerName knife.chipcity.com.au /VirtualHost VirtualHost 192.168.25.5 DocumentRoot /home/httpd/htdocs/virtual1/ ServerName fork.chipcity.com.au /VirtualHost Hope this helps, kind regards, Luke On Thu, 2003-09-18 at 17:05, Johan Louwers wrote: :-) I will post the message again that contains the original message. The question was: # --begin original message -- Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt in /export/home/www.someserver.com and placed info_mnt.txt in /export/home/mnt.someserver.com I have created 2 vertiualhosts like this in my httpd.conf: _ NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot/export/home/www.someserver.com ServerName www.someserver.com ErrorLog /export/home/log/errorlog-2 CustomLog /export/home/log/customlog-2 custom /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/mnt.someserver.com ServerName mnt.someserver.com ErrorLog /export/home/log/errorlog-1 CustomLog /export/home/log/customlog-1 custom /VirtualHost _ If open www.someserver.com/www.txt this is correct and working Then I open www.someserver.com/info_mnt.txt and this also opend. This should not be possible info_mnt.txt should only be availabale true the domain mnt.someserver.com. How is it possible I also can open it true www.someserver.com ? I also like to run jsp files under www.someserver.com and mnt.someserver.com ... people are not allowd to open documents from mnt in the www part.. How do I change the webapps dirs and make them available under http://mnt.someserver.com and http://www,someserver.com ? Thanks already, Regards. Johan. # --end original message -- - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 7:44 AM Subject: Re: vertial host apache/tomcat What's the question? Johan Louwers wrote: Luke, I placed my httpd.conf in this mail. Hope you (or someone else) knows the answer. # --BEGIN HTTPD.CONF-- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect
RE: init servlet loaded twice
One. Is it because of using tomcat manager app? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 3:41 PM To: Tomcat Users List Subject: RE: init servlet loaded twice Howdy, How many declarations do you have for that servlet in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:39 PM To: '[EMAIL PROTECTED]' Subject: init servlet loaded twice I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: init servlet loaded twice
Howdy, Reloading a webapp will cause another init of load-on-startup servlets, yes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:55 PM To: 'Tomcat Users List' Subject: RE: init servlet loaded twice One. Is it because of using tomcat manager app? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 3:41 PM To: Tomcat Users List Subject: RE: init servlet loaded twice Howdy, How many declarations do you have for that servlet in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:39 PM To: '[EMAIL PROTECTED]' Subject: init servlet loaded twice I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: init servlet loaded twice
Yeah. If I start tomcat, my init Servlet only loads once (main thread). If I deploy my webapp, my ini Servlet loads twice. So it is caused by tomcat manager app. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 4:00 PM To: Tomcat Users List Subject: RE: init servlet loaded twice Howdy, Reloading a webapp will cause another init of load-on-startup servlets, yes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:55 PM To: 'Tomcat Users List' Subject: RE: init servlet loaded twice One. Is it because of using tomcat manager app? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 3:41 PM To: Tomcat Users List Subject: RE: init servlet loaded twice Howdy, How many declarations do you have for that servlet in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:39 PM To: '[EMAIL PROTECTED]' Subject: init servlet loaded twice I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
change of context prefix
is it possible (use mod_jk) to change the context prefix? say, http://server/my_test_site - mod_jk - test_server:8009/my_site ? Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: init servlet loaded twice
Howdy, That's proper behavior by tomcat. Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:04 PM To: 'Tomcat Users List' Subject: RE: init servlet loaded twice Yeah. If I start tomcat, my init Servlet only loads once (main thread). If I deploy my webapp, my ini Servlet loads twice. So it is caused by tomcat manager app. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 4:00 PM To: Tomcat Users List Subject: RE: init servlet loaded twice Howdy, Reloading a webapp will cause another init of load-on-startup servlets, yes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:55 PM To: 'Tomcat Users List' Subject: RE: init servlet loaded twice One. Is it because of using tomcat manager app? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: September 18, 2003 3:41 PM To: Tomcat Users List Subject: RE: init servlet loaded twice Howdy, How many declarations do you have for that servlet in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:39 PM To: '[EMAIL PROTECTED]' Subject: init servlet loaded twice I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: change of context prefix
Howdy, mod_jk is not like Apache's mod_rewrite, so no. But there are other ways to accomplish this, such as a simple filter deployed at my_test_site that forwards all requests to my_site. Yoav Shapira Millennium ChemInformatics -Original Message- From: Frank Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:22 PM To: [EMAIL PROTECTED] Subject: change of context prefix is it possible (use mod_jk) to change the context prefix? say, http://server/my_test_site - mod_jk - test_server:8009/my_site ? Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: change of context prefix
Thanks for the quick reply! I was using weblogic in the past and hoping Tomcat would have similiar things as weblogic's PathTrim, PathPrepend for the plugin. Frank On Thu, 18 Sep 2003, Shapira, Yoav wrote: Howdy, mod_jk is not like Apache's mod_rewrite, so no. But there are other ways to accomplish this, such as a simple filter deployed at my_test_site that forwards all requests to my_site. Yoav Shapira Millennium ChemInformatics -Original Message- From: Frank Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:22 PM To: [EMAIL PROTECTED] Subject: change of context prefix is it possible (use mod_jk) to change the context prefix? say, http://server/my_test_site - mod_jk - test_server:8009/my_site ? Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: change of context prefix
Howdy, Nope... Those extensions are not in the servlet spec so you're not likely to find them in tomcat ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Frank Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:45 PM To: Tomcat Users List Subject: RE: change of context prefix Thanks for the quick reply! I was using weblogic in the past and hoping Tomcat would have similiar things as weblogic's PathTrim, PathPrepend for the plugin. Frank On Thu, 18 Sep 2003, Shapira, Yoav wrote: Howdy, mod_jk is not like Apache's mod_rewrite, so no. But there are other ways to accomplish this, such as a simple filter deployed at my_test_site that forwards all requests to my_site. Yoav Shapira Millennium ChemInformatics -Original Message- From: Frank Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:22 PM To: [EMAIL PROTECTED] Subject: change of context prefix is it possible (use mod_jk) to change the context prefix? say, http://server/my_test_site - mod_jk - test_server:8009/my_site ? Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disabling session management (FAQ not enough)
I would like to completely disable Tomcat session management. I'm in the process of porting a legacy app with homebrew session management from JServ to Tomcat, and I want to keep using that homebrew session management for the time being. (I'm using Tomcat 4.1.24, JDK 1.4.0.) Currently, Tomcat's StandardSessionManager is getting in the way; it * writes an empty (well, 81-byte) SESSIONS.ser for every webapp at shutdown * logs lots of stack traces at startup and shutdown, because the classes in that old session management scheme are not serializable (but they are accessible via the HttpSession objects) So, of course I consulted the FAQ, which says this: Look at the Session manager component and tweak accordingly. That sentence is actually a link to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html, which has lots of information on how to configure StandardSessionManager and PersistentSessionManager -- but nothing at all on completely disabling Tomcat's session management. Arggh. My naive attempt was to add this: Manager pathname=/dev/null / to one of my Context elements, but that didn't work -- Java barfs (EOFException) trying to read a serialized file from /dev/null. Surely someone has written a dummy session manager class that does nothing... Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting Dynamic Container information
Hello: Yoav Shapira posted this message: If you want to do it with tomcat4, search the archives: I answered this question and gave a code example (getting the Server, then the Hosts, etc.), about a month ago. It should be in the list archives. I have searched the archives extensively buthave not found that message. Can someone point me to it? Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultServlet throws a LOT of broken pipe exceptions on mp3s
Thanks for both responses. I've got a better idea now what to test. Remy's suggestion of extra bytes being written might plausible, espec. as these are Mac OS files. Sometimes the Apple resource fork messes with little server minds. In the near future, I'll also upgrade to 5.x and move audio + photos onto a different box, but that's a few regression tests away yet. I have been using telnet, jmeter and a RequestDumper valve, but I haven't set up a test plan to bang on the mp3s. Might be worth simulating 20 users on a random timer and see what happens. Anyway, thanks for the help. I'll post back any further findings in case someone's interested. Cheers, Chris on 9/18/03 5:10 AM, Tim Funk wrote: I think in 4.1.24 those messages have been eliminated. Do you get the same errors with wget or similar? It could be the player is sending wacky requests. Otherwise - at 4.0.4 - I'm out of ideas. -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: init servlet loaded twice
I've noticed that load-on-startup also causes an extra instances of jsps. I came across another thread on multiple inits (Sun forum?). The gist was that it's legitimate for the container to instantiate several of your class. Makes sense if you think about it. It's a class after all. Chris on 9/18/03 12:38 PM, Phillip Qin wrote: I was looking at my webapp log this afternoon. I use tomcat + log4j + struts. In the log, I found that my InitServlet was loaded twice. One under Thread-xxx, the other under HostConfig[localhost]. Could any body please explain? PQ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling session management (FAQ not enough)
On 18 September 2003, Greg Ward said: Surely someone has written a dummy session manager class that does nothing... OK, I took a crack at this. My first attempt at DummySessionManager looked like this: import org.apache.catalina.Manager; class DummySessionManager implements Manager { public Container getContainer() { return null; } public void setContainer(Container container) { } public DefaultContext getDefaultContext() { return null; } [... you get the idea ...] } Never mind worrying about whether all those return null statements will cause NullPointerExceptions later on; Tomcat can't even create DummySessionManager objects. (I put DummySessionManager.class in server/classes so Tomcat could at least load it.) catalina.sh run dies with this exception: java.lang.IllegalAccessException: Class org.apache.commons.digester.ObjectCreateRule can not access a member of class DummySessionManager with modifiers at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Arrggh. Now what? Do I have to add some magic to catalina.policy? (Wild guess -- so far, I have remained happily ignorant of Java security policy stuff.) Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where should I put properties files
I'm sorry, I'm still struggling with this. I've changed my service class to extend AxisServlet and can do the getResourceAsStream, but it always appears to return a null pointer. I've tried putting my properties file in the JAR, and the whole Tomcat tree is positively littered with copies (to see if the method was looking in some other directory). What I really would like to do is distribute my classes in a JAR and have the properties file be somewhere else, hopefully relative to the JAR file. Here's my class constructor: public NCNWebSvc() throws CFException { try { Properties P = new Properties(); InputStream Str = getServletContext().getResourceAsStream(NCNWebSvc.properties); P.load(Str); passphrase = P.getProperty(Passphrase); hostname = P.getProperty(Hostname); portnum = P.getProperty(Portnum); } catch (Exception ex) { throw new CFException(Error reading properties file: + ex.getMessage()); } } I always get this back: Error reading properties file: null -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:53 PM To: [EMAIL PROTECTED]; Tomcat Users List Subject: RE: Where should I put properties files Howdy, I hate to be totally ignorant, but I can't seem to discover how my web service class gets access to ServletContext. I'm sure there's some static method in Axis that I can call, but I've just been rooting around in the source for about two hours, to no avail. It depends what your web service class is. If you are extending AxisServlet or AxisServletBase, just call getServletContext() is that's available from the HttpServlet parent class. Another approach is to use a ServletContextListener which populates some singleton bean with the properties, and then have your service class access this singleton bean. The advantage here is that your service class doesn't have to worry about how the bean is populated. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coyote Performance
I hope this is a simple configuration issue. Here is my setup for the Coyote and HTTP connectors: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=95 enableLookups=true redirectPort=8443 acceptCount=10 debug0 connectionTimeout=6 useURIValidationHack=false / -vs- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=95 enableLookups=true redirectPort=8443 acceptCount=10 debug0 connectionTimeout=6 / I profiled the an offending page interaction using a tool from IBM called performance explorer. To analyze the results I used a tool from IBM called Performance Trace Data Visualizer. Compared to other tools I have used, it is more similar to JProbe than jProfiler in that it shows hierarchical clock time. This tool also tracks processor usage, inline time, locks, threads, object creation, garbage collection, etc. From what I can see there are no locking issues and the read method of java.net.SocketInputStream is taking the majority of the processing time. When I saw that the Coyote Connector was invoking the SocketInputStream.read(byte[],int,int) routine, I tried the old HTTP connector without expecting any performance change. The 8 X's performance increase was totally unexpected and I am just trying to find out how to do the right thing (use the coyote connector). In both cases there are 17 calls to with one being a thread startup. Of the 16 calls, the 15th is the one taking up the bulk of the time (6,437,348 NS vs. 5,950 - 150 NS). Thanks, David Morris [EMAIL PROTECTED] 9/18/2003 12:18:49 PM I'm not totally clear on how you profiled the page. Did you use OptimizeIt/JProbe, or simply added a start time at the beginning and at the end. from first hand experience, I doubt the connector is the cause, but I could be wrong. What in your struts page is causing it to take 35 seconds? You might want to time the actual application process and see how much time it takes. In theory and practice reading the input into buffers scales better. What exactly does the page do with the input in the first place? peter David Morris [EMAIL PROTECTED] wrote: I did some profiling of a slow page (Struts based) on a site using the Coyote connector. This site does not use Apache. It appeared that a java.net.SocketInputStream.read being invoked from org.apache.coyote.http11.InternalInputBuffer.parseRequestLine() was causing a bottleneck. In this case average response over a 5 page interaction with three being relatively simple and two being complex averaged 35 seconds per response when repeated 20 times. I changed the site to use the old and deprecated http connector and performance improved to 4 seconds per response. It appears that the org.apache.catalina.connector.http.SocketInputStream was much faster. Since Coyote is recommended, does anyone have any ideas on how I can get it to perform better? Over dozens of tests, it appears that large pages take a long time with the Coyote connector. Thanks, David Morris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coyote Performance
that is truly bizzar. Are you using any request filters? The only thing I can think of is if some request filter is processing the inputstream. By any chance, did you try the same profiling with a super simple hello_world.jsp. If you see the same exact behavior from hello_world.jsp, then it is coyote. If not, there could be something else interfering with coyote. the bug may not appear with the older connector and is the result of your page + coyote. I've seen this kind of bugs in the past. peter David Morris [EMAIL PROTECTED] wrote: I hope this is a simple configuration issue. Here is my setup for the Coyote and HTTP connectors: port=8080 minProcessors=5 maxProcessors=95 enableLookups=true redirectPort=8443 acceptCount=10 debug0 connectionTimeout=6 useURIValidationHack=false / -vs- className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=95 enableLookups=true redirectPort=8443 acceptCount=10 debug0 connectionTimeout=6 / I profiled the an offending page interaction using a tool from IBM called performance explorer. To analyze the results I used a tool from IBM called Performance Trace Data Visualizer. Compared to other tools I have used, it is more similar to JProbe than jProfiler in that it shows hierarchical clock time. This tool also tracks processor usage, inline time, locks, threads, object creation, garbage collection, etc. From what I can see there are no locking issues and the read method of java.net.SocketInputStream is taking the majority of the processing time. When I saw that the Coyote Connector was invoking the SocketInputStream.read(byte[],int,int) routine, I tried the old HTTP connector without expecting any performance change. The 8 X's performance increase was totally unexpected and I am just trying to find out how to do the right thing (use the coyote connector). In both cases there are 17 calls to with one being a thread startup. Of the 16 calls, the 15th is the one taking up the bulk of the time (6,437,348 NS vs. 5,950 - 150 NS). Thanks, David Morris [EMAIL PROTECTED] 9/18/2003 12:18:49 PM I'm not totally clear on how you profiled the page. Did you use OptimizeIt/JProbe, or simply added a start time at the beginning and at the end. from first hand experience, I doubt the connector is the cause, but I could be wrong. What in your struts page is causing it to take 35 seconds? You might want to time the actual application process and see how much time it takes. In theory and practice reading the input into buffers scales better. What exactly does the page do with the input in the first place? peter David Morris wrote: I did some profiling of a slow page (Struts based) on a site using the Coyote connector. This site does not use Apache. It appeared that a java.net.SocketInputStream.read being invoked from org.apache.coyote.http11.InternalInputBuffer.parseRequestLine() was causing a bottleneck. In this case average response over a 5 page interaction with three being relatively simple and two being complex averaged 35 seconds per response when repeated 20 times. I changed the site to use the old and deprecated http connector and performance improved to 4 seconds per response. It appears that the org.apache.catalina.connector.http.SocketInputStream was much faster. Since Coyote is recommended, does anyone have any ideas on how I can get it to perform better? Over dozens of tests, it appears that large pages take a long time with the Coyote connector. Thanks, David Morris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software