Re: Tomcat and coldfusion

2009-01-15 Thread Andrew Hole
In cold fusion server log we can see that coldfusion stopped without errors
Information,main,01/15/09,11:31:54,,ColdFusion stopped

Do you have any idea?

thanks

On Wed, Jan 14, 2009 at 9:29 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Andrew Hole [mailto:andremailingl...@gmail.com]
  Subject: Re: Tomcat and coldfusion

 Here's your culprits:

  Thread-11 prio=1 tid=0x0acd2a20 nid=0x5fbc in Object.wait()
  [0x818a9000..0x818a9eb0]
  at java.lang.Object.wait(Native Method)
  - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
  at java.lang.Object.wait(Object.java:474)
  at
  coldfusion.util.SimpleThreadPool.getAssignment
  (SimpleThreadPool.java:113)
  - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
  at
  coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207)
 
  Thread-10 prio=1 tid=0x0a439138 nid=0x5fbb in Object.wait()
  [0x8192a000..0x8192af30]
  at java.lang.Object.wait(Native Method)
  - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
  at java.lang.Object.wait(Object.java:474)
  at
  coldfusion.util.SimpleThreadPool.getAssignment
  (SimpleThreadPool.java:113)
  - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
  at
  coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207)
 
  Thread-9 prio=1 tid=0x0a873288 nid=0x5fba in Object.wait()
  [0x81afc000..0x81afcdb0]
  at java.lang.Object.wait(Native Method)
  - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
  at java.lang.Object.wait(Object.java:474)
  at
  coldfusion.util.SimpleThreadPool.getAssignment
  (SimpleThreadPool.java:113)
  - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
  at
  coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207)

 These threads all originate in coldfusion, so you'll need to fix it in
 there, not Tomcat.

 You can do a kill -3 to really get rid of the process, but that's drastic
 and simply masks the problem.

  - 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 and coldfusion

2009-01-15 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:andremailingl...@gmail.com]
 Subject: Re: Tomcat and coldfusion

 In cold fusion server log we can see that coldfusion stopped
 without errors
 Information,main,01/15/09,11:31:54,,ColdFusion stopped

So coldfusion is either a) lying, or b) broken.  The thread dump clearly shows 
coldfusion did not shut down its auxiliary threads; this is a coldfusion, not 
Tomcat, problem.

 - 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 and coldfusion

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
 From: Andrew Hole [mailto:andremailingl...@gmail.com]
 Subject: Re: Tomcat and coldfusion

 How can I take a thread dump?
 
 Tough to tell you since you left out basic information:
 
 1) Tomcat version
 2) JRE/JDK version
 3) OS type and level
 
 If you're on a recent enough JRE/JDK (1.5 or better), you can use
 JConsole or jstack to poke around inside a running JVM. For Linux
 systems, try a kill -9 (or ctrl-\); for Windows, try ctrl-brk.

Er, that should be kill -3. kill -9 results in slight different
behavior ;)

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklvZ0YACgkQ9CaO5/Lv0PCPRwCfWm+JBj+0qcZ5TkQdm0S64SWy
dcYAmwVdpeWqJkj9D5BQTpZ2bvX7dxl0
=b435
-END PGP SIGNATURE-

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



RE: Tomcat and coldfusion

2009-01-15 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Tomcat and coldfusion

 Er, that should be kill -3. kill -9 results in slight different
 behavior ;)

Sorry, got it backwards.  The OP seems to have figured it out...

 - 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 and coldfusion

2009-01-14 Thread Martin Gainty

could you display web.xml for your ColdFusion webapp
how does one create a servlet from Apache HTTP Server CF Script
?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




 Date: Wed, 14 Jan 2009 18:15:14 +
 Subject: Tomcat and coldfusion
 From: andremailingl...@gmail.com
 To: users@tomcat.apache.org
 
 Hello guys!
 
 I deployed coldfusion on Tomcat and everything looks fine to me except when
 I shutdown the service.
 This deployment was made in Linux.
 
 Jan 14, 2009 5:29:43 PM org.apache.coyote.http11.Http11BaseProtocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8189
 Jan 14, 2009 5:29:44 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 01/14 17:29:44 Information [main] - Stopping Event Gateways.
 01/14 17:29:49 Information [main] - ColdFusion stopped
 Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop
 FINE: ContextConfig: Processing STOP
 Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop
 FINE: ContextConfig: Processing STOP
 Jan 14, 2009 5:29:49 PM org.apache.coyote.http11.Http11BaseProtocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8189
 
 It looks that tomcat is stopped but the tomcat process still alive in the
 server.
 Do you have any suggestion about this issue? I'm very concerned about this
 problem.
 
 Thanks a lot

_
Windows Liveā„¢ HotmailĀ®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009

Re: Tomcat and coldfusion

2009-01-14 Thread Andrew Hole
just to say one more thing:
this only happens when cfusion war is deployed in tomcat. If i try to
shutdown without cfusion.war deployed, everything works fine.
I'm seeing the cfusion log and there are no errors in stopping cfusion
engine.

Thanks

On Wed, Jan 14, 2009 at 6:15 PM, Andrew Hole andremailingl...@gmail.comwrote:

 Hello guys!

 I deployed coldfusion on Tomcat and everything looks fine to me except when
 I shutdown the service.
 This deployment was made in Linux.

 Jan 14, 2009 5:29:43 PM org.apache.coyote.http11.Http11BaseProtocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8189
 Jan 14, 2009 5:29:44 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 01/14 17:29:44 Information [main] - Stopping Event Gateways.
 01/14 17:29:49 Information [main] - ColdFusion stopped
 Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop
 FINE: ContextConfig: Processing STOP
 Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop
 FINE: ContextConfig: Processing STOP
 Jan 14, 2009 5:29:49 PM org.apache.coyote.http11.Http11BaseProtocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8189

 It looks that tomcat is stopped but the tomcat process still alive in the
 server.
 Do you have any suggestion about this issue? I'm very concerned about this
 problem.

 Thanks a lot




Re: Tomcat and coldfusion

2009-01-14 Thread Andrew Hole
Sure. cfusion web.xml is the following:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app id=adobe_coldfusion
display-nameAdobe ColdFusion 8/display-name
descriptionAdobe ColdFusion 8/description
context-param id=coldfusion_context_1
param-namecftags/param-name
param-value/WEB-INF/cftags/param-value
descriptionPath to search for built-in tags. Relative to
application root.
This parameter can only be one path element./description
/context-param
context-param id=coldfusion_context_2
param-namecoldfusion.compiler.outputDir/param-name
param-value/WEB-INF/cfclasses/param-value
descriptionThis is the directory where we will place compiled
pages. It must be relative to the webapp root./description
/context-param
context-param id=coldfusion_context_4
param-namecfx.registry.nativelibrary/param-name
param-valuecfregistry/param-value
descriptionNative library that implements CFX_REGISTRY.
Used on Windows only./description
/context-param
context-param id=coldfusion_context_5
param-namecfx.report.nativelibrary/param-name
param-valuecfreport/param-value
descriptionNative library that implements CFX_REPORT.
Used on Windows only./description
/context-param
context-param id=coldfusion_context_88
param-namecf.class.path/param-name
param-value

./WEB-INF/cfusion/lib/updates,./WEB-INF/cfusion/lib,./WEB-INF/cfusion/gateway/lib,./WEB-INF/flex/jars,./WEB-INF/cfform/jars/param-value
/context-param
context-param id=coldfusion_context_89
param-namecf.lib.path/param-name
param-value./WEB-INF/cfusion/lib/param-value
/context-param

!-- CF Monitoring Filter  --
filter
filter-nameCFMonitoringFilter/filter-name
filter-classcoldfusion.bootstrap.BootstrapFilter/filter-class
init-param
param-namefilter.class/param-name

param-valuecoldfusion.monitor.event.MonitoringServletFilter/param-value
/init-param
/filter

!-- Cache Filter for cfform swfs --
filter
filter-nameCFCacheFilter/filter-name
filter-classcoldfusion.bootstrap.BootstrapFilter/filter-class
init-param
param-namefilter.class/param-name
param-valueflex.server.j2ee.cache.CacheFilter/param-value
/init-param
/filter

!-- Request Control Filter for Flash Remoting servlets--
filter
filter-nameFlashRemotingControlFilter/filter-name
filter-classcoldfusion.bootstrap.BootstrapFilter/filter-class
init-param
param-namefilter.class/param-name

param-valuecoldfusion.filter.FlashRequestControlFilter/param-value
/init-param
:$
/servlet-mapping
servlet-mapping id=coldfusion_mapping_12
servlet-nameCFCServlet/servlet-name
url-pattern*.cfr/url-pattern
/servlet-mapping
servlet-mapping id=coldfusion_mapping_13
servlet-nameCFFormGateway/servlet-name
url-pattern/CFFormGateway/*/url-pattern
/servlet-mapping
servlet-mapping id=coldfusion_mapping_14
servlet-nameCFFileServlet/servlet-name
url-pattern/CFFileServlet/*/url-pattern
/servlet-mapping

