Re: Tomcat shutdown issues

2011-06-11 Thread Rainer Jung
On 10.06.2011 16:55, Caldarale, Charles R wrote:
 From: April Easton [mailto:aeas...@shawneecourt.org] 
 Subject: Tomcat shutdown issues
 
 I don't see any of my threads in there
 
 Look harder:
 
 Worker-JM prio=3D10 tid=3D0x5d7a1800 nid=3D0x521f in Object.wait()
 at 
 org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)
 Bundle File Closer daemon prio=3D10 tid=3D0x5e223800 nid=3D0x521d 
 in Object.wait()
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
 Start Level Event Dispatcher daemon prio=3D10 tid=3D0x5d5fc000 
 nid=3D0x521b in Object.wait()
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
 Framework Event Dispatcher daemon prio=3D10 tid=3D0x5d956800 
 nid=3D0x521a in Object.wait()   
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
 
 Those aren't Tomcat's threads; ergo, they are yours.  You're running Eclipse, 
 you're responsible for the chaos it creates.

... but AFAIK only the non-daemon threads are problematic. The JVM
shouldn't care about existing daemon threads when trying to shut down.
So the only one in the list to care about is Worker-JM.

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat shutdown issues

2011-06-10 Thread Pid
On 10/06/2011 15:36, April Easton wrote:
 Good day,
  I've been working on closing all my threads in my applications that run 
 on Tomcat.  I recently upgraded to 7.0.14 to get better messages concerning 
 why Tomcat wasn't shutting down properly.  I have stopped all my servlets and 
 threads, but I'm still having trouble.  Below is the thread dump of the most 
 recent shutdown and my catalina log.  I don't see any of my threads in there, 
 so what is keeping Tomcat alive?

Are you running Tomcat inside Eclipse?


p



signature.asc
Description: OpenPGP digital signature


RE: Tomcat shutdown issues

2011-06-10 Thread Caldarale, Charles R
 From: April Easton [mailto:aeas...@shawneecourt.org] 
 Subject: Tomcat shutdown issues

 I don't see any of my threads in there

Look harder:

 Worker-JM prio=3D10 tid=3D0x5d7a1800 nid=3D0x521f in Object.wait()
 at 
 org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)
 Bundle File Closer daemon prio=3D10 tid=3D0x5e223800 nid=3D0x521d 
 in Object.wait()
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
 Start Level Event Dispatcher daemon prio=3D10 tid=3D0x5d5fc000 
 nid=3D0x521b in Object.wait()
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)
 Framework Event Dispatcher daemon prio=3D10 tid=3D0x5d956800 
 nid=3D0x521a in Object.wait()   
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
 at 
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Those aren't Tomcat's threads; ergo, they are yours.  You're running Eclipse, 
you're responsible for the chaos it creates.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat shutdown issues

2011-06-10 Thread April Easton
I just installed a plug-in to try and get YourKit going to find the leaks.  I 
didn't realize that I had started Tomcat from inside Eclipse.  I'll take out 
what I did.

Thanks,
April

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat shutdown issues

2011-06-10 Thread April Easton
Taking out what I did for the YourKit plug-in didn't help.  Next, I shutdown my 
Eclipse and then started and stopped Tomcat on the server.  The org.eclipse 
threads were still listed in the thread dump.  I recently upgraded B.I.R.T. to 
version 2.2 on Tomcat and it uses osgi jar files.  I'll look to see if there is 
an issue there or if I need to do something else so Tomcat will shutdown 
properly.

Thanks,
April, Systems



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat shutdown issues

2009-12-18 Thread Pejus M. Das
Looks like your server started pretty quick. Are there any applications
deployed? What url are you hitting when you get the reset exception. Do you
see the tomcat start page?


Pejus

On Fri, Dec 18, 2009 at 8:10 PM, SRama su...@techie.com wrote:


 Hi
 I have some issues  with tomcat, after starting the tomcat when I give
 request to my application tomcat console showing the following error
 message..

 Dec 18, 2009 2:59:23 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3955 ms
 Dec 18, 2009 2:59:27 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
 received
 Dec 18, 2009 2:59:27 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
 received
 Dec 18, 2009 2:59:29 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: read:
 java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at
 org.apache.catalina.core.StandardServer.await(StandardServer.java:412
 )
at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
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.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Dec 18, 2009 2:59:29 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command '' received
 I am not able to shutdown the server please let me know if you have any
 idea
 about this issue..

 --
 View this message in context:
 http://old.nabble.com/Tomcat-shutdown-issues-tp26849025p26849025.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Tomcat shutdown issues

2009-12-18 Thread Konstantin Kolinko
2009/12/18 SRama su...@techie.com:

 Hi
 I have some issues  with tomcat, after starting the tomcat when I give
 request to my application tomcat console showing the following error
 message..

 Dec 18, 2009 2:59:23 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3955 ms
 Dec 18, 2009 2:59:27 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
 received

Someone is trying to send HTTP request to the Tomcat Shutdown port. It
is not what is expected there.

See
http://tomcat.apache.org/tomcat-6.0-doc/config/server.html

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat shutdown issues

2009-12-18 Thread SRama

before starting the server I am checking both port address if any other
applicaion using the same port I am dynamicaly chaning the shutdown port and
http port.
2. I am not using AJP  Connector and redirect port so I have removed. Can
you think because of the issues comming?



