RE: Java processes in tomcat...

2005-06-30 Thread Surendrakumar Viswanathan \(suviswan\)
Check your web.xml (under TOMCAT_ROOT/conf)

-Surendra 

-Original Message-
From: Gulshan Babajee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 30, 2005 5:34 PM
To: 'Tomcat Users List'
Subject: RE: Java processes in tomcat...

By default fork is enabled, but for the compiler, I don't know. How could I 
know which compiler is being used

-Original Message-
From: Surendrakumar Viswanathan (suviswan) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 30, 2005 3:10 PM
To: Tomcat Users List
Subject: RE: Java processes in tomcat...


Which compiler do you use for compiling JSP pages also have you enabled fork
during jsp compiler. I think there are some known issues with this fork
option.

-Surendra


-Original Message-
From: Øyvind Johansen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 30, 2005 2:35 PM
To: 'Tomcat Users List'
Subject: RE: Java processes in tomcat...

Possible reasons (not really sure here):

You open a filestream, but you do not close it after use You start a Thread
that never finishes (no stop when tomcat runs destroy() on your webapp) You
start a ServerSocket listener that doesn't timeout or stop gracefully. 
Some other reason I do not see.

Oyvind Johansen
ElectricTimeCar, Norway

-Opprinnelig melding-
Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED]
Sendt: 30. juni 2005 10:35
Til: 'tomcat-user@jakarta.apache.org'
Emne: Java processes in tomcat...

Hi, I've posted this question sometimes ago, but did not receive any reply.
Am sending it again if ever someone has got an answer meanwhile 

Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've
notice is that each time i compile my java classes, copy them to
/WEB-INF/classes dir. and then redeploy my web application consisting of jsp
pages, I saw the number of java process increases when I do a 'ps -aux' 

That is if before compilation of my java classes there were 30 java
processes, then after compilation I saw 30 new java processes when I did a
'ps -aux' The problem is that tomcat does not kill the previous java
processes that were associated with my old java classes. Subsequently if I
do 5 compilation, I'll get (5 x 40) java processes and finally I got an
'OutOfMemoryError'.

Can anyone please tell me what's the cause of the above problem and how to
resolve it. thanks in advance


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java processes in tomcat...

2005-06-30 Thread Surendrakumar Viswanathan \(suviswan\)
Which compiler do you use for compiling JSP pages also have you enabled fork 
during jsp compiler. I think there are some known issues with this fork option.

-Surendra


-Original Message-
From: Øyvind Johansen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 30, 2005 2:35 PM
To: 'Tomcat Users List'
Subject: RE: Java processes in tomcat...

Possible reasons (not really sure here):

You open a filestream, but you do not close it after use You start a Thread 
that never finishes (no stop when tomcat runs destroy() on your webapp) You 
start a ServerSocket listener that doesn't timeout or stop gracefully. 
Some other reason I do not see.

Oyvind Johansen
ElectricTimeCar, Norway

