Re: tomcat restart ptoblem

2005-09-21 Thread Tom Burke
Is it installed as a Windows Service? Is the Service set to start 
automatically? If it isn't, you know what to do!


If it is but it isn't starting successfully, try the following:-

a) try to Start the service manually;
b) if it fails, examine the Windows Event log, as well as the various 
Tomcat logs.


Tom


- Original Message - 
From: "mukesh" <[EMAIL PROTECTED]>

To: "'Tomcat Users List'" 
Sent: Wednesday, September 21, 2005 1:57 PM
Subject: RE: tomcat restart ptoblem



Hi Tom,

Its WindowsServer 2003 Standard Edition.

Regards,
Mukesh

-Original Message-
From: Tom Burke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat restart ptoblem

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: "mukesh" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem



Hi friends,



   I have installed Tomcat 5.5. It was working fine but my
system
has got restarted and then onwards I am not able to restart the
server.



   What could be the reasons? (Sorry if this question have
been
already asked)



   Please advice.



Regards,

Mukesh Kumar





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



RE: tomcat restart ptoblem

2005-09-21 Thread mukesh
Hi Tom,

Its WindowsServer 2003 Standard Edition.

Regards,
Mukesh

-Original Message-
From: Tom Burke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat restart ptoblem

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: "mukesh" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem


> Hi friends,
>
>
>
>I have installed Tomcat 5.5. It was working fine but my 
> system
> has got restarted and then onwards I am not able to restart the 
> server.
>
>
>
>What could be the reasons? (Sorry if this question have 
> been
> already asked)
>
>
>
>Please advice.
>
>
>
> Regards,
>
> Mukesh Kumar
>
> 


-
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: tomcat restart ptoblem

2005-09-21 Thread Tom Burke

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: "mukesh" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem



Hi friends,



   I have installed Tomcat 5.5. It was working fine but my 
system
has got restarted and then onwards I am not able to restart the 
server.




   What could be the reasons? (Sorry if this question have 
been

already asked)



   Please advice.



Regards,

Mukesh Kumar





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



Re: tomcat restart?

2005-05-11 Thread Beton, Richard
Patrick Thomas wrote:

>Actually, I believe it might be possible. Ugly, but possible. Using
>Runtime.getRuntime() to get the current runtime, you can then actually
>make a call to a shell command. You could call a batch file that would
>shut down the server and then restart it. What I don't know is if the
>newly exec'd process gets taken down with tomcat... if so, you could
>have the shell program that you call start a new process that would
>not be associated with the existing one (in windows you can use the
>command 'start' in a batch file to start a separate process... someone
>else will no doubt supply the *nix equivalent).
>  
>



Thanks for the help.  I'm running Tomcat as an init.d System V service 
on Linux.  This means I can't write a simple script to restart it - the 
restart has to be done as root (although Tomcat runs as a user called 
tomcat).  My startup script already does the work of moving jarfiles and 
our native library to their correct locations.

So I've decided that automatic restart is in the 'too hard' category: 
instead I'll include in the webapp the means for an administrator to 
determine whether the deployment is up to date (fresh jarfiles in the 
shared/lib folder etc).  It'll then be a manual administration task to 
restart Tomcat when required.  It won't happen often.

Rick






-- 

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.



Re: tomcat restart?

2005-05-10 Thread Patrick Thomas
Rick,

Actually, I believe it might be possible. Ugly, but possible. Using
Runtime.getRuntime() to get the current runtime, you can then actually
make a call to a shell command. You could call a batch file that would
shut down the server and then restart it. What I don't know is if the
newly exec'd process gets taken down with tomcat... if so, you could
have the shell program that you call start a new process that would
not be associated with the existing one (in windows you can use the
command 'start' in a batch file to start a separate process... someone
else will no doubt supply the *nix equivalent).

For example in the servlet use:
Runtime.getRuntime().exec("call_bounce_tomcat.bat");

Then call_bounce_tomcat.bat would contain:
start /SEPERATE bounce_tomcat.bat