?xml version=1.0 encoding=UTF-8?
Server port=8875 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener SSLEngine=on
className=org.apache.catalina.core.AprLifecycleListener/
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener/
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource auth=Container description=User database that can be
updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
name=UserDatabase pathname=conf/tomcat-users.xml
type=org.apache.catalina.UserDatabase/
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
  
Connector connectionTimeout=3 port=5050 protocol=HTTP/1.1
redirectPort=8444/





!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host).
 Documentation at /docs/config/engine.html --

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 
-- 
Engine defaultHost=localhost name=Catalina 

  

  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host appBase=webapps autoDeploy=true name=localhost
unpackWARs=true xmlNamespaceAware=false xmlValidation=false  
  


/Host

  
/Engine
  /Service
/Server 
-- 
View this message in context: 
http://old.nabble.com/Tomcat-shutdown-issues-tp26849025p26850483.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat shutdown issues

2009-12-18 Thread SRama

Tomcat console Error message :


Using CATALINA_BASE:   C:\Users\x1\WDD\dpcdrom\tomcat
Using CATALINA_HOME:   C:\Users\x1\WDD\dpcdrom\tomcat
Using CATALINA_TMPDIR: C:\Users\x1\WDD\dpcdrom\tomcat\temp
Using JRE_HOME:C:\Users\x1\WDD\dpcdrom\java\JavaWin
Dec 18, 2009 5:03:55 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
produ
ction environments was not found on the java.library.path:
C:\Users\w1\WDD
\dpcdrom\java\JavaWin\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C
:\Windows;C:\Windows\System32\Wbem;C:\Program Files\IXOS\bin;C:\Program
Files\Co
mmon Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio
Shared\9.
0\DLLShared\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Java\j
dk1.5.0_22\bin;C:\Program Files\Apache Software Foundation\Tomcat
6.0;C:\Program
 Files\Windows Imaging\
Dec 18, 2009 5:03:55 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-5050
Dec 18, 2009 5:03:55 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 388 ms
Dec 18, 2009 5:03:55 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 18, 2009 5:03:55 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
log4j:WARN No appenders could be found for logger
(com.opensymphony.xwork2.confi
g.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
Dec 18, 2009 5:03:57 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-5050
Dec 18, 2009 5:03:57 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2558 ms
Dec 18, 2009 5:04:38 PM org.apache.tomcat.util.http.Parameters
processParameters

WARNING: Parameters: Invalid chunk ignored.
Dec 18, 2009 5:04:38 PM org.apache.tomcat.util.http.Parameters
processParameters

WARNING: Parameters: Invalid chunk ignored.
Dec 18, 2009 5:04:53 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
received
Dec 18, 2009 5:04:53 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
received
Dec 18, 2009 5:04:54 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: read:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at
org.apache.catalina.core.StandardServer.await(StandardServer.java:412
)
at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
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.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Dec 18, 2009 5:04:54 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command '' received
Dec 18, 2009 5:04:54 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: read:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at
org.apache.catalina.core.StandardServer.await(StandardServer.java:412
)
at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
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.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Dec 18, 2009 5:04:54 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command '' received

please help me to sovle this issue..
-- 
View this message in context: 
http://old.nabble.com/Tomcat-shutdown-issues-tp26849025p26850526.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat shutdown issues

2009-12-18 Thread SRama

I have depolyed my application it's working fine. but I am not able to
shutdown...


Pejus M. Das wrote:
 
 Looks like your server started pretty quick. Are there any applications
 deployed? What url are you hitting when you get the reset exception. Do
 you
 see the tomcat start page?
 
 
 Pejus
 
 On Fri, Dec 18, 2009 at 8:10 PM, SRama su...@techie.com wrote:
 

 Hi
 I have some issues  with tomcat, after starting the tomcat when I give
 request to my application tomcat console showing the following error
 message..

 Dec 18, 2009 2:59:23 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3955 ms
 Dec 18, 2009 2:59:27 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
 received
 Dec 18, 2009 2:59:27 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command 'GET /gdf2009 HTTP/1.1'
 received
 Dec 18, 2009 2:59:29 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: read:
 java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at
 org.apache.catalina.core.StandardServer.await(StandardServer.java:412
 )
at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
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.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Dec 18, 2009 2:59:29 PM org.apache.catalina.core.StandardServer await
 WARNING: StandardServer.await: Invalid command '' received
 I am not able to shutdown the server please let me know if you have any
 idea
 about this issue..

 --
 View this message in context:
 http://old.nabble.com/Tomcat-shutdown-issues-tp26849025p26849025.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 
 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-shutdown-issues-tp26849025p26850592.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat shutdown issues

2009-12-18 Thread Konstantin Kolinko
2009/12/19 SRama su...@techie.com:

 before starting the server I am checking both port address if any other
 applicaion using the same port I am dynamicaly chaning the shutdown port and
 http port.

You won't be able to shutdown Tomcat using the shutdown script, if the
script does not know what Shutdown port Tomcat listens to, and what
secret it expects being written to that port.

Those values are read from server.xml. If server.xml is wrong (is not
the same one as was used to Start this Tomcat instance), you won't be
able to use the shutdown script.

Once again,  http://tomcat.apache.org/tomcat-6.0-doc/config/server.html

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org