-Opprinnelig melding-
Fra: Gulshan Babajee [mailto:[EMAIL PROTECTED]
Sendt: 30. juni 2005 10:35
Til: 'tomcat-user@jakarta.apache.org'
Emne: Java processes in tomcat...

Hi, I've posted this question sometimes ago, but did not receive any reply.
Am sending it again if ever someone has got an answer meanwhile 

Am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice 
is that each time i compile my java classes, copy them to /WEB-INF/classes dir. 
and then redeploy my web application consisting of jsp pages, I saw the number 
of java process increases when I do a 'ps -aux' 

That is if before compilation of my java classes there were 30 java processes, 
then after compilation I saw 30 new java processes when I did a 'ps -aux' The 
problem is that tomcat does not kill the previous java processes that were 
associated with my old java classes. Subsequently if I do 5 compilation, I'll 
get (5 x 40) java processes and finally I got an 'OutOfMemoryError'.

Can anyone please tell me what's the cause of the above problem and how to 
resolve it. thanks in advance


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28-06-2005
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HttpServletResponse.sendRedirect() closes the stream

2004-03-10 Thread suviswan
Hi

- Original Message -
From: "Ronald Wildenberg" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 10, 2004 3:00 PM
Subject: RE: HttpServletResponse.sendRedirect() closes the stream


> > -----Oorspronkelijk bericht-
> > Van: suviswan [mailto:[EMAIL PROTECTED]
> > Verzonden: woensdag 10 maart 2004 10:20
> > Aan: Tomcat Users List
> > Onderwerp: HttpServletResponse.sendRedirect() closes the stream
> >
> >
> > Hi
> > I am using Tomcat 4.1.29. When i do
> > HttpServletResponse.sendRedirect() inside my servlet doGet(), it
> > automatically closes the stream
> > So when i call the real close() function it throws IOException
> >
> > java.io.IOException: The stream has been closed
> > at
> > org.apache.catalina.connector.ResponseStream.close(ResponseStr
> > eam.java:219)
> >
> > Please let me know how to solve on this.
>
>
> The easiest way would be not to call close() on the response's output
> stream. Is there a reason you need to call close()?
>
> The servlet spec says that sendRedirect has the side effect of committing
> the response and terminating it. If the response is terminated, its
> related OutputStream is closed, so it can not be closed again.
>

There is no need to close(). We have a servlet code which is based on 2.1
spec and we are moving to 2.3 spec.
The code worked fine in 2.1 and we thought it will work fine in 2.2.

The code worked when we commented the close() call. Thanks for the help.

Regards
Surendra


>
> >
> > Thanks
> > Surendra
> >
>
> Regards,
> Ronald.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HttpServletResponse.sendRedirect() closes the stream

2004-03-10 Thread suviswan
Hi
I am using Tomcat 4.1.29. When i do
HttpServletResponse.sendRedirect() inside my servlet doGet(), it
automatically closes the stream
So when i call the real close() function it throws IOException

java.io.IOException: The stream has been closed
at
org.apache.catalina.connector.ResponseStream.close(ResponseStream.java:219)

Please let me know how to solve on this .

Thanks
Surendra


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to disable AutoDeploy in Tomcat 4.1.29 ?

2004-03-09 Thread suviswan
Hi
I have tried changing autoDeploy=false in server.xml. But it's not
working. It's still discovering the
web applicatios under webapps directory.
Any ideas ?

Thanks
Surendra


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 4.1.29 V Tomcat 3.3.1 performance

2004-03-04 Thread suviswan
Hi
Does any have the performance comparision for the above two tomcat
versions ?


Thanks
Surendra


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need help in Tomcat 4.1.29

2004-02-18 Thread suviswan
Hi all
I want to add a particular directory in tomcat's shared classpath.
The directory is outside tomcat home directory.
I can do this by adding this path in the tomcat's startup classpath.
But it throws some other exceptions.

Is there any way i can do this ?

Thanks
Surendra


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error during tomcat 4.1.29 startup

2004-02-17 Thread suviswan
Yes infact i got this exception from the logs directory.  This exception
occurs only when i add a particular directory in the
tomcat startup classpath.

-Surendra


- Original Message -
From: "Stefano Rebollini" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 17, 2004 8:46 PM
Subject: Re: Error during tomcat 4.1.29 startup


> Have the user all the rights to write in the logs directory ?
>
> - Original Message -
> From: "suviswan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 17, 2004 3:31 PM
> Subject: Error during tomcat 4.1.29 startup
>
>
> > Hi Team
> >  I am getting this exception when i trying to evaluate Tomcat
> 4.1.29
> > for our product.
> >
> > 
> > Exception during startup processing
> > java.lang.reflect.InvocationTargetException
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > Caused by: java.lang.ExceptionInInitializerError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Unknown Source)
> > at
> > org.apache.commons.modeler.Registry.getModelerSource(Registry.java:10
> > 05)
> > at org.apache.commons.modeler.Registry.load(Registry.java:818)
> > at
> > org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
> > )
> > at
> > org.apache.commons.modeler.Registry.findManagedBean(Registry.java:719
> > )
> > at
> > org.apache.commons.modeler.Registry.findManagedBean(Registry.java:104
> > 7)
> > at
> > org.apache.commons.modeler.Registry.registerComponent(Registry.java:8
> > 59)
> > at
> > org.apache.commons.modeler.Registry.registerComponent(Registry.java:3
> > 46)
> > at
> > org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:
> > 1201)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:5
> > 06)
> > at
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:219
> > 0)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> > at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> > at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> > ... 5 more
> > Caused by: org.apache.commons.logging.LogConfigurationException:
> > org.apache.comm
> > ons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurati
> > onException: Class org.apache.commons.logging.impl.Jdk14Logger does not
> > implemen
> > t Log
> >  #
> >
> > I understand this is something related to commons-logging and some class
> > loader issue. But not able to overcome this.
> >
> > Please let me know what to solve this.
> >
> > Thanks
> > Surendra
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]