Further update on this issue. I found an interesting thread on this at Macromedia's CF support site.
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&th readid=977925&CFID=1221&CFTOKEN=20654315&jsessionid=9630e94d6631a3041a6f This thread suggests changing the <web-root>/WEB-INF/jrun-web.xml config by adding <reload>TRUE</reload> and <compile>TRUE</compile>. This apparently forces CF to reload class files every time they run. This worked for me on CFMX6.1 on Unix, but doesn't work on CFMX7 on Window$ XP. <!-- ============================================================= --> <!-- This XML file contains web application elements that are --> <!-- specific to the JRun Application Server --> <!-- ============================================================= --> <jrun-web-app> <!-- This setting is used in JRun SP to get CF to work correctly. --> <!-- Without this line, CF on JRun SP1 doesn't work --> <!-- If the server doesn't have the SP installed, JRun just ignores --> <!-- this line --> <enable-jrun-web-services>false</enable-jrun-web-services> <!-- session persistence needs to be disabled due to our classloader setup --> <session-config> <persistence-config> <active>false</active> </persistence-config> </session-config> <reload>TRUE</reload> <compile>TRUE</compile> <!-- <virtual-mapping> <resource-path>/cfsuite</resource-path> <system-path>q:/coretests</system-path> </virtual-mapping> --> </jrun-web-app> > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Knipp, Eric > Sent: Wednesday, April 06, 2005 9:02 AM > To: '[email protected]' > Subject: RE: Java Class Cached? > > > Dirk, > > You shouldn't need to - I am doing this same thing and when I > replace the .class, my new one is available. This is also > what's supposed to happen as stated in the LiveDocs: > > http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/ww > himpl/common/h > tml/wwhelp.htm?context=ColdFusion_Documentation&file=00001561.htm > > -----Original Message----- > From: Dirk Meilinger [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 10:12 PM > To: [email protected] > Subject: RE: Java Class Cached? > > > Hey Eric, > > Thanks for the feedback. The original class was never part > of a .jar, just one that I wrote from scratch. > > Does it need to be placed in a .jar? > > I am running CFMX 7. > > Thanks ! > > Dirk > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Knipp, Eric > > Sent: Tuesday, April 05, 2005 3:36 PM > > To: '[email protected]' > > Subject: RE: Java Class Cached? > > > > > > Dirk, > > > > May I suggest that you delete the jar file that contained > the original > > class? I'm able to use this method without problems so I > can't think > > of exactly why this would continue to cause you problems.. are you > > running CFMX 7? > > > > Eric > > > > -----Original Message----- > > From: Dirk Meilinger [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 05, 2005 3:24 PM > > To: [email protected] > > Subject: RE: Java Class Cached? > > > > > > Sadly, this suggestion does not seem to have fixed my problem. > > > > I have placed my .class files in <webroot>/WEB-INF/classes and my > > server is still exhibiting the same behavior. > > > > If anyone else is experiencing this issue I have taken > another path, > > at least for the short-term. I have switched off my NT CF > service and > > started my CF session from a command prompt, so that I can quickly > > kill it and re-start it again. > > > > On a somewhat related note. I have switched to a command-line > > initiated CF session as I have discovered that stopping and > > re-starting the Win Service has had mixed results for me. > I can cycle > > it a certain number of time and then, apparently at random > intervals, > > when I am trying to cycle the service JRUN.exe will peg at 100% > > utilization and remain there, never stopping. Not even kill.exe or > > pkill.exe will get rid of it. I have to shut my machine down, not > > even a restart will fix it. > > > > Then, I boot up again and CF starts up fine. > > > > Weird..... > > > > Dirk > > > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Meilinger > > Sent: Tuesday, April 05, 2005 1:07 PM > > To: [email protected] > > Subject: RE: Java Class Cached? > > > > Thanks.....my computer thanks you.....my CPU was going nuts > bouncing > > CF all the time =). > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Knipp, Eric > > > Sent: Tuesday, April 05, 2005 12:57 PM > > > To: '[email protected]' > > > Subject: RE: Java Class Cached? > > > > > > FYI, CF will pull from the class directories in WEB-INF prior to > > > pulling from any jar files. > > > > > > Eric > > > > > > -----Original Message----- > > > From: Mike Ferris [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, April 05, 2005 12:54 PM > > > To: [email protected] > > > Subject: Re: Java Class Cached? > > > > > > > > > We had a similar problem simply replacing a .cfm file. The > > compiled > > > class was cached and the server did not recomple the .cfm. > > We found > > > the offending class in > > > JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasse > > > s folder and deleted it. When tried to execute the .cfm > again, the > > > server compiled it and gave us the expected results. > > > > > > I don't know if CF copies class from a specified class path > > or not to > > > this folder, but you could give it a shot. > > > > > > Mike Ferris > > > ---------------------------------------------------------- > > > To post, send email to [email protected] To unsubscribe: > > > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > > > To subscribe: > > > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > > > > > > > ----------------------------------------- > > > CONFIDENTIALITY NOTICE: The information contained in this > > e-mail and > > > attached document(s) may contain confidential information that is > > > intended only for the addressee(s). If you are not the intended > > > recipient, you are hereby advised that any disclosure, copying, > > > distribution or the taking of any action in reliance upon the > > > information is prohibited. > > > If you have received this e-mail in error, please > > immediately notify > > > the sender and delete it from your system. > > > > > > ---------------------------------------------------------- > > > To post, send email to [email protected] To unsubscribe: > > > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > > > To subscribe: > > > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > > > > > > > > > > > > > ---------------------------------------------------------- > > To post, send email to [email protected] To unsubscribe: > > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > > To subscribe: > > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > > > > > > ---------------------------------------------------------- > > To post, send email to [email protected] > > To unsubscribe: > > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > > To subscribe: > > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > > ---------------------------------------------------------- > > To post, send email to [email protected] > > To unsubscribe: > > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > > To subscribe: > > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > > > > > > > ---------------------------------------------------------- > To post, send email to [email protected] > To unsubscribe: > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > To subscribe: > http://www.dfwcfug.org/form_MemberRegistration.cfm > > ---------------------------------------------------------- > To post, send email to [email protected] > To unsubscribe: > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > To subscribe: > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
