How I can upgrade tomcat ship with JBoss
Hi all, Does anyone know how I can upgrade the Tomcat ship with JBoss? My current version of Tomcat is 5.5.9 and need to upgrade to at least 5.5.28 to resolve the vulnerability issue. Appreciate all your advise. Thanks, FU
RE: Tomcat shuts down with exception within few seconds?
Hi TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ] $ ping localhost ping: unknown host localhost Any alternatives With regards Karthik -Original Message- From: jie tang [mailto:crybird2...@gmail.com] Sent: Wednesday, November 03, 2010 11:26 AM To: Tomcat Users List Subject: Re: Tomcat shuts down with exception within few seconds? From the exception stack. Maybe you should use the command ping localhost to see whether your host can resolve the host-name localhost. 2010/11/3 Karthik Nanjangude karthik.nanjang...@xius-bcgi.com Hi Tomcat shuts down with exception within few seconds? SPEC Sun JDK 1.5 TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8.91 ] O/s $ uname -a Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux $ lsb_release -a LSB Version:1.3 Distributor ID: RedHatEnterpriseAS Description:Red Hat Enterprise Linux AS release 3 (Taroon) Release:3 Codename: Taroon Exception INFO: Deploying web application directory docs Nov 3, 2010 9:45:33 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory examples Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT Nov 3, 2010 9:45:34 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8090 Nov 3, 2010 9:45:34 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Nov 3, 2010 9:45:34 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/55 config=null Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1858 ms Nov 3, 2010 9:45:44 AM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8091]: java.net.UnknownHostException: localhost: localhost at java.net.InetAddress.getAllByName0(InetAddress.java:1128) at java.net.InetAddress.getAllByName0(InetAddress.java:1098) at java.net.InetAddress.getAllByName(InetAddress.java:1061) at java.net.InetAddress.getByName(InetAddress.java:958) at org.apache.catalina.core.StandardServer.await(StandardServer.java:373) at org.apache.catalina.startup.Catalina.await(Catalina.java:662) at org.apache.catalina.startup.Catalina.start(Catalina.java:614) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Nov 3, 2010 9:45:44 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8090 Nov 3, 2010 9:45:45 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Nov 3, 2010 9:45:45 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8090 with regards N.S.Karthik - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
On 03/11/2010 06:24, Caldarale, Charles R wrote: From: Vikram Vaswani [mailto:vikram.melonf...@gmail.com] Subject: Deploying Tomcat app with Ant to non-webapps location (Windows) When deployed, the application ends up at C:\program files\Tomcat\lcs (lcs is the application name). Not an appropriate spot, so it's good that you want to move it. Better if it were in C:\Program Files\Tomcat\webapps\lcs. I am able to do this manually, by creating a separate context file in Catalina/localhost/lcs.xml and specifying the C:\lcs path as the Context docbase. However, I would like this to happen automatically. What do you want to happen automatically? Once the application and the lcs.xml file are in place, the next deployment should consist only of copying the new version on top of the old one - the Context element in Catalina/[host]/[appName].xml need not change. I read that if I place the context fragment in my applications META-INF/context.xml file, then this should happen automatically. Still don't know what you want to happen. Me either. Were I to hazard a guess, I'd suggest changing the appBase to a different location, but having said that - I think setting appBase=C:\ is a bad idea. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Dispatching request from Servlet to Portlet
On 03/11/2010 06:53, sachin_nabble wrote: Hi, I am new to servlets portlets and I need to set Session timeout at Application level, OK. Which docs have you read so far? in portlet somehow i am unable to set session time for Application,( Portlet level session available in Portlet thr RenderRequest object) so i am planning to set Application level Session timeout by using Servlet. If i set Session Timeout in Servlet and then forward the request to portlet will this session timeout value will control application timeout ? or i need to use include() instead of forward() ? If you can access the HttpSession object then you can set the session timeout. It doesn't matter whether you do this in a listener or in an request, or how you then forward or include the response. I can't comment as to whether the portlet then depends on this value or sets its own. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Tomcat shuts down with exception within few seconds?
/etc/hosts 127.0.0.1 localhost.localdomain localhost On 11/3/10 8:30 AM, Karthik Nanjangude karthik.nanjang...@xius-bcgi.com wrote: Hi TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ] $ ping localhost ping: unknown host localhost Any alternatives With regards Karthik -Original Message- From: jie tang [mailto:crybird2...@gmail.com] Sent: Wednesday, November 03, 2010 11:26 AM To: Tomcat Users List Subject: Re: Tomcat shuts down with exception within few seconds? From the exception stack. Maybe you should use the command ping localhost to see whether your host can resolve the host-name localhost. 2010/11/3 Karthik Nanjangude karthik.nanjang...@xius-bcgi.com Hi Tomcat shuts down with exception within few seconds? SPEC Sun JDK 1.5 TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8.91 ] O/s $ uname -a Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux $ lsb_release -a LSB Version:1.3 Distributor ID: RedHatEnterpriseAS Description:Red Hat Enterprise Linux AS release 3 (Taroon) Release:3 Codename: Taroon Exception INFO: Deploying web application directory docs Nov 3, 2010 9:45:33 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory examples Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT Nov 3, 2010 9:45:34 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8090 Nov 3, 2010 9:45:34 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Nov 3, 2010 9:45:34 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/55 config=null Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1858 ms Nov 3, 2010 9:45:44 AM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8091]: java.net.UnknownHostException: localhost: localhost at java.net.InetAddress.getAllByName0(InetAddress.java:1128) at java.net.InetAddress.getAllByName0(InetAddress.java:1098) at java.net.InetAddress.getAllByName(InetAddress.java:1061) at java.net.InetAddress.getByName(InetAddress.java:958) at org.apache.catalina.core.StandardServer.await(StandardServer.java:373) at org.apache.catalina.startup.Catalina.await(Catalina.java:662) at org.apache.catalina.startup.Catalina.start(Catalina.java:614) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Nov 3, 2010 9:45:44 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8090 Nov 3, 2010 9:45:45 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Nov 3, 2010 9:45:45 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8090 with regards N.S.Karthik - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How I can upgrade tomcat ship with JBoss
On 03/11/2010 07:20, ww...@ogcio.gov.hk wrote: Hi all, Does anyone know how I can upgrade the Tomcat ship with JBoss? My current version of Tomcat is 5.5.9 and need to upgrade to at least 5.5.28 to resolve the vulnerability issue. Appreciate all your advise. Thanks, FU This question is probably better addressed to the JBoss community. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Tomcat shuts down with exception within few seconds?
On 03/11/2010 07:30, Karthik Nanjangude wrote: Hi TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ] Tomcat doesn't have a startup port, but why are those two ports different? $ ping localhost ping: unknown host localhost Fix your OS networking. $ cat /etc/hosts This file should normally contain: 127.0.0.1 localhost localhost.localdomain on the first line, or something very similar. What does yours contain? p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: How to stop tomcat to be run more than two times.
On 03/11/2010 03:59, Bill Wang wrote: Hi all, I have installed apache-tomcat-6.0.29 on my solaris box, then i start the tomcat services succsfully. But my question is, when the tomcat services is running, I try to start it again, the script (startup.sh) don't stop me, and start the second tomcat services. So how can I let tomcat to check, if there are exist tomcat services, do not start? Are you sure it actually starts? If the shutdown port is not -1 and is identical on the second attempt, it won't be able to bind to the port and will not start. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: web.xml cant load because of listener
On 03/11/2010 05:14, Will Sumekar wrote: Hi When I put these lines: listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener my appln can't load at all. When I go to http://localhost:8080/app it's not loaded. But when I remove those lines it loads correctly. I've put the necessary lib containing org.springframework.web.context.ContextLoaderListener in ./app/WEB-INF/lib. My setup is Tomcat 5.5.31. Context-param is set: context-param param-namecontextConfigLocation/param-name param-valueclasspath:springContext.xml/param-value /context-param No stack trace is shown. The error message in log is: 03-Nov-2010 10:21:48 INFO HostConfig:863 - Deploying web application archive wma.war 03-Nov-2010 10:21:49 ERROR StandardContext:4253 - Error listenerStart 03-Nov-2010 10:21:49 ERROR StandardContext:4280 - Context [/wma] startup failed due to previous errors When I set the logging to DEBUG level, I don't see anything extra ordinary. What about the other logs? E.g. what is in localhost_-MM-DD.log? p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: web.xml cant load because of listener
nothing... Will On Wed, Nov 3, 2010 at 3:12 PM, Pid p...@pidster.com wrote: On 03/11/2010 05:14, Will Sumekar wrote: Hi When I put these lines: listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener my appln can't load at all. When I go to http://localhost:8080/app it's not loaded. But when I remove those lines it loads correctly. I've put the necessary lib containing org.springframework.web.context.ContextLoaderListener in ./app/WEB-INF/lib. My setup is Tomcat 5.5.31. Context-param is set: context-param param-namecontextConfigLocation/param-name param-valueclasspath:springContext.xml/param-value /context-param No stack trace is shown. The error message in log is: 03-Nov-2010 10:21:48 INFO HostConfig:863 - Deploying web application archive wma.war 03-Nov-2010 10:21:49 ERROR StandardContext:4253 - Error listenerStart 03-Nov-2010 10:21:49 ERROR StandardContext:4280 - Context [/wma] startup failed due to previous errors When I set the logging to DEBUG level, I don't see anything extra ordinary. What about the other logs? E.g. what is in localhost_-MM-DD.log? p
RE: Tomcat shuts down with exception within few seconds?
Hi TOMCAT/conf/server.xml Changed the 8080 to 8090 and 8005 to 8091 Assuming some other application may be using these port /etc/hosts 127.0.0.1 localhost.localdomain localhost After applying this Tomcat is working perfectly... Thx to Brian Muha With regards karthik -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, November 03, 2010 12:40 PM To: Tomcat Users List Subject: Re: Tomcat shuts down with exception within few seconds? On 03/11/2010 07:30, Karthik Nanjangude wrote: Hi TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ] Tomcat doesn't have a startup port, but why are those two ports different? $ ping localhost ping: unknown host localhost Fix your OS networking. $ cat /etc/hosts This file should normally contain: 127.0.0.1 localhost localhost.localdomain on the first line, or something very similar. What does yours contain? p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connector Setting Problem in tomcat 6.0.29
On 02.11.2010 14:20, Caldarale, Charles R wrote: From: rujin raj [mailto:rujin...@gmail.com] Subject: Connector Setting Problem in tomcat 6.0.29 I am using tomcat 6.0.29 64 bit and java 64 1.6.0 64 bit edition.I configured the http connector minSpareThreads and MaxSpareThreads. There are no such settings for theConnector element; read the doc for the level of Tomcat you're using: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html If you want more control over the thread pool, specify anExecutor: http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html I hope I don't add to much confusion: AFAIK the settings do still exist for the AJP connectors in TC 6 even though they are removed from the docs. And yes, I think they are gone for HTTP. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Protecting static resources in IIS
Totally agree with Chuck, I would not recommend running a web server as a root/system user. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 02 November 2010 18:48 To: Tomcat Users List Subject: RE: Protecting static resources in IIS From: Richard G Curry [mailto:rgcu...@jcpenney.com] Subject: RE: Protecting static resources in IIS From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] Subject: RE: Protecting static resources in IIS Would that then result in having to run Tomcat/Apache/IIS as root/system rather than a restricted user? Yes. That sounds like a really bad idea. How so? What am I missing? Basic security philosophy, known as the principle of least privilege. Running as root/system is like walking around with a kick me sign; just wait till the hackers break into your IIS box running that way... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
Hi Charles, I am able to do this manually, by creating a separate context file in Catalina/localhost/lcs.xml and specifying the C:\lcs path as the Context docbase. However, I would like this to happen automatically. What do you want to happen automatically? Once the application and the lcs.xml file are in place, the next deployment should consist only of copying the new version on top of the old one - the Context element in Catalina/[host]/[appName].xml need not change. Sorry if I wasn't clear. Let me try to explain better: By default, when I compile and install the application named 'lcs' with Ant, it is installed to the Tomcat webapps directory. So the path is $Tomcat\webapps\lcs. I would instead like to have it installed to c:\lcs I would also like requests for /lcs to be served from the c:\lcs directory. I'm able to do this manually: I copy the application manually from $Tomcat\webapps\lcs to c:\lcs, set up an lcs.xml context fragment in Catalina/localhost, and it works the way I want it to. However, when I next compile and install the app with Ant, it is again deployed to $Tomcat\webapps\lcs, when instead I'd like it to go to c:\lcs. Does that make sense? From my reading of the manual, it seems like this is possible but I'm not able to get it working in practice. However, despite doing this, the application is still always deployed to C:\program files\Tomcat\webapps\lcs instead of C:\lcs. So fix your script to copy the webapp to the desired location. When you say your script, which script do you mean? I'm using the standard Ant build.xml that's shown in the Tomcat online docs. Thanks, Vikram - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Discover the Datasource connection pool maxSize.
Hello. i've not access to Tomcat's server.xml where the sysadmins defined a resource: Resource driverClassName=oracle.jdbc.driver.OracleDriver maxActive=65 maxIdle=30 maxWait=5 name=myDatasource type=javax.sql.DataSource url=jdbc:. / I wish to discover from a web appplication deployed on that Tomcat what's the configuration maxActive for myDatasource. Is there a way to discover it? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ISAPI-Problem
On 29.10.2010 09:18, Jost Richstein wrote: On 27.10.2010 15:24, Jost Richstein wrote: that is the log output with log level info: Double check: no other message betwen about 09:00 and the following line which is marked with 3076:4308]? No, I copied it directly from the log file. I have always these 5 lines of output grouped together. However I have the same lines in that case at 09:04:05. Rainer, I checked the complete log file. There are no other messages for hours, except these group of entries. IIS was restarted at 01:30. However it sometimes says closing socket -1. Looks strange, because I think -1 is not a valid socket number: jk_ajp_common.c (1490): (ajp13_internet) did not receive END_RESPONSE, closing socket -1 Could the problem be related to http://issues.apache.org/bugzilla/show_bug.cgi?id=49413 that was fixed in version 1.2.31? Or other AJP fixes in Tomcat since version 5.5.27? I see some responses to earlier requests just before the error occurs with content-length=0, what is correct in that situation, but could that cause the error afterwards? [Fri Oct 29 09:04:15.312 2010] [3076:4308] [info] ajp_service::jk_ajp_common.c (2540): (ajp13_internet) sending request to tomcat failed (recoverable), because of server error (attempt=1) [Fri Oct 29 09:04:15.483 2010] [3076:4308] [info] ajp_send_request::jk_ajp_common.c (1490): (ajp13_internet) did not receive END_RESPONSE, closing socket 1628 [Fri Oct 29 09:04:15.546 2010] [3076:4308] [info] ajp_service::jk_ajp_common.c (2540): (ajp13_internet) sending request to tomcat failed (recoverable), because of server error (attempt=2) [Fri Oct 29 09:04:15.593 2010] [3076:4308] [error] ajp_service::jk_ajp_common.c (2559): (ajp13_internet) connecting to tomcat failed. [Fri Oct 29 09:04:15.655 2010] [3076:4308] [error] HttpExtensionProc::jk_isapi_plugin.c (2195): service() failed with http error 500 I still have no other info, in particular no log entry in Tomcat or my applications indicating an error in Tomcat or my apps. The problem came in after we switched from Version 1.2.14 to 1.2.30 of the redirector dll. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
On 11/3/2010 5:26 AM, Vikram Vaswani wrote: Hi Charles, I am able to do this manually, by creating a separate context file in Catalina/localhost/lcs.xml and specifying the C:\lcs path as the Context docbase. However, I would like this to happen automatically. What do you want to happen automatically? Once the application and the lcs.xml file are in place, the next deployment should consist only of copying the new version on top of the old one - theContext element in Catalina/[host]/[appName].xml need not change. Sorry if I wasn't clear. Let me try to explain better: By default, when I compile and install the application named 'lcs' with Ant, it is installed to the Tomcat webapps directory. So the path is $Tomcat\webapps\lcs. I would instead like to have it installed to c:\lcs I would also like requests for /lcs to be served from the c:\lcs directory. I'm able to do this manually: I copy the application manually from $Tomcat\webapps\lcs to c:\lcs, set up an lcs.xml context fragment in Catalina/localhost, and it works the way I want it to. However, when I next compile and install the app with Ant, it is again deployed to $Tomcat\webapps\lcs, when instead I'd like it to go to c:\lcs. Does that make sense? From my reading of the manual, it seems like this is possible but I'm not able to get it working in practice. However, despite doing this, the application is still always deployed to C:\program files\Tomcat\webapps\lcs instead of C:\lcs. So fix your script to copy the webapp to the desired location. When you say your script, which script do you mean? I'm using the standard Ant build.xml that's shown in the Tomcat online docs. That's the script you need to change; point it to where you want your app to end up. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: web.xml cant load because of listener
Is listener in the proper place? I think order matters in web.xml. I load 2 listeners after my app's description and before my servlet tags. On Wed, Nov 3, 2010 at 12:14 AM, Will Sumekar will.sume...@gmail.comwrote: Hi When I put these lines: listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener my appln can't load at all. When I go to http://localhost:8080/app it's not loaded. But when I remove those lines it loads correctly. I've put the necessary lib containing org.springframework.web.context.ContextLoaderListener in ./app/WEB-INF/lib. My setup is Tomcat 5.5.31. Context-param is set: context-param param-namecontextConfigLocation/param-name param-valueclasspath:springContext.xml/param-value /context-param No stack trace is shown. The error message in log is: 03-Nov-2010 10:21:48 INFO HostConfig:863 - Deploying web application archive wma.war 03-Nov-2010 10:21:49 ERROR StandardContext:4253 - Error listenerStart 03-Nov-2010 10:21:49 ERROR StandardContext:4280 - Context [/wma] startup failed due to previous errors When I set the logging to DEBUG level, I don't see anything extra ordinary. Thanks Will -- Hell hath no limits, nor is circumscrib'd In one self-place; but where we are is hell, And where hell is, there must we ever be --Christopher Marlowe, *Doctor Faustus* (v, 121-24)
RE: Discover the Datasource connection pool maxSize.
The following code fragment is used to auto create the datasource pool and you can then use tds.getMaxWait etc. not sure if this is going to help you with a tomcat specified connection pool but might give you some pointers... DriverAdapterCPDS cpds = new DriverAdapterCPDS(); ConnectionDetails objDetails = new ConnectionDetails(datasource); try { cpds.setDriver(objDetails.getDriver()); // org.gjt.mm.mysql.Driver } catch (ClassNotFoundException e) { log.error(e.getMessage()); log.debug(StackTrace : , e); } cpds.setUrl(objDetails.getUrl()); // jdbc:mysql://localhost:3306/bookstore cpds.setUser(objDetails.getUsername()); cpds.setPassword(objDetails.getPassword()); SharedPoolDataSource tds = new SharedPoolDataSource(); tds.setConnectionPoolDataSource(cpds); tds.setMaxActive(Config.getParamAsInt(pool.max.active)); tds.setMaxWait(Config.getParamAsInt(pool.max.wait)); tds.setMaxIdle(Config.getParamAsInt(pool.max.idle)); tds.setTestOnBorrow(Config.getParamAsBoolean(pool.test.on.borrow)); tds.setTestOnReturn(Config.getParamAsBoolean(pool.test.on.return)); tds.setTestWhileIdle(Config.getParamAsBoolean(pool.test.while.idle)); -Original Message- From: GF [mailto:gan...@gmail.com] Sent: 03 November 2010 11:16 To: Tomcat Users List Subject: Discover the Datasource connection pool maxSize. Hello. i've not access to Tomcat's server.xml where the sysadmins defined a resource: Resource driverClassName=oracle.jdbc.driver.OracleDriver maxActive=65 maxIdle=30 maxWait=5 name=myDatasource type=javax.sql.DataSource url=jdbc:. / I wish to discover from a web appplication deployed on that Tomcat what's the configuration maxActive for myDatasource. Is there a way to discover it? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: web.xml cant load because of listener
Check all the files in the log dir. There should be an exception there with ContextLoaderListener throwing some exception. (Probably a SaxException) -Tim On 11/3/2010 12:14 AM, Will Sumekar wrote: Hi When I put these lines: listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener my appln can't load at all. When I go to http://localhost:8080/app it's not loaded. But when I remove those lines it loads correctly. I've put the necessary lib containing org.springframework.web.context.ContextLoaderListener in ./app/WEB-INF/lib. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Trouble with writing TC 7.0.x unit tests
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm having trouble understanding the behavior of a unit test I'm writing against TC 7.0.x trunk to prepare for testing a patch. I happen to be working in org/apache/catalina/connector/TestRequest.java and my test method contains the following code: // set up my test System.out.println(Checking assertions); assertTrue(Non-200 response for POST request, client.isResponse200()); assertEquals(Incorrect response for POST request, foo=bar,bar=baz, client.getResponseBody()); System.out.println(Looking good so far!); I get this output when running the test: [lots of output from other tests, setup messages, etc] [junit] = INFO == [junit] Response: HTTP/1.1 200 OK [junit] Headers: [Server: Apache-Coyote/1.1, Content-Type: text/plain;charset=UTF-8, Content-Length: 7, Date: Wed, 03 Nov 2010 12:57:46 GMT, Connection: close] [junit] Response body: foo=bar [junit] Checking assertions [junit] Nov 3, 2010 8:57:47 AM org.apache.coyote.http11.AbstractHttp11Protocol pause [junit] INFO: Pausing Coyote HTTP/1.1 on http-8006 [lots more shutdown messages] I'm confused as to why I'm not getting an AssertionError thrown from this method, as I'm expecting client.getRequestBody() to return foo=bar,bar=baz but I'm getting only foo=bar. I never see the message Looking good so far! so I suspect that the assertion is actually failing, but it looks like it's being swallowed somewhere. I have no try/catch blocks in my unit test method, and it looks like I'm using the assert methods in the same way as other tests in the same file. Can anyone offer any suggestions or pointers? Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRXucACgkQ9CaO5/Lv0PBbEQCgu8rdDthqYI5FgZFUIIoEx/kq 8DQAn1F3ikT7YHAEHvUv3jpPYUCjL4oa =7ujU -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
Hi David, When you say your script, which script do you mean? I'm using the standard Ant build.xml that's shown in the Tomcat online docs. That's the script you need to change; point it to where you want your app to end up. Can you suggest which properties I should change in this file or point me to a link that shows how to change it? The one I'm using right now is this one, which is the default one shown in the Tomcat docs: http://tomcat.apache.org/tomcat-7.0-doc/appdev/build.xml.txt Vikram - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble with writing TC 7.0.x unit tests
On 03/11/2010 09:08, Christopher Schultz wrote: All, I'm having trouble understanding the behavior of a unit test I'm writing against TC 7.0.x trunk to prepare for testing a patch. I happen to be working in org/apache/catalina/connector/TestRequest.java and my test method contains the following code: Nothing obvious but if you find me at ApacheCon I'll take a look. I should be easy to find, I'm wearing an ASF infra t-shirt and baseball cap and have my (very) bright yellow Tomcat bag with me. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
IIS-Tomcat Integration
We are trying to integrate IIS and Tomcat. We get the Service temporarily unavailable or Bad Gateway message. isapi_redirect.properties extension_uri=/tomcat/isapi_redirect.dll log_file=C:\apps\Tomcat 6.0\logs\jk_iis.log log_level=trace worker_file=C:\apps\Tomcat 6.0\conf\workers.properties worker_mount_file=C:\apps\Tomcat 6.0\conf\uriworkermap.properties workers.properties worker.list=testWorker worker.testWorker.type=ajp13 worker.testWorker.host=localhost worker.testWorker.port=8009 worker.testWorker.ping_mode=A worker.testWorker.socket_timeout=60 worker.testWorker.prepost_timeout=1 worker.testWorker.socket_connect_timeout=1 worker.testWorker.connection_pool_size=200 worker.testWorker.connection_pool_timeout=300 worker.testWorker.retries=20 worker.testWorker.socket_keepalive=1 worker.testWorker.socket_timeout=10 worker.testWorker.cachesize=10 worker.testWorker.cache_timeout=600 Error: 2): (testWorker) cping/cpong after connecting to the backend server failed (errno=60) [Tue Nov 02 15:59:57.941 2010] [2000:2584] [trace] jk_ajp_common.c (996): exit [Tue Nov 02 15:59:57.941 2010] [2000:2584] [error] jk_ajp_common.c (1585): (testWorker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=60) [Tue Nov 02 15:59:57.941 2010] [2000:2584] [trace] jk_ajp_common.c (1589): exit [Tue Nov 02 15:59:57.941 2010] [2000:2584] [info] jk_ajp_common.c (2540): (testWorker) sending request to tomcat failed (recoverable), because of error during request sending (attempt=17) [Tue Nov 02 15:59:57.941 2010] [2000:2584] [trace] jk_ajp_common.c (801): enter Any help would be greatly appreciated. I can do a screen share if that will help resolve the issue. Thanks! -- View this message in context: http://old.nabble.com/IIS-Tomcat-Integration-tp30122863p30122863.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: Trouble with writing TC 7.0.x unit tests
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/3/2010 9:15 AM, Mark Thomas wrote: On 03/11/2010 09:08, Christopher Schultz wrote: All, I'm having trouble understanding the behavior of a unit test I'm writing against TC 7.0.x trunk to prepare for testing a patch. I happen to be working in org/apache/catalina/connector/TestRequest.java and my test method contains the following code: Nothing obvious but if you find me at ApacheCon I'll take a look. I should be easy to find, I'm wearing an ASF infra t-shirt and baseball cap and have my (very) bright yellow Tomcat bag with me. Sounds good. Maybe today at lunch? I'd be happy to have others join us as well if they are interested. I'm wearing a black turtleneck and really nothing eye-catching. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRZmkACgkQ9CaO5/Lv0PAqLgCdHi/o/H/4H9wG4dNYkBdoxwFh Hp4An0YM6K3jDQj1AzLusPq/+3HFItp3 =2Aih -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Connection Leak
Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true accessToUnderlyingConnectionAllowed=true / I am trying to find out areas of the application where connections are NOT being closed. I added the removeAbandoned and logAbandoned clauses in my context file but if i check v$session on oracle it is still showing the same number of connections active even after 60 seconds. Is there something wrong in the configuration above? How exactly does it abandone the connections? what triggers it?
Re: Discover the Datasource connection pool maxSize.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 GF, On 11/3/2010 7:15 AM, GF wrote: i've not access to Tomcat's server.xml where the sysadmins defined a resource: Resource driverClassName=oracle.jdbc.driver.OracleDriver maxActive=65 maxIdle=30 maxWait=5 name=myDatasource type=javax.sql.DataSource url=jdbc:. / I wish to discover from a web appplication deployed on that Tomcat what's the configuration maxActive for myDatasource. Try something like this: import org.apache.tomcat.dbcp.dbcp.BasicDataSource; ... DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/myDataSource); if(ds instanceof BasicDataSource) { BasicDataSource bds = (BasicDataSource)ds; maxActiveConnections = bds.getMaxActive(); maxIdleConnections = bds.getMaxIdle(); minIdleConnections = bds.getMinIdle(); activeConnections = bds.getNumActive(); idleConnections = bds.getNumIdle(); } - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRZ/AACgkQ9CaO5/Lv0PBZ9gCfZjFjk57HQJ0TkCX3DLJ7qwg0 xIwAnjlfrs9tNXk5URhrLYGHUzgSMTi/ =i8zY -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: IIS-Tomcat Integration
From: sbpdvlpr [mailto:shubh...@yahoo.com] Subject: IIS-Tomcat Integration We are trying to integrate IIS and Tomcat. We get the Service temporarily unavailable or Bad Gateway message. You gave us the IIS side of the configuration, but not Tomcat's server.xml - which is rather critical. Also tell us the *exact* versions of Tomcat and mod_jk you're using, and how you start Tomcat. Are you sure Tomcat is running? Do you have any firewalls between IIS and Tomcat that might be blocking traffic? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Leak
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 11/3/2010 9:44 AM, Ziggy wrote: Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true accessToUnderlyingConnectionAllowed=true / I am trying to find out areas of the application where connections are NOT being closed. I added the removeAbandoned and logAbandoned clauses in my context file but if i check v$session on oracle it is still showing the same number of connections active even after 60 seconds. Is there something wrong in the configuration above? Tip: try setting maxActive=1 in development. You'll run across connection leaks much faster that way. How exactly does it abandone the connections? what triggers it? Read (the end of the) configuration docs for commons-dbcp, which is the basis for connection pooling in Tomcat: http://commons.apache.org/dbcp/configuration.html - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRaN8ACgkQ9CaO5/Lv0PDstgCfYQAuiuuVkY2Rn8yb5S9sejNI SUcAn0ZeJN6rceOFscp8DncfdReqSAYK =QFUQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Dispatching request from Servlet to Portlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sachin, On 11/3/2010 1:53 AM, sachin_nabble wrote: I am new to servlets portlets and I need to set Session timeout at Application level, in portlet somehow i am unable to set session time for Application,( Portlet level session available in Portlet thr RenderRequest object) so i am planning to set Application level Session timeout by using Servlet. If i set Session Timeout in Servlet and then forward the request to portlet will this session timeout value will control application timeout ? or i need to use include() instead of forward() ? You may be better off using a Filter (which is invoked before a servlet) instead of an actual Servlet. You ought to be able to configure your Filter to run against requests that will be routed to the portlet without having to explicitly route those requests yourself. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRaWoACgkQ9CaO5/Lv0PDz/ACgqbhbD0KNlNbmaH/Ta715gWDG dmQAnArwdkoQF76tKQFLGy8JtUyxeZCv =X8BD -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Release COM Objects
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, On 11/2/2010 5:05 PM, Len Popp wrote: I would use a ServletContextListener. It gets notified when the webapp is initialized and destroyed. The only problem with this is that you may encounter problems with re-deployment when those COM objects need to be re-established. You'll need to be careful about how you initialize the native library and then perform your setup: if you do it like this: try { System.loadLibrary(); JavaComObject jco = new JavaComObject(); jco.setup(); } ... then you're likely to fail since loadLibrary() can only be called once during the lifetime of the JVM. Instead, you'll have to do something like this: try { System.loadLibrary(); } catch (/* whatever gets thrown on a double-loadLibrary */) { // ignore me } JavaComObject jco = new JavaComObject(); jco.setup(); Often, native wrappers try to perform their own initialization and loadLibrary calls, which may not expect you to use the safer code shown above. Good luck! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRa0MACgkQ9CaO5/Lv0PChmwCgs67YhcuNXLt9+ZIjbkoi3/L5 qOcAoI9EvsHHpmyZ70ZNqRty+cDhjSi9 =mSxe -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Leak
Since you're using an Oracle database - another way to identify areas in your code that aren't closing connections. In the sql below substitute YOURDBUSER with the name of the database user your connections connect to your database with and YOURWEBSERVER with the name of your webserver. The results of the sql query will give you the last executed sql for each of the open connections. Then search your code for where this sql is being executed and double check you are closing the connection appropriately. SELECT username, machine, oc.sql_text, COUNT(*) open_statements FROM v$session vs, v$open_cursor oc WHERE username = 'YOURDBUSER' AND machine = 'YOURWEBSERVER' AND oc.sid = vs.sid GROUP BY username, machine, oc.sql_text ORDER BY open_statements DESC On Wed, Nov 3, 2010 at 6:44 AM, Ziggy zigg...@gmail.com wrote: Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true accessToUnderlyingConnectionAllowed=true / I am trying to find out areas of the application where connections are NOT being closed. I added the removeAbandoned and logAbandoned clauses in my context file but if i check v$session on oracle it is still showing the same number of connections active even after 60 seconds. Is there something wrong in the configuration above? How exactly does it abandone the connections? what triggers it?
Setting up cluster question
I'm trying to set up my first cluster and am trying to understand some things. I am using the latest downloads of Apache 2.2 and Tomcat 6.0.29, all on some form of Windows. Currently, I just trying to test the setup using the basic install of Tomcat, no webapps loaded yet. My real issue is the proper setting up of the ProxyPass directives on the Apache server. Here are the relevant portions of httpd.conf: # Example: # LoadModule foo_module modules/mod_foo.so # LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_alias_module modules/mod_authn_alias.so #LoadModule authn_anon_module modules/mod_authn_anon.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cache_module modules/mod_cache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule headers_module modules/mod_headers.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule reqtimeout_module modules/mod_reqtimeout.so #LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so ... Location /balancer-manager SetHandler balancer-manager # Order Deny,Allow # Deny from all # Allow from 10.1.1.0, 127.0.0.1 /Location ProxyPass / balancer://mycluster stickysession=JSESSIONID|jsessionid scolonpathdelim=On Proxy balancer://mycluster BalancerMember ajp://prtltest01:8009 route=tomcat1 loadfactor=50 BalancerMember ajp://prtltest02:8009 route=tomcat2 loadfactor=50 /Proxy The problem is that while I get the Tomcat welcome page, I don't get any of the graphics and none of the links work. If I change the ProxyPass to ProxyPassMatch then it works. The errors I get from Apache are: [Tue Nov 02 18:19:24 2010] [warn] proxy: No protocol handler was valid for the URL /tomcat.gif. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the
question for next Tomcat 6.0 release
Hi I am wondering if someone knows about release scheduled for next version : Tomcat v6.0.30 or any release schedule in next six month. I am currently running tomcat 6.0.26 [my development box with single instance configuration] and 6.0.28 on my test environment [two node cluster] and it is getting time to consider to upgrade to the latest. I do not think we will test tomcat 7 at this moment. Thanks, yasushi ### This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. ###
RE: IIS-Tomcat Integration
A side question: why are you doing this IIS + Tomcat integration? Thx dB. dB. @ dblock.org Moscow|Geneva|Seattle|New York -Original Message- From: sbpdvlpr [mailto:shubh...@yahoo.com] Sent: Wednesday, November 03, 2010 9:39 AM To: users@tomcat.apache.org Subject: IIS-Tomcat Integration We are trying to integrate IIS and Tomcat. We get the Service temporarily unavailable or Bad Gateway message. isapi_redirect.properties extension_uri=/tomcat/isapi_redirect.dll log_file=C:\apps\Tomcat 6.0\logs\jk_iis.log log_level=trace worker_file=C:\apps\Tomcat 6.0\conf\workers.properties worker_mount_file=C:\apps\Tomcat 6.0\conf\uriworkermap.properties workers.properties worker.list=testWorker worker.testWorker.type=ajp13 worker.testWorker.host=localhost worker.testWorker.port=8009 worker.testWorker.ping_mode=A worker.testWorker.socket_timeout=60 worker.testWorker.prepost_timeout=1 worker.testWorker.socket_connect_timeout=1 worker.testWorker.connection_pool_size=200 worker.testWorker.connection_pool_timeout=300 worker.testWorker.retries=20 worker.testWorker.socket_keepalive=1 worker.testWorker.socket_timeout=10 worker.testWorker.cachesize=10 worker.testWorker.cache_timeout=600 Error: 2): (testWorker) cping/cpong after connecting to the backend server failed (errno=60) [Tue Nov 02 15:59:57.941 2010] [2000:2584] [trace] jk_ajp_common.c (996): exit [Tue Nov 02 15:59:57.941 2010] [2000:2584] [error] jk_ajp_common.c (1585): (testWorker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=60) [Tue Nov 02 15:59:57.941 2010] [2000:2584] [trace] jk_ajp_common.c (1589): exit [Tue Nov 02 15:59:57.941 2010] [2000:2584] [info] jk_ajp_common.c (2540): (testWorker) sending request to tomcat failed (recoverable), because of error during request sending (attempt=17) [Tue Nov 02 15:59:57.941 2010] [2000:2584] [trace] jk_ajp_common.c (801): enter Any help would be greatly appreciated. I can do a screen share if that will help resolve the issue. Thanks! -- View this message in context: http://old.nabble.com/IIS-Tomcat-Integration-tp30122863p30122863.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
session listener and tomcat restart
My requirements: 1) to be able to get the session given a JSESSIONID 2) to persist active sessions across tomcat restart (which is default tomcat behavior) Since there is no way in tomcat (for security reasons?) to obtain the session object given a JSESSIONID, I have implemented my own session listener, which maintains a hash of active sessions. Now I can obtain the session object given a JSESSIONID. However I am broken on tomcat restart. Because session listener does not notify me on the pre-existing active sessions upon restart. One solution is to implement my own persistence in my session listener code. Q1. However I was wondering if there is a way to influence session listener to notify me on the pre-existing active sessions upon tomcat restart? Q2. Is there another way to get the session given a JSESSIONID? Thanks. -Ajay
RE: Connection Leak
Maybe try adding this, too as an attribute in the Resource tag. timeBetweenEvictionRunsMillis=-1 -Original Message- From: Jason Britton [mailto:jbritto...@gmail.com] Sent: Wednesday, November 03, 2010 9:05 AM To: Tomcat Users List Subject: Re: Connection Leak Since you're using an Oracle database - another way to identify areas in your code that aren't closing connections. In the sql below substitute YOURDBUSER with the name of the database user your connections connect to your database with and YOURWEBSERVER with the name of your webserver. The results of the sql query will give you the last executed sql for each of the open connections. Then search your code for where this sql is being executed and double check you are closing the connection appropriately. SELECT username, machine, oc.sql_text, COUNT(*) open_statements FROM v$session vs, v$open_cursor oc WHERE username = 'YOURDBUSER' AND machine = 'YOURWEBSERVER' AND oc.sid = vs.sid GROUP BY username, machine, oc.sql_text ORDER BY open_statements DESC On Wed, Nov 3, 2010 at 6:44 AM, Ziggy zigg...@gmail.com wrote: Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true accessToUnderlyingConnectionAllowed=true / I am trying to find out areas of the application where connections are NOT being closed. I added the removeAbandoned and logAbandoned clauses in my context file but if i check v$session on oracle it is still showing the same number of connections active even after 60 seconds. Is there something wrong in the configuration above? How exactly does it abandone the connections? what triggers it? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Leak
Does that show cached queries? On Wed, Nov 3, 2010 at 4:02 PM, Propes, Barry L barry.l.pro...@citi.comwrote: Maybe try adding this, too as an attribute in the Resource tag. timeBetweenEvictionRunsMillis=-1 -Original Message- From: Jason Britton [mailto:jbritto...@gmail.com] Sent: Wednesday, November 03, 2010 9:05 AM To: Tomcat Users List Subject: Re: Connection Leak Since you're using an Oracle database - another way to identify areas in your code that aren't closing connections. In the sql below substitute YOURDBUSER with the name of the database user your connections connect to your database with and YOURWEBSERVER with the name of your webserver. The results of the sql query will give you the last executed sql for each of the open connections. Then search your code for where this sql is being executed and double check you are closing the connection appropriately. SELECT username, machine, oc.sql_text, COUNT(*) open_statements FROM v$session vs, v$open_cursor oc WHERE username = 'YOURDBUSER' AND machine = 'YOURWEBSERVER' AND oc.sid = vs.sid GROUP BY username, machine, oc.sql_text ORDER BY open_statements DESC On Wed, Nov 3, 2010 at 6:44 AM, Ziggy zigg...@gmail.com wrote: Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true accessToUnderlyingConnectionAllowed=true / I am trying to find out areas of the application where connections are NOT being closed. I added the removeAbandoned and logAbandoned clauses in my context file but if i check v$session on oracle it is still showing the same number of connections active even after 60 seconds. Is there something wrong in the configuration above? How exactly does it abandone the connections? what triggers it? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: session listener and tomcat restart
I have found the answer and let me share it with others. The solution is HttpSessionActivationListener. Write a class that implements HttpSessionActivationListener. And to your session add an attribute of this type. That's it. This doesn't go into web.xml (unlike HttpSessionListener). -Ajay -Original Message- From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] Sent: Wednesday, November 03, 2010 11:34 AM To: Tomcat Users List Subject: session listener and tomcat restart My requirements: 1) to be able to get the session given a JSESSIONID 2) to persist active sessions across tomcat restart (which is default tomcat behavior) Since there is no way in tomcat (for security reasons?) to obtain the session object given a JSESSIONID, I have implemented my own session listener, which maintains a hash of active sessions. Now I can obtain the session object given a JSESSIONID. However I am broken on tomcat restart. Because session listener does not notify me on the pre-existing active sessions upon restart. One solution is to implement my own persistence in my session listener code. Q1. However I was wondering if there is a way to influence session listener to notify me on the pre-existing active sessions upon tomcat restart? Q2. Is there another way to get the session given a JSESSIONID? Thanks. -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
Hi David, When you say your script, which script do you mean? I'm using the standard Ant build.xml that's shown in the Tomcat online docs. That's the script you need to change; point it to where you want your app to end up. Can you suggest which properties I should change in this file or point me to a link that shows how to change it? The one I'm using right now is this one, which is the default one shown in the Tomcat docs: http://tomcat.apache.org/tomcat-7.0-doc/appdev/build.xml.txt Vikram - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying Tomcat app with Ant to non-webapps location (Windows)
On 11/3/2010 1:02 PM, Vikram Vaswani wrote: Hi David, When you say your script, which script do you mean? I'm using the standard Ant build.xml that's shown in the Tomcat online docs. That's the script you need to change; point it to where you want your app to end up. Can you suggest which properties I should change in this file or point me to a link that shows how to change it? The one I'm using right now is this one, which is the default one shown in the Tomcat docs: http://tomcat.apache.org/tomcat-7.0-doc/appdev/build.xml.txt I don't use ant, but from a quick look, I would guess it's the dist.home property. Or it may need a new one telling it where to copy everything once it's done building. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Connection Leak
I had a bit of a leak, and it stopped them...actually an error coupled with a leak. You might check with some of the other users -- I think they've recommended Lamda Probe and some other tools to track down leaks. -Original Message- From: Ziggy [mailto:zigg...@gmail.com] Sent: Wednesday, November 03, 2010 11:19 AM To: Tomcat Users List Subject: Re: Connection Leak Does that show cached queries? On Wed, Nov 3, 2010 at 4:02 PM, Propes, Barry L barry.l.pro...@citi.comwrote: Maybe try adding this, too as an attribute in the Resource tag. timeBetweenEvictionRunsMillis=-1 -Original Message- From: Jason Britton [mailto:jbritto...@gmail.com] Sent: Wednesday, November 03, 2010 9:05 AM To: Tomcat Users List Subject: Re: Connection Leak Since you're using an Oracle database - another way to identify areas in your code that aren't closing connections. In the sql below substitute YOURDBUSER with the name of the database user your connections connect to your database with and YOURWEBSERVER with the name of your webserver. The results of the sql query will give you the last executed sql for each of the open connections. Then search your code for where this sql is being executed and double check you are closing the connection appropriately. SELECT username, machine, oc.sql_text, COUNT(*) open_statements FROM v$session vs, v$open_cursor oc WHERE username = 'YOURDBUSER' AND machine = 'YOURWEBSERVER' AND oc.sid = vs.sid GROUP BY username, machine, oc.sql_text ORDER BY open_statements DESC On Wed, Nov 3, 2010 at 6:44 AM, Ziggy zigg...@gmail.com wrote: Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true accessToUnderlyingConnectionAllowed=true / I am trying to find out areas of the application where connections are NOT being closed. I added the removeAbandoned and logAbandoned clauses in my context file but if i check v$session on oracle it is still showing the same number of connections active even after 60 seconds. Is there something wrong in the configuration above? How exactly does it abandone the connections? what triggers it? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Http Coyote connector
Hi, Im using Tomcat 6.0.x (bundled within JBoss) I understand that the Http Coyote connector that binds port 8080 on the OS is started right at the end in the tomcat startup process after all webapps have been deployed. This is a problem for us because we have one webapp that is deployed first and then a second webapp that needs to talk to the first webapp in a startup servlet. Since the http connector hasn't been started, the webapps cant talk to each other until the server has started up completely. Is there a design reason that the http connector is started at the end of boot up rather than earlier? I tweaked the source code to start this up earlier and have everything working as I need, but could this have any side effects? Thanks, Kailash. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble with writing TC 7.0.x unit tests
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 11/3/2010 9:08 AM, Christopher Schultz wrote: I'm having trouble understanding the behavior of a unit test I'm writing against TC 7.0.x trunk to prepare for testing a patch. I happen to be working in org/apache/catalina/connector/TestRequest.java and my test method contains the following code: Circling back for those interested, I wasn't reading the log file of my tests, which can be found in build/logs/TEST-org.apache.catalina.connector.TestRequest.[connector].txt Plus, I fixed the problem with my tests ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzRocUACgkQ9CaO5/Lv0PCbZQCfUgBdw4X0HEKONLEmGIsdP3Qf M6cAn3Puz6G2Vtn6QfFHm3qEhRslTRRX =UbPO -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Comet async timeouts in Tomcat 7
Mark Thomas wrote: If there is a problem with Comet then create a Bugzilla entry (preferably with a test case) and someone will take a look. Tests cases should be the simplest possible code to reproduce the problem. https://issues.apache.org/bugzilla/show_bug.cgi?id=50207 Bug 50207 logged. Thanks -- View this message in context: http://old.nabble.com/Comet-async-timeouts-in-Tomcat-7-tp29993045p30125815.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: web.xml cant load because of listener
On 03/11/2010 12:57, Thad Humphries wrote: Is listener in the proper place? I think order matters in web.xml. I load 2 listeners after my app's description and before my servlet tags. Yep, after description but before filter definitions. p On Wed, Nov 3, 2010 at 12:14 AM, Will Sumekar will.sume...@gmail.comwrote: Hi When I put these lines: listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener my appln can't load at all. When I go to http://localhost:8080/app it's not loaded. But when I remove those lines it loads correctly. I've put the necessary lib containing org.springframework.web.context.ContextLoaderListener in ./app/WEB-INF/lib. My setup is Tomcat 5.5.31. Context-param is set: context-param param-namecontextConfigLocation/param-name param-valueclasspath:springContext.xml/param-value /context-param No stack trace is shown. The error message in log is: 03-Nov-2010 10:21:48 INFO HostConfig:863 - Deploying web application archive wma.war 03-Nov-2010 10:21:49 ERROR StandardContext:4253 - Error listenerStart 03-Nov-2010 10:21:49 ERROR StandardContext:4280 - Context [/wma] startup failed due to previous errors When I set the logging to DEBUG level, I don't see anything extra ordinary. Thanks Will 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Discover the Datasource connection pool maxSize.
On 03/11/2010 12:15, GF wrote: Hello. i've not access to Tomcat's server.xml where the sysadmins defined a resource: Resource driverClassName=oracle.jdbc.driver.OracleDriver maxActive=65 maxIdle=30 maxWait=5 name=myDatasource type=javax.sql.DataSource url=jdbc:. / I wish to discover from a web appplication deployed on that Tomcat what's the configuration maxActive for myDatasource. Is there a way to discover it? Thank you. JMX. Connect a JMX client (JConsole) to your Tomcat instance and look up the DataSource name attributes. // check JMX names, something like: String dsName = Catalina:type=DataSource,name=jdbc/DBName; String attrib = maxActive; // property name MBeanServerConnection mbsc = ManagementFactory.getPlatformMBeanServer(); SetObjectName names = mbsc.queryNames(ObjectName.getInstance(name), null); ObjectName ds = names.iterator.next(); Integer maxActive = mbsc.getAttribute(ds, attrib); YMMV p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: How to stop tomcat to be run more than two times.
2010/11/3 Pid p...@pidster.com: On 03/11/2010 03:59, Bill Wang wrote: Hi all, I have installed apache-tomcat-6.0.29 on my solaris box, then i start the tomcat services succsfully. But my question is, when the tomcat services is running, I try to start it again, the script (startup.sh) don't stop me, and start the second tomcat services. So how can I let tomcat to check, if there are exist tomcat services, do not start? Are you sure it actually starts? If the shutdown port is not -1 and is identical on the second attempt, it won't be able to bind to the port and will not start. Adding to the above, Set a value for the CATALINA_PID environment variable. You may do so in the bin/setenv.sh file. You may want to get the latest /bin/*.sh files from svn, as there were useful changes to the pid file handling recently. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
apr.apache.org problems?
Hey can someone verify if http://apr.apache.org links on the windows sources got changed to something dealing with www.gossipcheck.com/mirrors/apache ?? Something strange happened there. - Josh
RE: apr.apache.org problems?
From: Josh Gooding [mailto:josh.good...@gmail.com] Subject: apr.apache.org problems? Hey can someone verify if http://apr.apache.org links on the windows sources got changed to something dealing with www.gossipcheck.com/mirrors/apache ?? That's just one of the many mirrors: http://www.apache.org/mirrors/ Why do you think it's a problem? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: web.xml cant load because of listener
Thanks! Now I'm really puzzled. Even when I remove everything in web.xml except listener it gives me the same error. i.e.: ? xml version=1.0 encoding=ISO-8859-1? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; !-- spring configs -- listener listener-classorg.springframework.web.context.ContextLoaderListener/ listener-class /listener / web-app Anyway I attach my original web.xml in question. Hope someone can help me. Thanks alot!! :) IMHO Tomcat should give more error info. Regards Will On Thu, Nov 4, 2010 at 5:15 AM, Pid p...@pidster.com wrote: On 03/11/2010 12:57, Thad Humphries wrote: Is listener in the proper place? I think order matters in web.xml. I load 2 listeners after my app's description and before my servlet tags. Yep, after description but before filter definitions. p On Wed, Nov 3, 2010 at 12:14 AM, Will Sumekar will.sume...@gmail.com wrote: Hi When I put these lines: listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener my appln can't load at all. When I go to http://localhost:8080/app it's not loaded. But when I remove those lines it loads correctly. I've put the necessary lib containing org.springframework.web.context.ContextLoaderListener in ./app/WEB-INF/lib. My setup is Tomcat 5.5.31. Context-param is set: context-param param-namecontextConfigLocation/param-name param-valueclasspath:springContext.xml/param-value /context-param No stack trace is shown. The error message in log is: 03-Nov-2010 10:21:48 INFO HostConfig:863 - Deploying web application archive wma.war 03-Nov-2010 10:21:49 ERROR StandardContext:4253 - Error listenerStart 03-Nov-2010 10:21:49 ERROR StandardContext:4280 - Context [/wma] startup failed due to previous errors When I set the logging to DEBUG level, I don't see anything extra ordinary. Thanks Will ?xml version=1.0 encoding=ISO-8859-1? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; !-- spring configs -- listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener !-- Uncomment and cofigure properly, the following lines, if you want use a resource defined in the J2EE container resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracledb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref -- !-- YALE client CAS Filter configuration. CAS Servlet Filter - Uncomment and configure properly, the folling lines if you want use the CAS filter for the application. This require the casclient.jar library filter filter-nameCAS Filter/filter-name filter-classedu.yale.its.tp.cas.client.filter.CASFilter/filter-class init-param param-nameedu.yale.its.tp.cas.client.filter.loginUrl/param-name param-valuehttps://ctcsf04.ct6.st.com:8443/cas/login/param-value /init-param init-param param-nameedu.yale.its.tp.cas.client.filter.validateUrl/param-name param-valuehttps://ctcsf04.ct6.st.com:8443/cas/serviceValidate/param-value /init-param init-param param-nameedu.yale.its.tp.cas.client.filter.serverName/param-name param-valueapplicationServerName:8080/param-value /init-param init-param param-nameedu.yale.its.tp.cas.client.filter.renew/param-name param-valuefalse/param-value /init-param init-param param-nameedu.yale.its.tp.cas.client.filter.wrapRequest/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-nameCAS Filter/filter-name url-pattern/*/url-pattern /filter-mapping -- !-- end YALE client CAS filter Configuration -- !-- Axis Filter -- filter filter-nameWRequestBuilderFilter/filter-name filter-classst.liotrox.servlet.LXWRequestBuilderServletFilter/filter-class /filter filter-mapping filter-nameWRequestBuilderFilter/filter-name url-pattern/ws/*/url-pattern /filter-mapping filter-mapping filter-nameWRequestBuilderFilter/filter-name url-pattern/jsfs/*/url-pattern /filter-mapping !-- LIOTRO-X Servlet Definitions -- servlet servlet-nameapp/servlet-name servlet-classst.liotrox.servlet.ApplicationServlet/servlet-class init-param param-nametrace-on-startup/param-name param-valuefalse/param-value /init-param !-- init-param param-namedump-allowed/param-name param-valuefalse/param-value
connection Pooling in tomcat 6
Hi.. Is there a framework for implementing database connection pooling in tomcat 6? I am migrating my application from tomcat 4 to 6. There is already a connection pooling implemented for the sql2000 server using the MS pool.exe framework. But now thats not quite compatible. Please suggest. Thanks, Mike
Re: connection Pooling in tomcat 6
you can use commons dbcp or c3p0 that are available openly. Will On Thu, Nov 4, 2010 at 12:50 PM, mike houston mike.housto...@gmail.comwrote: Hi.. Is there a framework for implementing database connection pooling in tomcat 6? I am migrating my application from tomcat 4 to 6. There is already a connection pooling implemented for the sql2000 server using the MS pool.exe framework. But now thats not quite compatible. Please suggest. Thanks, Mike
Re: connection Pooling in tomcat 6
Can you please explain to me in detail. Thanks, M On Thu, Nov 4, 2010 at 10:43 AM, Will Sumekar will.sume...@gmail.comwrote: you can use commons dbcp or c3p0 that are available openly. Will On Thu, Nov 4, 2010 at 12:50 PM, mike houston mike.housto...@gmail.com wrote: Hi.. Is there a framework for implementing database connection pooling in tomcat 6? I am migrating my application from tomcat 4 to 6. There is already a connection pooling implemented for the sql2000 server using the MS pool.exe framework. But now thats not quite compatible. Please suggest. Thanks, Mike
DBCP abandoned trace - unable to understand the leak
hi, We are running application on Apache Tomcat Version 6.0.29 Java Version 1.5.0_22 CentOS 5 I didn't understand below, in DAO class everything fine. Connection,PreparedStatement,ResultSet are all declared method local, and closed properly. Please guide me to solve the problem. DBCP object created 2010-11-04 11:07:59 by the following code was never closed: java.lang.Exception at org.apache.tomcat.dbcp.dbcp.AbandonedTrace.setStackTrace(AbandonedTrace.java:160) at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:86) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) *at SponserSummaryDAO.getCountryName(SponserSummaryDAO.java:304)* * at SponserSummaryBO.getCountryName(SponserSummaryBO.java:61) at SignUpAction.execute(SignUpAction.java:52)* at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at RedirectFilter.doFilter(RedirectFilter.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:595) Thanks.
Re: connection Pooling in tomcat 6
--- On Wed, 11/3/10 at 10:30 PM, mike houston mike.housto...@gmail.com wrote: Can you please explain to me in detail. Thanks, M http://lmgtfy.com/?q=tomcat+6+dbcpl=1 - Bob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org