Re: connection Pooling in tomcat 6

2010-11-03 Thread Bob Hall
--- On Wed, 11/3/10 at 10:30 PM, mike houston wrote: > Can you please explain to me in > detail. > > Thanks, > M http://lmgtfy.com/?q=tomcat+6+dbcp&l=1 - Bob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apach

DBCP abandoned trace - unable to understand the leak

2010-11-03 Thread sasidhar prabhakar
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 cr

Re: connection Pooling in tomcat 6

2010-11-03 Thread mike houston
Can you please explain to me in detail. Thanks, M On Thu, Nov 4, 2010 at 10:43 AM, Will Sumekar wrote: > you can use commons dbcp or c3p0 that are available openly. > > > Will > > > On Thu, Nov 4, 2010 at 12:50 PM, mike houston >wrote: > > > Hi.. > > > > Is there a framework for implementing dat

Re: connection Pooling in tomcat 6

2010-11-03 Thread Will Sumekar
you can use commons dbcp or c3p0 that are available openly. Will On Thu, Nov 4, 2010 at 12:50 PM, mike houston 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

connection Pooling in tomcat 6

2010-11-03 Thread mike houston
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. Than

Re: web.xml cant load because of

2010-11-03 Thread Will Sumekar
Thanks! Now I'm really puzzled. Even when I remove everything in web.xml except it gives me the same error. i.e.: < 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

RE: apr.apache.org problems?

2010-11-03 Thread Caldarale, Charles R
> 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://ww

apr.apache.org problems?

2010-11-03 Thread Josh Gooding
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: How to stop tomcat to be run more than two times.

2010-11-03 Thread Konstantin Kolinko
2010/11/3 Pid : > 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

Re: Discover the Datasource connection pool maxSize.

2010-11-03 Thread Pid
On 03/11/2010 12:15, GF wrote: > Hello. > i've not access to Tomcat's server.xml where the sysadmins defined a resource: > > maxActive="65" maxIdle="30" maxWait="5" name="myDatasource" > type="javax.sql.DataSource" url="jdbc:." /> > > I wish to discover from a web appplication deployed on th

Re: web.xml cant load because of

2010-11-03 Thread Pid
On 03/11/2010 12:57, Thad Humphries wrote: > Is in the proper place? I think order matters in web.xml. I load > 2 listeners after my app's and before my tags. Yep, after but before definitions. p > On Wed, Nov 3, 2010 at 12:14 AM, Will Sumekar wrote: > >> Hi >> >> When I put these lines:

Re: Comet async timeouts in Tomcat 7

2010-11-03 Thread greenstar
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

Re: Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Christopher Schultz
-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/TestReq

Http Coyote connector

2010-11-03 Thread Kailash Kothari
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 fi

RE: Connection Leak

2010-11-03 Thread Propes, Barry L
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: Wednesda

Re: Deploying Tomcat app with Ant to non-webapps location (Windows)

2010-11-03 Thread David kerber
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

Re: Deploying Tomcat app with Ant to non-webapps location (Windows)

2010-11-03 Thread Vikram Vaswani
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 fi

RE: session listener and tomcat restart

2010-11-03 Thread Aggarwal, Ajay
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 --

Re: Connection Leak

2010-11-03 Thread Ziggy
Does that show cached queries? On Wed, Nov 3, 2010 at 4:02 PM, Propes, Barry L wrote: > 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, No

RE: Connection Leak

2010-11-03 Thread Propes, Barry L
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 Or

session listener and tomcat restart

2010-11-03 Thread Aggarwal, Ajay
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

RE: IIS-Tomcat Integration

2010-11-03 Thread dB .
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 Integratio

question for next Tomcat 6.0 release

2010-11-03 Thread Okubo, Yasushi (TSD)
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 ge

Setting up cluster question

2010-11-03 Thread Jeffrey Janner
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 p

Re: Connection Leak

2010-11-03 Thread Jason Britton
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 resul

Re: Release COM Objects

2010-11-03 Thread Christopher Schultz
-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 object