bounce_tomcat.bat would actually do the work of restarting tomcat
(specifically how, I'll let you worry about ;).

Sorry I don't have more time to flesh everything out, but take a look
and see if that'll get you where you need to go.

Cheers,
Patrick

Some references:

http://forum.java.sun.com/thread.jspa?threadID=618882
http://www-106.ibm.com/developerworks/forums/dw_expandTree.jsp?thread=55224&forum=177&cat=10&message=4086232
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html

On 5/10/05, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> This is not possible as even if it could be shut down then the servlet will 
> no longer exist to restart it. The only way would be for the servlet to 
> notify some external process that the tomcat needs to be restarted and the 
> external process will do the stopping and starting.
> 
> Ta
> Matt
> 
> -Original Message-
> From: Beton, Richard [mailto:[EMAIL PROTECTED]
> Sent: 10 May 2005 10:56
> To: Tomcat Users List
> Subject: tomcat restart?
> 
> Is it possible to write a servlet that can restart Tomcat 5.5?
> 
> I am loading native library code and this has to be in the shared/lib
> 
> area for the webapp to be restartable (if it's in the webapp/WEB-INF/lib
> then restarting the webapp fails). However, I want to be able to install
> a new version of my code, then restart Tomcat and then my webapp will
> 
> pick up the new version.
> 
> Rick
> 
> refs:
> 
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
> 
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt
> 
> --
> 
> Visit our website at www.roke.co.uk
> 
> Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.
> 
> The information contained in this e-mail and any attachments is proprietary to
> Roke Manor Research Ltd and must not be passed to any third party without
> permission. This communication is for information only and shall not create or
> change any contractual relationship.
> 
> -
> 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: tomcat restart?

2005-05-10 Thread Dale, Matt

This is not possible as even if it could be shut down then the servlet will no 
longer exist to restart it. The only way would be for the servlet to notify 
some external process that the tomcat needs to be restarted and the external 
process will do the stopping and starting.

Ta
Matt

-Original Message-
From: Beton, Richard [mailto:[EMAIL PROTECTED]
Sent: 10 May 2005 10:56
To: Tomcat Users List
Subject: tomcat restart?


Is it possible to write a servlet that can restart Tomcat 5.5?


I am loading native library code and this has to be in the shared/lib 

area for the webapp to be restartable (if it's in the webapp/WEB-INF/lib 
then restarting the webapp fails). However, I want to be able to install 
a new version of my code, then restart Tomcat and then my webapp will 

pick up the new version.


Rick


refs:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt








-- 

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.


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



RE: tomcat restart problem

2004-07-14 Thread Shapira, Yoav

Hi,
Umm, maybe ;)  But more likely, do this:
- Send a SIGQUIT to the tomcat process so that it generates a thread dump.
- Kill the process using the kill command.
- Inspect the thread dump to look for deadlocks, etc.
- Back up your logs
- Start tomcat.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Gunnar Pörschke [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 14, 2004 3:11 AM
>To: 'Tomcat Users List'
>Subject: AW: tomcat restart problem
>
>Delete the works folder (or backup it). then  start tomcat.
>If the problem still exists the there must be an error in your jsp files
>stored in wepapps folder...
>
>Cheers,
>
>gunnar
>
>-Ursprüngliche Nachricht-
>Von: Tomcat Cat [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 14. Juli 2004 04:46
>An: [EMAIL PROTECTED]
>Betreff: tomcat restart problem
>
>Hello, all,
>
>I got a weird problem with Tomcat 5 recently. It shutted down by itself,
>but
>after I restarted it, I still can't connect to the server. The browser
>complained that "The requested URL can't be retrieved".
>I know the tomcat process already started since I can see its java job in
>the process list. But it's consuming almost 95% of the CPU resource which
>is
>very strange.
>
>From Cataline.out, I got the log information below.
>Do you guys have any hints or suggestions about this?
>Thank you!
>
>-T.C.
>
>===
>===
>
>Jul 13, 2004 9:27:14 PM
>org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 9212 Jul 13, 2004 9:27:14 PM
>org.apache.catalina.startup.Catalina load
>INFO: Initialization processed in 2764 ms Jul 13, 2004 9:27:15 PM
>org.apache.catalina.core.StandardService start
>INFO: Starting service Catalina
>Jul 13, 2004 9:27:15 PM
>org.apache.catalina.core.StandardEngine start
>INFO: Starting Servlet Engine: Apache Tomcat/5.0.12 Jul 13, 2004 9:27:19 PM
>org.apache.catalina.core.StandardHost getDeployer
>INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 13, 2004
>9:27:19 PM org.apache.catalina.core.StandardHostDeployer install
>INFO: Processing Context configuration file URL
>file:/usr/local/tomcat-instance/app/conf/Catalina/localhost/manager.xml
>Jul 13, 2004 9:27:19 PM
>org.apache.catalina.core.StandardContext
>resourcesStart
>SEVERE: Cannot find message associated with key
>standardContext.resourcesStart
>java.lang.IllegalArgumentException: Document base
>/usr/local/tomcat-instance/app/webapps/../server/webapps/manager
>does not exist or is not a readable directory
>   at
>org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:1
>8
>5)
>   at
>org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.jav
>a
>:3753)
>   at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3933)
>   at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
>8
>66)
>   at
>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
>   ..
>   ..
>
>   at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l
>.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>   at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
>Jul 13, 2004 9:27:19 PM
>org.apache.catalina.core.StandardContext start
>SEVERE: Error in resourceStart()
>Jul 13, 2004 9:27:19 PM
>org.apache.catalina.core.StandardContext start
>SEVERE: Error getConfigured
>Jul 13, 2004 9:27:19 PM
>org.apache.catalina.core.StandardContext start
>SEVERE: Context startup failed due to previous errors Jul 13, 2004 9:27:19
>PM org.apache.catalina.core.StandardContext start
>SEVERE: Exception during cleanup after start failed
>LifecycleException:  Container
>StandardContext[/manager] has not been started
>   at
>org.apache.catalina.core.StandardContext.stop(StandardContext.java:4236)
>   at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:4139)
>   at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
>8
>66)
>   at
>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
>   at
>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)
>   at
>org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer
>.
>java:831)
>   at
>sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>Method)
>
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>   at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
>Jul 13, 2004 9:27:19 PM
>org.apache.catalina.core.StandardHostDeployer install
>INFO: Processing Context configuration file URL
>file:/usr/local/tomcat-instance/app/conf/Catalina/localhost/admin.xml
>Jul 13, 2004 9:27:19 PM

