latest mod_jk version compatible with Apache 1.3.26
Hi, where can I download older versions of JK, e.g. JK 1.2.19 ? Thanks Stephanie -- Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! http://games.entertainment.gmx.net/de/entertainment/games/free - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where to get older versions of JK, e.g. JK 1.2.19 ?
Hi, where can I download older versions of JK, e.g. JK 1.2.19 ? Thanks Stephanie -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getInputStream problem
I have a JSP that looks like this: % byte[] bytes = new byte[100]; int n = request.getInputStream().read(bytes); System.out.println(Bytes len: + n); % and a python script that looks like this: import httplib h1 = httplib.HTTPConnection('localhost', 8080) h1.putrequest('POST', '/SendM9/test.jsp') h1.putheader('Content-Type','application/x-www-form-urlencoded') h1.putheader('Content-Length','4') h1.endheaders() h1.send('koko') h1.getresponse() however, I get Bytes len: -1. Looking inside the variables I see that the parameters were parsed (paremetersParsed = true). Why does the servlet take my input stream and doesn't let me parse myself the content?
tomcat hangs when connetion pooling used
Hi, I am using connection pooling for all the database transactions. I am using the following: MySql: 5.0.22 tomcat : 5.5.X Now the problem is when I run the application, it can't get the connnection from the connection pool. I tried everything like dumping all the waiting threads, killing all the tomcat processes but nothing seems to work. I can't revert back the results. I want to run the application as I was before. Any suggestions for closing all the connections (if open at all) or anything else so that I can run mu application as earlier. Thanks in advance, Mahesh
Re: where to get older versions of JK, e.g. JK 1.2.19 ?
Download Tomcat Connectors Archive That is http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/ http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ 2008/3/16, [EMAIL PROTECTED] [EMAIL PROTECTED]: where can I download older versions of JK, e.g. JK 1.2.19 ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat hangs when connetion pooling used
hai, is there any an error page that you can share ?, i am using Mysql 5.0.22 and tomcat 5.5.17 and i am always get a connection -- Salam, Andy Susanto,S.Kom == for better search http://www.slashmysearch.com/earn/id/24828 HP : 081513039998 On Sun, Mar 16, 2008 at 4:54 PM, Mahesh Viraktamath [EMAIL PROTECTED] wrote: Hi, I am using connection pooling for all the database transactions. I am using the following: MySql: 5.0.22 tomcat : 5.5.X Now the problem is when I run the application, it can't get the connnection from the connection pool. I tried everything like dumping all the waiting threads, killing all the tomcat processes but nothing seems to work. I can't revert back the results. I want to run the application as I was before. Any suggestions for closing all the connections (if open at all) or anything else so that I can run mu application as earlier. Thanks in advance, Mahesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat hangs when connetion pooling used
Thats the problem. It doesn't get any error page, it just hangs at the point of getting connection. Can you explain your contex and the datasource resource configuration? On 3/16/08, ib solution [EMAIL PROTECTED] wrote: hai, is there any an error page that you can share ?, i am using Mysql 5.0.22 and tomcat 5.5.17 and i am always get a connection -- Salam, Andy Susanto,S.Kom == for better search http://www.slashmysearch.com/earn/id/24828 HP : 081513039998 On Sun, Mar 16, 2008 at 4:54 PM, Mahesh Viraktamath [EMAIL PROTECTED] wrote: Hi, I am using connection pooling for all the database transactions. I am using the following: MySql: 5.0.22 tomcat : 5.5.X Now the problem is when I run the application, it can't get the connnection from the connection pool. I tried everything like dumping all the waiting threads, killing all the tomcat processes but nothing seems to work. I can't revert back the results. I want to run the application as I was before. Any suggestions for closing all the connections (if open at all) or anything else so that I can run mu application as earlier. Thanks in advance, Mahesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: latest mod_jk version compatible with Apache 1.3.26
[EMAIL PROTECTED] wrote: Hi, where can I download older versions of JK, e.g. JK 1.2.19 ? http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/ with some pre-built binaries from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: API call to reload Tomcat web application
jamieb wrote: Hi there I am busy implementing an auto update facility for a Tomcat web application. As part of the auto update process, the auto update code needs to unpack the changed class files and reload the Tomcat web application. I am aware that you can configure Tomcat to automatically reload the web application when class files are changed. I've decided against the use of this functionality for fear of unscheduled service disruption. My question: Is recommended way for a web application to apply an update to itself and restart itself? Is there an API call to reload the current Tomcat web application from within that application? If app auto-reload facilities are switched off, you should be able to replace WAR files safely*, and then use the built in JMX stuff to restart the webapp in question. (* If you're doing it from a remote location, be sure to send it to a safe directory /then/ do an internal copy to replace the file, rather than directly uploading to the target web app dir. Failed or slow uploads won't cause problems then.) You can also use the included Tomcat Ant tasks, I think, (see bin/catalina-tasks.xml) See also: http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html http://tomcat.apache.org/tomcat-6.0-doc/mbeans-descriptor-howto.html The Tomcat manager app uses JMX AFAIK, so you could examine the source code if you wanted to customise your own utility. p Much appreciate Jamie - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Leopard
Alan Chaney wrote: I'd guess that you copied the text in the tutorial using an editor which converted it to an RTF (Rich Text Format). The text you show in your email is rtf markup. The startup_tomcat file is a shell script which is setting the following environment variables JAVA_HOME - where you have installed our java sdk JRE_HOME - the java runtime CATALINA_HOME - the location of your tomcat files You can set these 'by hand' by typing the lines in at the command line. Its better to set them in the .bashrc file. Or you could just try starting the script from the tomcat install dir: tar -zxvf tomcat-n.m.tar.gz cd tomcat-n.m sh bin/startup.sh worked for me, on Tiger and Leopard, with no extra effort. if you need to customise the startup environment, add a script called setenv.sh to the bin dir and add your environment variables in that, (as the startup scripts check for it), rather than elsewhere. p Hope that helps maxchoc wrote: I'm trying to install Tomcat 6.0.16 on Leopard. I'm following a tutorial on http://swetnam.wordpress.com/2007/12/15/installing-apache-tomcat-6-on-os-x/ I've gotten to the point of trying to start tomcat on my mac but when in the Terminal, I get the following sh-3.2# ./start_tomcat ./start_tomcat: line 1: {rtf1ansiansicpg1252cocoartf949cocoasubrtf270: command not found ./start_tomcat: line 2: syntax error near unexpected token `}' ./start_tomcat: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}' What am I missing? Thanks marlene - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getInputStream problem
No answer yet, so I thought I'd send you this link: http://archives.java.sun.com/cgi-bin/wa?A2=ind0106L=jsp-interestF=S=P=49196 which talks about doing something of the sort, but notice, I am _not_ calling getParameter before the getInputStream, so why am I still not getting anything from it? - Original Message - From: Ofer Kalisky To: Tomcat Users List Sent: Sunday, March 16, 2008 11:53 AM Subject: getInputStream problem I have a JSP that looks like this: % byte[] bytes = new byte[100]; int n = request.getInputStream().read(bytes); System.out.println(Bytes len: + n); % and a python script that looks like this: import httplib h1 = httplib.HTTPConnection('localhost', 8080) h1.putrequest('POST', '/SendM9/test.jsp') h1.putheader('Content-Type','application/x-www-form-urlencoded') h1.putheader('Content-Length','4') h1.endheaders() h1.send('koko') h1.getresponse() however, I get Bytes len: -1. Looking inside the variables I see that the parameters were parsed (paremetersParsed = true). Why does the servlet take my input stream and doesn't let me parse myself the content? __ Information from ESET NOD32 Antivirus, version of virus signature database 2949 (20080315) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: tomcat hangs when connetion pooling used
.A quick DBCP example from DBCP 1.21 from http://commons.apache.org/dbcp/ public class Pool { private static DataSource ds; static { DriverAdapterCPDS cpds = new DriverAdapterCPDS(); cpds.setDriver(org.gjt.mm.mysql.Driver); cpds.setUrl(jdbc:mysql://localhost:3306/bookstore); cpds.setUser(foo); cpds.setPassword(null); SharedPoolDataSource tds = new SharedPoolDataSource(); tds.setConnectionPoolDataSource(cpds); tds.setMaxActive(10); tds.setMaxWait(50); ds = tds; } public static getConnection() { return ds.getConnection(); } } //This class can then be used wherever a connection is needed: Connection con = null; try { con = Pool.getConnection(); ... use the connection ... } finally { if (con != null) con.close(); }If this doesnt work for you I would check to make sure toy have the correct MYSQL drivers installed or dbcp 1.21Assuming your DB server is MYSQL 5.1 download drivers herehttp://dev.mysql.com/downloads/connector/j/5.1.htmlLet us know if you are seeing specific errors JDBC or SQL and pls include stacktraces/log infoHTHMartin - Original Message - From: Mahesh Viraktamath [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, March 16, 2008 4:54 AM Subject: tomcat hangs when connetion pooling used Hi, I am using connection pooling for all the database transactions. I am using the following: MySql: 5.0.22 tomcat : 5.5.X Now the problem is when I run the application, it can't get the connnection from the connection pool. I tried everything like dumping all the waiting threads, killing all the tomcat processes but nothing seems to work. I can't revert back the results. I want to run the application as I was before. Any suggestions for closing all the connections (if open at all) or anything else so that I can run mu application as earlier. Thanks in advance, Mahesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat hangs when connetion pooling used
Probably you are not closing connections somewhere and the maxWait property of DBCP is not set. The default is to wait indefinitely. So the tomcat is not hang, it's just waiting for a connection, but all of them are used at the moment and it keeps waiting. I believe that if you set a maxWait parameter on your datasource configuration, you will receive a timeout error or something like this. Try to find where you are not closing the connections. Always close connections on 'finally' statements of a 'try/catch/finally' structure. Att, -- Bernardo Cattapan [EMAIL PROTECTED] On Sun, Mar 16, 2008 at 9:50 AM, ib solution [EMAIL PROTECTED] wrote: hai, is there any an error page that you can share ?, i am using Mysql 5.0.22 and tomcat 5.5.17 and i am always get a connection -- Salam, Andy Susanto,S.Kom == for better search http://www.slashmysearch.com/earn/id/24828 HP : 081513039998 On Sun, Mar 16, 2008 at 4:54 PM, Mahesh Viraktamath [EMAIL PROTECTED] wrote: Hi, I am using connection pooling for all the database transactions. I am using the following: MySql: 5.0.22 tomcat : 5.5.X Now the problem is when I run the application, it can't get the connnection from the connection pool. I tried everything like dumping all the waiting threads, killing all the tomcat processes but nothing seems to work. I can't revert back the results. I want to run the application as I was before. Any suggestions for closing all the connections (if open at all) or anything else so that I can run mu application as earlier. Thanks in advance, Mahesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getInputStream problem
I am not sure this will encourage you but I've got the same setup and it works. Is that the whole jsp and nothing but? is there any servlet that does something before it? To isolate, you might want to use curl or some other tool to issue the post command. Yuval Perlov www.r-u-on.com On Mar 16, 2008, at 5:25 PM, Ofer Kalisky wrote: No answer yet, so I thought I'd send you this link: http://archives.java.sun.com/cgi-bin/wa?A2=ind0106L=jsp- interestF=S=P=49196 which talks about doing something of the sort, but notice, I am _not_ calling getParameter before the getInputStream, so why am I still not getting anything from it? - Original Message - From: Ofer Kalisky To: Tomcat Users List Sent: Sunday, March 16, 2008 11:53 AM Subject: getInputStream problem I have a JSP that looks like this: % byte[] bytes = new byte[100]; int n = request.getInputStream().read(bytes); System.out.println(Bytes len: + n); % and a python script that looks like this: import httplib h1 = httplib.HTTPConnection('localhost', 8080) h1.putrequest('POST', '/SendM9/test.jsp') h1.putheader('Content-Type','application/x-www-form-urlencoded') h1.putheader('Content-Length','4') h1.endheaders() h1.send('koko') h1.getresponse() however, I get Bytes len: -1. Looking inside the variables I see that the parameters were parsed (paremetersParsed = true). Why does the servlet take my input stream and doesn't let me parse myself the content? __ Information from ESET NOD32 Antivirus, version of virus signature database 2949 (20080315) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any way to make tomcat send the disable caching headers on all responses?
When I'm debugging javavascript code, it's really annoying when Firefox caches the javascript file (even when I've modified it). I'm familiar with the headers for disabling caching, but it's a little more annoying to emit those headers on javascript files. Unless I'm missing something, is there an easy way to make Tomcat send the disable cache headers for all responses, perhaps for a single application? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any way to make tomcat send the disable caching headers on all responses?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, Karr, David wrote: | When I'm debugging javavascript code, it's really annoying when Firefox | caches the javascript file (even when I've modified it). I'm familiar | with the headers for disabling caching, but it's a little more annoying | to emit those headers on javascript files. Unless I'm missing | something, is there an easy way to make Tomcat send the disable cache | headers for all responses, perhaps for a single application? Write a Filter. See java.servlet.Filter for more information. If you're running Apache httpd, you could use mod_headers. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfdXBsACgkQ9CaO5/Lv0PD9FQCff/+2bGldGW8YvpnKo0cDvCTN rk8AnR9q3ABIdmYbRb8NC0Rqkp5fM1ed =P8fw -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having Tomcat log through syslog
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew R Feller wrote: | Is it possible to configure Tomcat (preferably through the jsvc daemon) | to log through syslog? If so, how can it be done? The only way I can | conceive of this working is to configure Tomcat to use Log4j and | configure Log4j to use the SyslogAppender. Is there any reason not to use log4j, then? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfdYJAACgkQ9CaO5/Lv0PBS8gCfdYCKZbAJF/YgqBZApYPAwpiV I88AoKyZtDVBikYKeUQMRfH+CcEpduEi =BsW3 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getInputStream problem
Ofer Kalisky wrote: No answer yet, so I thought I'd send you this link: http://archives.java.sun.com/cgi-bin/wa?A2=ind0106L=jsp-interestF=S=P=49196 which talks about doing something of the sort, but notice, I am _not_ calling getParameter before the getInputStream, so why am I still not getting anything from it? Are you using a filter that does? Or maybe the request dumper valve? Something must be calling it as Tomcat doesn't parse the parameters unless it has to. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DBCP: Threads sitting forever in getConnection()?
HI All, I too am facing the same issue. But in contrast i have my resource setup in context.xml only But still tomcat is waiting indefinitely to to get a connection. My context file is as below ?xml version=1.0 encoding=UTF-8? Context path=/mycontextpath Resource name=jdbc/connPool auth=Container type=javax.sql.DataSource username=schot password=tiger driverClassName=org.gjt.mm.mysql.Driver url=jdbc:mysql://localhost:3306/myDb maxActive=100 maxIdle=30/ /Context the relevant thread dump is as follows http-8080-Processor2 daemon prio=10 tid=0x08374800 nid=0xef4 in Object.wait() [0xae069000..0xae069e30] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0xaf619100 (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool) at java.lang.Object.wait(Object.java:485) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java:810) - locked 0xaf619100 (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection (PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection (BasicDataSource.java:880) at com.bhagin.vaanee.util.DBConnection.init (DBConnection.java:64) at com.bhagin.vaanee.authorisation.AttributeBeanSetter.fngetSessionAttributeBean (AttributeBeanSetter.java:42) at org.apache.jsp.authorize_jsp._jspService (authorize_jsp.java:116) at org.apache.jasper.runtime.HttpJspBase.service( HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:265) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler. processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Leopard
I can't speak for the OP, but as a long time Mac user, I know TextEdit's default output is richtext. It's a really annoying behavior of TextEdit. The OP should use either vi (if they're brave or have experience in it) or a developer IDE like NetBeans or Eclipse to write the initial file. After that I believe TextEdit can be used and will leave the file as text on future saves. --David Alan Chaney wrote: I'd guess that you copied the text in the tutorial using an editor which converted it to an RTF (Rich Text Format). The text you show in your email is rtf markup. The startup_tomcat file is a shell script which is setting the following environment variables JAVA_HOME - where you have installed our java sdk JRE_HOME - the java runtime CATALINA_HOME - the location of your tomcat files You can set these 'by hand' by typing the lines in at the command line. Its better to set them in the .bashrc file. Hope that helps maxchoc wrote: I'm trying to install Tomcat 6.0.16 on Leopard. I'm following a tutorial on http://swetnam.wordpress.com/2007/12/15/installing-apache-tomcat-6-on-os-x/ I've gotten to the point of trying to start tomcat on my mac but when in the Terminal, I get the following sh-3.2# ./start_tomcat ./start_tomcat: line 1: {rtf1ansiansicpg1252cocoartf949cocoasubrtf270: command not found ./start_tomcat: line 2: syntax error near unexpected token `}' ./start_tomcat: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}' What am I missing? Thanks marlene - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DBCP: Threads sitting forever in getConnection()?
Hi. 1. Please post this in a separate thread as it's a separate issue. 2. Is this happening immediately (in the first request) after start or does it take a few requests to make it wait for a connection? If it takes a few requests, your code is not closing connection as it should. They don't close themselves -- you need to explicitly close them so they can return to the pool. --David rohitmp wrote: HI All, I too am facing the same issue. But in contrast i have my resource setup in context.xml only But still tomcat is waiting indefinitely to to get a connection. My context file is as below ?xml version=1.0 encoding=UTF-8? Context path=/mycontextpath Resource name=jdbc/connPool auth=Container type=javax.sql.DataSource username=schot password=tiger driverClassName=org.gjt.mm.mysql.Driver url=jdbc:mysql://localhost:3306/myDb maxActive=100 maxIdle=30/ /Context the relevant thread dump is as follows http-8080-Processor2 daemon prio=10 tid=0x08374800 nid=0xef4 in Object.wait() [0xae069000..0xae069e30] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0xaf619100 (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool) at java.lang.Object.wait(Object.java:485) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java:810) - locked 0xaf619100 (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection (PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection (BasicDataSource.java:880) at com.bhagin.vaanee.util.DBConnection.init (DBConnection.java:64) at com.bhagin.vaanee.authorisation.AttributeBeanSetter.fngetSessionAttributeBean (AttributeBeanSetter.java:42) at org.apache.jsp.authorize_jsp._jspService (authorize_jsp.java:116) at org.apache.jasper.runtime.HttpJspBase.service( HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:265) at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler. processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is the best way to stop the tomcat daemon?
Hi. I'm working on getting the Tomcat daemon running using jsvc. I've got it basically running (thanks, Rainer). Now I'm not sure what is the best way to stop it and to restart it. If I call # ps aux | grep tomcat this is what I get: [EMAIL PROTECTED] bin]# ps aux | grep tomcat root 4305 0.0 0.2 45856 1208 pts/0S18:30 0:00 su tomcat tomcat4306 0.0 0.2 10856 1476 pts/0S+ 18:30 0:00 bash root 4494 0.0 0.0 8000 340 ?Ss 18:58 0:00 jsvc.exec -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap -user tomcat root 4495 1.2 4.5 336120 23724 ?Sl 18:58 0:00 jsvc.exec -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap -user tomcat root 4511 0.0 0.1 5984 568 pts/1S+ 18:58 0:00 grep tomcat I could just run # kill -9 4494 and 4495, but I'm not sure it's correct to do that. Maybe it will leave things in a messed up state? Any knowledgeable advice would be appreciated. Also, what if I just want to restart Tomcat? Thanks, Ethan - ebdb http://aeondust.com -- View this message in context: http://www.nabble.com/What-is-the-best-way-to-stop-the-tomcat-daemon--tp16085458p16085458.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble building jsvc
Thanks again, Rainer. I got it working on a different machine, not generating the configure file. I don't know why the docs say to do that when it's better not to. Ethan - ebdb http://aeondust.com -- View this message in context: http://www.nabble.com/Trouble-building-jsvc-tp16055587p16085469.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Leopard
David Smith-2 wrote: I can't speak for the OP, but as a long time Mac user, I know TextEdit's default output is richtext. It's a really annoying behavior of TextEdit. The OP should use either vi (if they're brave or have experience in it) or a developer IDE like NetBeans or Eclipse to write the initial file. After that I believe TextEdit can be used and will leave the file as text on future saves. --David NetBeans and Eclipse are heavyweight IDEs and both require that you create a project before you can edit any files. They aren't very convenient for just editing random text files. If you're comfortable with the command line there are vi, emacs, joe, nano, and others. If you're accustomed to graphical tools, TextMate is good, but it's $60. There are probably free ones available. It's kind of weird that Macs don't come with a normal GUI text editor. Ethan - ebdb http://aeondust.com -- View this message in context: http://www.nabble.com/Tomcat-on-Leopard-tp16075179p16086312.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the best way to stop the tomcat daemon?
You should have gotten a sample service shell script in you jsvc source. Mine has this in the stop portion: jsvc -stop -pidfile $PID_FILE org.apache.catalina.startup.Bootstrap $PID_FILE is a shell variable containing the path of a file with the process id of the running jsvc. I customized the sample service script and dropped it in the /etc/init.d folder so I could use service tomcat55 start|stop --David jarrod wrote: Hi. I'm working on getting the Tomcat daemon running using jsvc. I've got it basically running (thanks, Rainer). Now I'm not sure what is the best way to stop it and to restart it. If I call # ps aux | grep tomcat this is what I get: [EMAIL PROTECTED] bin]# ps aux | grep tomcat root 4305 0.0 0.2 45856 1208 pts/0S18:30 0:00 su tomcat tomcat4306 0.0 0.2 10856 1476 pts/0S+ 18:30 0:00 bash root 4494 0.0 0.0 8000 340 ?Ss 18:58 0:00 jsvc.exec -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap -user tomcat root 4495 1.2 4.5 336120 23724 ?Sl 18:58 0:00 jsvc.exec -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap -user tomcat root 4511 0.0 0.1 5984 568 pts/1S+ 18:58 0:00 grep tomcat I could just run # kill -9 4494 and 4495, but I'm not sure it's correct to do that. Maybe it will leave things in a messed up state? Any knowledgeable advice would be appreciated. Also, what if I just want to restart Tomcat? Thanks, Ethan - ebdb http://aeondust.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]