!-- start flash form settings --
servlet-mapping
servlet-nameCFInternalServlet/servlet-name
url-pattern/cfform-internal/*/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameCFSwfServlet/servlet-name
url-pattern*.cfswf/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameCFForbiddenServlet/servlet-name
url-pattern*.as/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameCFForbiddenServlet/servlet-name
url-pattern*.sws/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameCFForbiddenServlet/servlet-name
url-pattern*.swc/url-pattern
/servlet-mapping
!-- end flash form settings --

session-config
session-timeout30/session-timeout
/session-config

welcome-file-list id=WelcomeFileList_1034013110672
welcome-fileindex.cfm/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
/welcome-file-list

!-- start flex2
taglib
taglib-uriFlexTagLib/taglib-uri

taglib-location/WEB-INF/lib/cf-bootstrap-for-flex.jar/taglib-location
/taglib
end flex2 --

!-- for WebSphere deployment, please uncomment --
!-- Start WebSphere deploy
resource-ref
descriptionFlex Messaging WorkManager/description
res-ref-namewm/MessagingWorkManager/res-ref-name
res-typecom.ibm.websphere.asynchbeans.WorkManager/res-type
res-authContainer/res-auth
res-sharing-scopeShareable/res-sharing-scope
/resource-ref
End WebSphere 

RE: Tomcat and coldfusion

2009-01-14 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:andremailingl...@gmail.com]
 Subject: Tomcat and coldfusion

 It looks that tomcat is stopped but the tomcat process still
 alive in the server.

This is pretty much always a result of a webapp starting its own threads and 
failing to shut them down; the JVM can't terminate until all non-daemon threads 
exit.  Properly designed webapps often use a ServletContextListener to do the 
necessary thread management.

Try taking a thread dump after the shutdown request to see where the remaining 
threads are.

 - 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 and coldfusion

2009-01-14 Thread Andrew Hole
Thanks for you quick response.
How can I take a thread dump?

Thanks


On Wed, Jan 14, 2009 at 6:37 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Andrew Hole [mailto:andremailingl...@gmail.com]
  Subject: Tomcat and coldfusion
 
  It looks that tomcat is stopped but the tomcat process still
  alive in the server.

 This is pretty much always a result of a webapp starting its own threads
 and failing to shut them down; the JVM can't terminate until all non-daemon
 threads exit.  Properly designed webapps often use a ServletContextListener
 to do the necessary thread management.

 Try taking a thread dump after the shutdown request to see where the
 remaining threads are.

  - 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 and coldfusion

2009-01-14 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:andremailingl...@gmail.com]
 Subject: Re: Tomcat and coldfusion

 How can I take a thread dump?

Tough to tell you since you left out basic information:

1) Tomcat version
2) JRE/JDK version
3) OS type and level

If you're on a recent enough JRE/JDK (1.5 or better), you can use JConsole or 
jstack to poke around inside a running JVM.  For Linux systems, try a kill -9 
(or ctrl-\); for Windows, try ctrl-brk.

 - 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 and coldfusion

2009-01-14 Thread Andrew Hole
 (ParallelGC) prio=1 tid=0x0a03cec8 nid=0x5fa0 runnable

GC task thread#1 (ParallelGC) prio=1 tid=0x0a03db18 nid=0x5fa1 runnable

GC task thread#2 (ParallelGC) prio=1 tid=0x0a03e750 nid=0x5fa2 runnable

GC task thread#3 (ParallelGC) prio=1 tid=0x0a03f388 nid=0x5fa3 runnable

VM Periodic Task Thread prio=1 tid=0x0a0ea8c8 nid=0x5fac waiting on
condition

On Wed, Jan 14, 2009 at 6:48 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Andrew Hole [mailto:andremailingl...@gmail.com]
  Subject: Re: Tomcat and coldfusion
 
  How can I take a thread dump?

 Tough to tell you since you left out basic information:

 1) Tomcat version
 2) JRE/JDK version
 3) OS type and level

 If you're on a recent enough JRE/JDK (1.5 or better), you can use JConsole
 or jstack to poke around inside a running JVM.  For Linux systems, try a
 kill -9 (or ctrl-\); for Windows, try ctrl-brk.

  - 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 and coldfusion

2009-01-14 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:andremailingl...@gmail.com]
 Subject: Re: Tomcat and coldfusion

Here's your culprits:

 Thread-11 prio=1 tid=0x0acd2a20 nid=0x5fbc in Object.wait()
 [0x818a9000..0x818a9eb0]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
 at java.lang.Object.wait(Object.java:474)
 at
 coldfusion.util.SimpleThreadPool.getAssignment
 (SimpleThreadPool.java:113)
 - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
 at
 coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207)

 Thread-10 prio=1 tid=0x0a439138 nid=0x5fbb in Object.wait()
 [0x8192a000..0x8192af30]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
 at java.lang.Object.wait(Object.java:474)
 at
 coldfusion.util.SimpleThreadPool.getAssignment
 (SimpleThreadPool.java:113)
 - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
 at
 coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207)

 Thread-9 prio=1 tid=0x0a873288 nid=0x5fba in Object.wait()
 [0x81afc000..0x81afcdb0]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
 at java.lang.Object.wait(Object.java:474)
 at
 coldfusion.util.SimpleThreadPool.getAssignment
 (SimpleThreadPool.java:113)
 - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool)
 at
 coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207)

These threads all originate in coldfusion, so you'll need to fix it in there, 
not Tomcat.

You can do a kill -3 to really get rid of the process, but that's drastic and 
simply masks the problem.

 - 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