Re: Tomcat restart Thursday 8pm

2004-06-02 Thread John Beamon
Thanks for the notification.  I'll be done and out of there by 7pm, at 
the latest.

John Beamon
Systems Administrator
Franklin American Mortgage Co.
em: [EMAIL PROTECTED]

Leonard Sitongia wrote:
Tomcat will be restarted on Thursday, June 3rd, at 8pm, in order to 
switch to a new version of WEQC.

Applications affected:
www.people.ucar.edu (WEQC)
webmail
SKIL
Downtime should be less that 5 minutes.
==Leonard E. Sitongia
  VETS / Scientific Computing Division
  National Center for Atmospheric Research
  P.O. Box 3000 Boulder CO 80307  USA
  [EMAIL PROTECTED]voice: (303)497-2454   fax: (303)497-1829
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat restart and oracle session

2001-04-27 Thread Brahmanand Gannur


but i how write the srcipt i bit new on this front
can anyone help
Thanks
-Original Message-
From: Saurabh Shukla [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 4:17 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: tomcat restart and oracle session



This is just a sidey way to do it. Before stopping you can execute some code
which closes/releases all the open connections. You can add it to the tomcat
script.



-Original Message-
From: Brahmanand Gannur [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: tomcat restart and oracle session



Hi
we are facing a typical problem
we are working on solaris 2.7 tomcat3.2.1 and apache1.3.5 platform with
oracle8i as backend

whenever i do some database driven work using my frontend(JSP) the session
are created(from connection pool)
whenever i restart my tomcat all sessions assosiated with the tomcat should
be released(idealy) but the old sessions still remain and new sessions get
added to it

can u help me how to kill sessions created on oracle server because of
tomcat (this is important because we have limited acess of 10 sessions)

help out
Thanks in advance

Brahma






RE: tomcat restart and oracle session

2001-04-27 Thread Saurabh Shukla


This is just a sidey way to do it. Before stopping you can execute some code
which closes/releases all the open connections. You can add it to the tomcat
script.



-Original Message-
From: Brahmanand Gannur [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: tomcat restart and oracle session



Hi
we are facing a typical problem
we are working on solaris 2.7 tomcat3.2.1 and apache1.3.5 platform with
oracle8i as backend

whenever i do some database driven work using my frontend(JSP) the session
are created(from connection pool)
whenever i restart my tomcat all sessions assosiated with the tomcat should
be released(idealy) but the old sessions still remain and new sessions get
added to it

can u help me how to kill sessions created on oracle server because of
tomcat (this is important because we have limited acess of 10 sessions)

help out
Thanks in advance

Brahma