Re: Dispatching request from Servlet to Portlet

2010-11-03 Thread Christopher Schultz
-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

Re: Connection Leak

2010-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 11/3/2010 9:44 AM, Ziggy wrote: > Hi All, > >type="javax.sql.DataSource" > driverClassName="oracle.jdbc.driver.OracleDriver" > url="jdbc:oracle:thin:@10.10.10.10.:1521:mydb" > username="username"

RE: IIS-Tomcat Integration

2010-11-03 Thread Caldarale, Charles R
> 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.

Re: Discover the Datasource connection pool maxSize.

2010-11-03 Thread Christopher Schultz
-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: > > maxActive="65" maxIdle="30" maxWait="5" name="myDatasource" > type="javax.sql.DataSource" url="jdbc:." /> > > I wish to dis

Connection Leak

2010-11-03 Thread Ziggy
Hi All, 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 so

Re: Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Christopher Schultz
-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

IIS-Tomcat Integration

2010-11-03 Thread sbpdvlpr
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 worke

Re: Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Mark Thomas
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

Re: Deploying Tomcat app with Ant to non-webapps location (Windows)

2010-11-03 Thread Vikram Vaswani
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 fi

Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Christopher Schultz
-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 cod

Re: web.xml cant load because of

2010-11-03 Thread Tim Funk
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: org.springframework.web.context.ContextLoaderList

RE: Discover the Datasource connection pool maxSize.

2010-11-03 Thread Rob Gregory
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(); Conn

Re: web.xml cant load because of

2010-11-03 Thread Thad Humphries
Is in the proper place? I think order matters in web.xml. I load 2 listeners after my app's and before my tags. On Wed, Nov 3, 2010 at 12:14 AM, Will Sumekar wrote: > Hi > > When I put these lines: > > > > > org.springframework.web.context.ContextLoaderListener > > > > my app

Re: Deploying Tomcat app with Ant to non-webapps location (Windows)

2010-11-03 Thread David kerber
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 automa

Re: ISAPI-Problem

2010-11-03 Thread Jost Richstein
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 hav

Discover the Datasource connection pool maxSize.

2010-11-03 Thread GF
Hello. i've not access to Tomcat's server.xml where the sysadmins defined a resource: 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. ---

Re: Deploying Tomcat app with Ant to non-webapps location (Windows)

2010-11-03 Thread Vikram Vaswani
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 t

RE: Protecting static resources in IIS

2010-11-03 Thread Rob Gregory
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 > > >

Re: Connector Setting Problem in tomcat 6.0.29

2010-11-03 Thread Rainer Jung
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

RE: Tomcat shuts down with exception within few seconds?

2010-11-03 Thread Karthik Nanjangude
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

Re: web.xml cant load because of

2010-11-03 Thread Will Sumekar
nothing... Will On Wed, Nov 3, 2010 at 3:12 PM, Pid wrote: > On 03/11/2010 05:14, Will Sumekar wrote: > > Hi > > > > When I put these lines: > > > > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > > > > > my appln can't load at all. When I go to

Re: web.xml cant load because of

2010-11-03 Thread Pid
On 03/11/2010 05:14, Will Sumekar wrote: > Hi > > When I put these lines: > > > > > org.springframework.web.context.ContextLoaderListener > > > > 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 co

Re: How to stop tomcat to be run more than two times.

2010-11-03 Thread Pid
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

Re: Tomcat shuts down with exception within few seconds?

2010-11-03 Thread Pid
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 fi

Re: How I can upgrade tomcat ship with JBoss

2010-11-03 Thread Pid
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 T

Re: Tomcat shuts down with exception within few seconds?

2010-11-03 Thread Brian Muha
/etc/hosts 127.0.0.1 localhost.localdomain localhost On 11/3/10 8:30 AM, "Karthik Nanjangude" 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-

Re: Dispatching request from Servlet to Portlet

2010-11-03 Thread Pid
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 Portl

Re: Deploying Tomcat app with Ant to non-webapps location (Windows)

2010-11-03 Thread Pid
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). >