How I can upgrade tomcat ship with JBoss

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

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

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). Not an

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 Portlet thr

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 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

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 This

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 file

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 second

Re: web.xml cant load because of listener

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

Re: web.xml cant load because of listener

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

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: 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: 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 From:

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 the

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: 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

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 have

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

Re: web.xml cant load because of listener

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

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();

Re: web.xml cant load because of listener

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: listener listener-class

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

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 file or

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

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

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 to be

Connection Leak

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

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: Resource driverClassName=oracle.jdbc.driver.OracleDriver maxActive=65 maxIdle=30 maxWait=5 name=myDatasource

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: 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, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb

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 in

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 objects

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

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

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

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

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: 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

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 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]

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: 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 file or

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: 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:

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

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

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: web.xml cant load because of listener

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

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: Resource driverClassName=oracle.jdbc.driver.OracleDriver maxActive=65 maxIdle=30 maxWait=5 name=myDatasource type=javax.sql.DataSource url=jdbc:. / I wish to discover

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

2010-11-03 Thread Konstantin Kolinko
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)

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: 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:

Re: web.xml cant load because of listener

2010-11-03 Thread Will Sumekar
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;

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.

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 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

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 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

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

Re: connection Pooling in tomcat 6

2010-11-03 Thread Bob Hall
--- 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: