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

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 p

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 request.getQ

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

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 wrote: > Hi, > > I believe

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 maxT

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

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 pag

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 dire

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 > > home.html > Where did you place the above construct? What exactly did you use (not just "

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 names must not prefixed by anything. - Chuck THIS COMMUNIC

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

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 element: >>just (simple) URL, driver class, username and password, just to get >>things started. >>Good luck, >>-

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 in

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

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 - function redirect() { window.location="home.html";

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

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 implementation

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 Windows

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 pu

RE: Cannot create PoolableConnectionFactory

2010-03-01 Thread Caldarale, Charles R
> From: RayDon1 [mailto:crdoi...@yahoo.com] > Subject: RE: Cannot create PoolableConnectionFactory > > > > name="jdbcConnectionString" > auth="Container" > type="javax.sql.DataSource" > driverClassName="org.postgresql.Driver" > url="j

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 RayDon1
> Post the 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 > The user and password are valid an

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 element is copied from the webapp to conf/Catalina/[host]/[appName].xml when the web

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/

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 l

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,

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

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 wrote: > Actually I just started exp

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 deployed

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 centrali

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

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

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 m

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 : > 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 https://issues.apache.org

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" : > 2010/3/1 Тр Кирилл : > > > > java.lang.RuntimeException: org.apache.catalina.tribes.ChannelException: > ja

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 aft

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

2010-03-01 Thread Konstantin Kolinko
2010/3/1 Тр Кирилл : > > 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 > com.opentext.ecm.services.smessage.impl.tribes.SMessageServiceTribesImpl.startup

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:

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 resourc

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

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

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 /conf/Catalina/localhost/ROOT.xml and then rest

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.

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 [mailto:joseph.mor...@igni

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 don't

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 mess

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:

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 2010][304:

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, Pid wrote: On 26/02/2010 09:59, Xiaojun Deng wrote: On Fri, Feb 26, 2010 at 09:57:46AM +, Pid wrote: On 26/02/2010 0

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 ne

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 req

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

Re: GC(JVM Heap usage) tool

2010-03-01 Thread Peter Crowther
On 1 March 2010 08:30, Paulwintech 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 time from tomcat6

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 ti

Re: possible memory leak tomcat 6?

2010-03-01 Thread Peter Crowther
On 27 February 2010 20:26, Sander de Boer 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 org.apache.tomcat.util.buf.C

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 nature/format