|
Mailing Lists
|
Home /
Groups /
CFUnit
CFUnit in Eclipse
Hi,Doug Ward 02/03/06 02:24 P Try this. In your browser go to:SkorPiun 02/04/06 08:40 A >Try this. In your browser go to:Doug Ward 02/07/06 03:20 P I am terribly sorry for the slow response Doug, I'll try to respondSkorPiun 02/13/06 09:42 P Hello,Justin Judd 02/15/06 09:46 P Justin,SkorPiun 02/15/06 09:56 P >I am terribly sorry for the slow response Doug, I'll try to respondDoug Ward 02/17/06 10:21 A I have to admit; I'm a bit at a loss for ideas here :o(SkorPiun 02/17/06 05:05 P I appreciate your interest in the issue. I'll let you know if I ever figure it out.Doug Ward 02/21/06 02:22 P Doug,Basil Eltom 03/02/06 09:38 A Basil,Doug Ward 05/09/06 01:46 P Hi, I have Eclipse set up to automatically run Ant whenever I make a change to an identified file. However, it doesn't seem as though my CFCs actually update. It seems as though they are cached. I get the follwing error: BUILD FAILED C:\Inetpub\wwwroot\MyApp\build.xml:7: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/MyApp/tests/TestDistanceCalc.cfc?method=execute&verbose=true It is not a path issue. If I go and run the CFC in question, then re-run the Ant build, it works fine. I just can't get it to automatically "refresh" my CFC (though I have identified the CFC within the "Specify Resources..." tab of the 'builder' wizard. Any ideas? Thanks, Doug Ward Try this. In your browser go to: http://localhost/MyApp/tests/TestDistanceCalc.cfc?method=execute&verbose=true&html=1 And let us know what message you get. -- Rob Blackburn http://www.rbdev.net ----- Excess quoted text cut - see Original Post for more ----- ----- Excess quoted text cut - see Original Post for more ----- Hi, This post is going to include a lot of error code, but I just want to be sure I'm accurately reporting what is happening. So, here is the sequence of events: First, I have my DistanceCalc.cfc. If I make an update to that file and save it, my ant build runs and everything works well. But, if I make a change to my TestDistanceCalc.cfc and run it I get: === BUILD FAILED C:\Inetpub\wwwroot\MyApp\build.xml:7: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/MyApp/tests/TestDistanceCalc.cfc?method=execute&verbose=true === If I then go and run 'http://localhost/MyApp/tests/TestDistanceCalc.cfc?method=execute&verbose=true' in my browser, I get: === Could not find the ColdFusion Component TestDistanceCalc. Please check that the given name is correct and that the component exists. The error occurred in C:\Inetpub\wwwroot\net\sourceforge\cfunit\framework\TestSuite.cfc: line 104 Called from C:\Inetpub\wwwroot\net\sourceforge\cfunit\framework\TestSuite.cfc: line 62 Called from C:\Inetpub\wwwroot\net\sourceforge\cfunit\framework\TestCase.cfc: line 198 102 : 103 : <!--- Get the root CFC and its metadata ---> 104 : <cfset classTemplate = createObject("component", ARGUMENTS.classname)> 105 : <cfset cd = GetMetadata( classTemplate )> 106 : <cfset setName( cd["NAME"] )> === I can then go and browse DIRECTLY to http://localhost/MyApp/tests/TestDistanceCalc.cfc, it shows up fine in the CFCExplorer. I can then go back and broswe to 'http://localhost/MyApp/tests/TestDistanceCalc.cfc?method=execute&verbose=true' and I get: === Failure Execution Time: 47 ms [failure] testNew(MyApp.tests.TestDistanceCalc): Test not yet implemented === This is what should show up because I have a failing test case. So it seems as though, somehow, the ant build file chokes when I make an update to TestDistanceCalc.cfc. Sorry about the long post. Any ideas? Doug Ward I am terribly sorry for the slow response Doug, I'll try to respond quicker in the future So its the same ANT file that executes when you change DistanceCalc.cfc as when you change TestDistanceCalc.cfc - correct? Can you e-mail me you ant build file? (skorpiun@gmail.com) And I'll see if I can replicate this problem too. Thanks -- Rob Blackburn http://www.rbdev.net ----- Excess quoted text cut - see Original Post for more ----- Hello, I am experiencing the same problem. If you get any ideas, please post them! Thanks, Justin Justin, If you open the test CFC in the browser with "?method=execute&verbose=1&html=1" appended to the end, do you still get the same message, and is there more details? Are you also using the code form the tutorial, or are you getting this error with one of your own testcase CFCs? Thanks -- Rob Blackburn http://www.rbdev.net ----- Excess quoted text cut - see Original Post for more ----- >I am terribly sorry for the slow response Doug, I'll try to respond >quicker in the future No problem! I really appreciate your help. >So its the same ANT file that executes when you change >DistanceCalc.cfc as when you change TestDistanceCalc.cfc - correct? Same one. Here is a little more info just to make things that much more complicated. I work on the same app at work and at home. Obvioulsy, I update the files back and forth. The directory structure is exaclty the same on both systems (C:\Inetpub\wwwroot\APPNAME). On my home system everything works fine - I make an update, save, ant runs fine. Same exact files at work, and my test cfcs don't 'refresh'. So it must be a configuration setting somewhere? Maybe a CF setting? I just can't figure it out. >Can you e-mail me you ant build file? (skorpiun@gmail.com) And I'll >see if I can replicate this problem too. I'll send the ant file. >Thanks Thank you! I have to admit; I'm a bit at a loss for ideas here :o( I would take a look at you CF admin setting for you home machine versus you work one, and see if there is any differences. I'll take a look again later and if I come up with any ideas I'll let you know Sorry I can't be more help -- Rob Blackburn http://www.rbdev.net ----- Excess quoted text cut - see Original Post for more ----- I appreciate your interest in the issue. I'll let you know if I ever figure it out. Thanks! Doug Ward Doug, i am having the same problem with my CFUnit, i tried everything from getting different versions to server confgs, but i still have the problem. did you manage to find an answer thanks for your help regards Basil Eltom Basil, Well, it seems the issue was resolved by upgrading ColdFusion to version 7.0.1. I changed nothing in any of my apps, but as soon as I updated to 7.0.1, my Ant builds work without manual updating my CFCs. Here is the link to the updater: http://www.adobe.com/support/coldfusion/downloads_updates.html Doug ----- Excess quoted text cut - see Original Post for more ----- Eltom
|
May 20, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||