Re: unified doXXX()

2010-03-01 Thread Aryeh M. Friedman
Pid wrote: On 28/02/2010 02:00, Aryeh M. Friedman wrote: I am refactoring a servlet we have used successfully for several years now to accommodate input that does not amen itself to HttpServletRequest.getParameter()... The only way it seems to be to handle our particular input (the

Re: possible memory leak tomcat 6?

2010-03-01 Thread Peter Crowther
On 27 February 2010 20:26, Sander de Boer sander.de.b...@eo.nl wrote: Hi, My tomcat server gives often a out of mem. When dumping the heap I found much instances of these objects: Class InstanceCount TotalSize class org.apache.tomcat.util.buf.ByteChunk 439493 20656171 class

Re: GC(JVM Heap usage) tool

2010-03-01 Thread Paulwintech
Hi, I need to check how many threads are running and its memory utilization in tomcat6, I used jstack command to get thread details - but not able to get memory usage details. Recently i get free memory critical for the particular time from tomcat6 and automatically get resolve after some

Re: GC(JVM Heap usage) tool

2010-03-01 Thread Peter Crowther
On 1 March 2010 08:30, Paulwintech paulwint...@gmail.com wrote:  I need to check how many threads are running and its memory utilization in tomcat6, I used jstack command to get thread details - but not able to get memory usage details.  Recently i get free memory critical for the particular

[ANN] Apache Tomcat Connectors 1.2.30 released

2010-03-01 Thread Mladen Turk
The Apache Tomcat team announces the immediate availability of Apache Tomcat Connectors 1.2.30 stable. Apache Tomcat Connectors 1.2.30 concentrates mainly on bug fixes. Please refer to the change log for the list of changes: http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html

Re: unified doXXX()

2010-03-01 Thread Mark Thomas
On 01/03/2010 08:01, Aryeh M. Friedman wrote: Pid wrote: I want to preserve the single handler design but since getParameter barfs on our new input format and there is no unified raw input reader the only thing I can think of is make it so doGet and doPost use request.getQueryString() and

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Pid
On 01/03/2010 04:23, dBenjamin wrote: Thanks for helping... Can you please find my scenario? 1. I am using windows Environment. 2. I am using tomcat 6 binary distribution versions here we cannot get pid from the windows. 3. For my requirement before starting the tomcat server I

Re: Tomcat SSO JSESSIONIDSSO value can't be reset by browser

2010-03-01 Thread Pid
On 01/03/2010 07:49, Xiaojun Deng wrote: On Fri, Feb 26, 2010 at 03:28:50PM +, Pid wrote: On 26/02/2010 14:58, Xiaojun Deng wrote: On Fri, Feb 26, 2010 at 8:51 PM, Pidp...@pidster.com wrote: On 26/02/2010 09:59, Xiaojun Deng wrote: On Fri, Feb 26, 2010 at 09:57:46AM +, Pid wrote:

Writing to client aborted or client network problems...

2010-03-01 Thread Munirathinavel
Hi to all... I'm using apache2.2 + tomcat6.0.18 + mod_jk1.2.28 for our portal.While doing load test with 20 more users, I try to access the application through browser but pages are getting loaded and in mod_jk.log file I'm getting the following message, [Fri Feb 26 12:50:25

RE: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Joseph Morgan
True...we still don't have a clue what the OP's really trying to do... -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, February 26, 2010 5:44 PM To: Tomcat Users List Subject: Re: Java programm to Shutdwon the tomcat server On 26/02/2010 18:40, Joseph Morgan wrote:

Re: Writing to client aborted or client network problems...

2010-03-01 Thread Pid
On 01/03/2010 12:59, Munirathinavel wrote: Hi to all... I'm using apache2.2 + tomcat6.0.18 + mod_jk1.2.28 for our portal.While doing load test with 20 more users, I try to access the application through browser but pages are getting loaded and in mod_jk.log file I'm getting the following

RE: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Joseph Morgan
Oops.. should have read the thread... I spoke too soon -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: Monday, March 01, 2010 7:06 AM To: Tomcat Users List; p...@pidster.com Subject: RE: Java programm to Shutdwon the tomcat server True...we still

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread Pid
On 01/03/2010 13:09, Joseph Morgan wrote: Oops.. should have read the thread... I spoke too soon We know what they're trying to do but not how they're doing it, though I suspect I have an idea and it's not pretty. p -Original Message- From: Joseph Morgan

Tomcat issues error message after IP address got changed. (5.5.26)

2010-03-01 Thread Тр Кирилл
Hello everyone, Please help to solve next issue. It seems, tomcat saved old IP address somewhere. Cannot find this place :. Local machine IP address got changed. After that tomcat works wrong. It seems it still have a reference to the old IP = 10.28.98.189. What I have found out in logs.

Issues with ROOT.xml in Tomcat 6.0.24

2010-03-01 Thread Otmar Manuela
Hi, I have a tomcat instance of Tomcat 6.0.24 running, but whenever I deploy my application in the root context, I can only start it once. If I restart, I get a 404 error The requested resource is unavailable. I noticed that if I remove the tomcat-instance/conf/Catalina/localhost/ROOT.xml

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread dBenjamin
I using customize icon to launch my application before starting the tomcat my java program will check and then it will allow to start the tomcat otherwise it will change the port and server will get start. I am validating shutdown port using Socket socket = new Socket(127.0.0.1,JVMPort);

RE: Tomcat issues error message after IP address got changed. (5.5.26)

2010-03-01 Thread Caldarale, Charles R
From: Тр Кирилл [mailto:kirillt-h...@yandex.ru] Subject: Tomcat issues error message after IP address got changed. (5.5.26) Please help to solve next issue. It seems, tomcat saved old IP address somewhere. Cannot find this place :. Post your server.xml so we can look at it. Make sure

RE: Issues with ROOT.xml in Tomcat 6.0.24

2010-03-01 Thread Caldarale, Charles R
From: Otmar Manuela [mailto:ot...@caribmedia.com] Subject: Issues with ROOT.xml in Tomcat 6.0.24 I have a tomcat instance of Tomcat 6.0.24 running, but whenever I deploy my application in the root context, I can only start it once. If I restart, I get a 404 error The requested resource is

Re: RE: Tomcat issues error message after IP address got changed. (5.5.26)

2010-03-01 Thread Тр Кирилл
Hello Chuck, I use: Windows XP, Java version 1.5.0_22 Server.xml: ?xml version=1.0 encoding=UTF-8 standalone=no?!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional

Re: Tomcat issues error message after IP address got changed. (5.5.26)

2010-03-01 Thread Konstantin Kolinko
2010/3/1 Тр Кирилл kirillt-h...@yandex.ru: java.lang.RuntimeException: org.apache.catalina.tribes.ChannelException: java.net.SocketException: The requested address is not valid in its context; No faulty members identified. at

Adding a symlink from inside the app after deployment - What's the best approach?

2010-03-01 Thread emerson cargnin
At the moment we have a special script that stops tomcat, expands the war file and adds a symlink that point to a common set of JSPs, to then start tomcat again. This symlink was needed as tomcat doesn't have a way to create a mount to outside of the webapp (apparently it was added and removed

Re: Re: Tomcat issues error message after IP address got changed. (5.5.26)

2010-03-01 Thread Тр Кирилл
Solved. This wrong IP address came from the next file: Tomcat 5.5.26\common\lib\boot.properties param name: cluster.addr.local Regards, Kirill 01.03.10, 18:25, Konstantin Kolinko knst.koli...@gmail.com: 2010/3/1 Тр Кирилл : java.lang.RuntimeException:

Re: Adding a symlink from inside the app after deployment - What's the best approach?

2010-03-01 Thread Konstantin Kolinko
2010/3/1 emerson cargnin echofloripa.y...@gmail.com: Now we are trying to not use the restart script and rely only on the manager deployment feature, but we still need to add this symlink from inside the apps. Beware of the following: https://issues.apache.org/bugzilla/show_bug.cgi?id=39226

Centralize settings...

2010-03-01 Thread couva
Hello! Actually we have a lot of different web applications with specific settings for each one, namelly: JNDI, SPRING, logging properties, JMS properties, etc... Some of these webapplication could be deployed in different TOMCAT instances. The centralization of these settings would be a

RE: Adding a symlink from inside the app after deployment - What's the best approach?

2010-03-01 Thread Caldarale, Charles R
From: emerson cargnin [mailto:echofloripa.y...@gmail.com] Subject: Adding a symlink from inside the app after deployment - What's the best approach? What is the best way to implement this, add a context listener and create the symlink from inside the listener? The best way is probably not

Re: Tomcat issues error message after IP address got changed. (5.5.26)

2010-03-01 Thread Pid
On 01/03/2010 16:29, Тр Кирилл wrote: Solved. This wrong IP address came from the next file: Tomcat 5.5.26\common\lib\boot.properties param name: cluster.addr.local This isn't a Tomcat supplied file. Why not change it to the correct address and see what happens? p Regards, Kirill

Re: Centralize settings...

2010-03-01 Thread Pid
On 01/03/2010 16:47, co...@sapo.pt wrote: Hello! Actually we have a lot of different web applications with specific settings for each one, namelly: JNDI, SPRING, logging properties, JMS properties, etc... Some of these webapplication could be deployed in different TOMCAT instances. The

Re: Adding a symlink from inside the app after deployment - What's the best approach?

2010-03-01 Thread emerson cargnin
Actually I just started experiencing this issue, the content of the symlink being erased. The funny thing is that it didn't happened before. The main problem in packaging this content inside each app (and not using the symlink) is that we have the requirement that this content should be

Re: Adding a symlink from inside the app after deployment - What's the best approach?

2010-03-01 Thread emerson cargnin
Am I wrong or tomcat 7 will provide support for folder aliasing (pull in resources from external locations)? http://mail-archives.apache.org/mod_mbox//tomcat-dev/200905.mbox/4a1c5275.7010...@apache.org Regards Emerson On 1 March 2010 17:11, emerson cargnin echofloripa.y...@gmail.com wrote:

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Propes, Barry L
Yes, I believe that is indeed getting created. Should that be being done by Tomcat? Or prevented by some configuration on my end? -Original Message- From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Sent: Friday, February 26, 2010 12:37 AM To: Tomcat Users List

Cannot create PoolableConnectionFactory

2010-03-01 Thread RayDon1
I am trying to connect a device (on the same network) to my server so that it can access the PostgreSQL database. When it tries to connect I get this error at catalina.out: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the

Re: Issues with ROOT.xml in Tomcat 6.0.24

2010-03-01 Thread Otmar Manuela
On 3/1/2010 11:05 AM, Caldarale, Charles R wrote: From: Otmar Manuela [mailto:ot...@caribmedia.com] Subject: Issues with ROOT.xml in Tomcat 6.0.24 I have a tomcat instance of Tomcat 6.0.24 running, but whenever I deploy my application in the root context, I can only start it once. If I restart,

RE: Issues with ROOT.xml in Tomcat 6.0.24

2010-03-01 Thread Caldarale, Charles R
From: Otmar Manuela [mailto:ot...@caribmedia.com] Subject: Re: Issues with ROOT.xml in Tomcat 6.0.24 This is the output of catalina.out when the instance starts and ROOT.xml is not deleted beforehand: And that's the situation that results in a 404 upon first reference? What's in the logs

RE: Cannot create PoolableConnectionFactory

2010-03-01 Thread Caldarale, Charles R
From: RayDon1 [mailto:crdoi...@yahoo.com] Subject: Cannot create PoolableConnectionFactory org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: DB connection error -Tomcat 6 config Yes, I believe that is indeed getting created. Should that be being done by Tomcat? Yes, the Context element is copied from the webapp to conf/Catalina/[host]/[appName].xml when the

RE: Cannot create PoolableConnectionFactory

2010-03-01 Thread RayDon1
Post the Resource element you're using to define the connection pool. Does it have appropriate security credentials specified in it? Can you connect to the PostGreSQL server using those credentials by some means other than Tomcat? - Chuck ?xml version=1.0 encoding=UTF-8? Context

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Propes, Barry L
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, March 01, 2010 12:32 PM To: Tomcat Users List Subject: RE: DB connection error -Tomcat 6 config From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: DB connection error

RE: Cannot create PoolableConnectionFactory

2010-03-01 Thread Caldarale, Charles R
From: RayDon1 [mailto:crdoi...@yahoo.com] Subject: RE: Cannot create PoolableConnectionFactory ?xml version=1.0 encoding=UTF-8? Context reloadable=true debug=true allowLinking=true Resource name=jdbcConnectionString auth=Container

CDI(Weld) / EL 2.2 on Tomcat 6.0.24

2010-03-01 Thread Israel Ben Guilherme Fonseca
Hi, i'm tring to use weld the implementation of the JSR 299 (*Java Contexts and Dependency Injection* ) on tomcat and it's working pretty well. The only problem so fat is when i try to override the built-in el-api/el-impl from Tomcat lib directory, with the new EL 2.2 that support parameters. I

Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread André Warnier
dBenjamin wrote: Thanks for helping... Can you please find my scenario? We could probably help better if we understood exactly what you are trying to achieve (and why), which is not very clear at the moment. 1. I am using windows Environment. Ok, but are you running Tomcat as a

Re: CDI(Weld) / EL 2.2 on Tomcat 6.0.24

2010-03-01 Thread Mark Thomas
On 01/03/2010 19:55, Israel Ben Guilherme Fonseca wrote:- Is tomcat 6 going to support the new EL? Tomcat 6 won't, but Tomcat 7 will. What should be the write way to override it on my app? There isn't. Tomcat isn't designed to be able to simply swap different Servlet/JSP/EL

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Propes, Barry L
Thanks, Yeah I tried this and either get a NPE (can't see the Oracle driver) or an error if I reference the Tomcat factory class, like I've previously done on my older version (4.1.xx). I might try backing up to 6.0.18 and give it a shot. -Original Message- From: Karthik Nanjangude

How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread John McKaine
Hello everyone. I have the website, deployed on Tomcat server (virtual host). When I enter in browser my domain - http://workinua.com.ua/ http://workinua.com.ua/ i get from server index.htm page and then by this code - script function redirect() { window.location=home.html;

Re: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread ramzi khlil
In web.xml you can specify the main page. On Mon, Mar 1, 2010 at 4:29 PM, John McKaine sevjob...@mail.ru wrote: Hello everyone. I have the website, deployed on Tomcat server (virtual host). When I enter in browser my domain - http://workinua.com.ua/ http://workinua.com.ua/ i get from

RE: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread Caldarale, Charles R
From: John McKaine [mailto:sevjob...@mail.ru] Subject: How configure Tomcat redirect to web page instead index.htm Is it possible to configure Tomcat server to my home page(no trick with redirect on index.htm) ? Read the servlet spec, then add whatever page names you want to the

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Propes, Barry L
1. Quadruple-check that you have your JDBC driver only in one place (in Tomcat's /lib directory) 2. Remove all unnecessary configuration from your Resource element: just (simple) URL, driver class, username and password, just to get things started. Good luck, - -chris Ok, I did this - blew

Re: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread John McKaine
ramzi khlil wrote: In web.xml you can specify the main page. On Mon, Mar 1, 2010 at 4:29 PM, John McKaine sevjob...@mail.ru wrote: Hello everyone. I have the website, deployed on Tomcat server (virtual host). When I enter in browser my domain - http://workinua.com.ua/

RE: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread Propes, Barry L
Point it relative to your webapp path. -Original Message- From: John McKaine [mailto:sevjob...@mail.ru] Sent: Monday, March 01, 2010 3:55 PM To: users@tomcat.apache.org Subject: Re: How configure Tomcat redirect to web page instead index.htm ramzi khlil wrote: In web.xml you can

RE: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: How configure Tomcat redirect to web page instead index.htm Point it relative to your webapp path. ??? Please read the servlet spec before replying. The welcome-file names must not prefixed by anything. - Chuck THIS

RE: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread Caldarale, Charles R
From: John McKaine [mailto:sevjob...@mail.ru] Subject: Re: How configure Tomcat redirect to web page instead index.htm But I have tried for my local server something like welcome-file-list welcome-filehome.html/welcome-file /welcome-file-list Where did you place the

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: DB connection error -Tomcat 6 config If I try to reference the resource reference in the webapps/META-INF/context.xml file, Is that the real location? If so, it's not valid. The webapps directory is the default

RE: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread John McKaine
n828cl wrote: From: John McKaine [mailto:sevjob...@mail.ru] Subject: How configure Tomcat redirect to web page instead index.htm Is it possible to configure Tomcat server to my home page(no trick with redirect on index.htm) ? Read the servlet spec, then add whatever page names you

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Propes, Barry L
Sorry, no. webapps/chngctrl/META-INF/context.xml. Thanks, Chuck. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, March 01, 2010 4:29 PM To: Tomcat Users List Subject: RE: DB connection error -Tomcat 6 config From: Propes, Barry L

Tomcat Acceptor Thread goes into wait() to never come back - Tomcat 6.0

2010-03-01 Thread Harshad Kamat
Hi, I believe I've found a race condition in Tomcat that causes the http port to be non-responsive. It exists in 6.0 and also in 5.5 (although the code has been refactored). I could not find any reference to it in the Bug database or the mailing list archives. Consider a tomcat instance with

Re: Tomcat Acceptor Thread goes into wait() to never come back - Tomcat 6.0

2010-03-01 Thread Hae Loong Chan
Hi, If the threads are in the race condition, can it be any possibility the Tomcat will become responsive again - say if the current processing request thread is dropped due to request timeout and the browser is closed? On Tue, Mar 2, 2010 at 10:27 AM, Harshad Kamat hnka...@gmail.com wrote:

RE: Tomcat Acceptor Thread goes into wait() to never come back - Tomcat 6.0

2010-03-01 Thread Caldarale, Charles R
From: Harshad Kamat [mailto:hnka...@gmail.com] Subject: Tomcat Acceptor Thread goes into wait() to never come back - Tomcat 6.0 I believe I've found a race condition in Tomcat that causes the http port to be non-responsive. I believe you are correct. To close the timing window, the lock

RE: DB connection error -Tomcat 6 config

2010-03-01 Thread Karthik Nanjangude
Hi Please double check the ojdbc14.jar size, Some times I find the jar files corrupt due to various reasons. Also check only 1 copy of this 'jar' exists in /TOMCAT6.0.2.0/lib directory and make sure the same does not exist within the web application. ojdbc14_g.jar is used for advance debug

Re: unified doXXX()

2010-03-01 Thread Aryeh M. Friedman
Mark Thomas wrote: On 01/03/2010 08:01, Aryeh M. Friedman wrote: Pid wrote: I want to preserve the single handler design but since getParameter barfs on our new input format and there is no unified raw input reader the only thing I can think of is make it so doGet and doPost use

remote debug with tomcat 3.3.2

2010-03-01 Thread Kedzior Wojciech
Hello, I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. I am copying some classes I developed into the working directory of an application deployed on tomcat. I can connect to the remote debug port from eclipse but the debugger will not stop on any break

Re: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread André Warnier
Caldarale, Charles R wrote: From: John McKaine [mailto:sevjob...@mail.ru] Subject: How configure Tomcat redirect to web page instead index.htm Is it possible to configure Tomcat server to my home page(no trick with redirect on index.htm) ? Read the servlet spec, then add whatever page names