House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  CFUnit

CFUnit in Eclipse

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
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
Hello,
Justin Judd
02/15/06 09:46 P
Justin,
SkorPiun
02/15/06 09:56 P
Doug,
Basil Eltom
03/02/06 09:38 A
Basil,
Doug Ward
05/09/06 01:46 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Doug Ward
02/03/2006 02:24 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
SkorPiun
02/04/2006 08:40 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Doug Ward
02/07/2006 03:20 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
SkorPiun
02/13/2006 09:42 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Justin Judd
02/15/2006 09:46 PM

Hello, I am experiencing the same problem.  If you get any ideas, please post them! Thanks, Justin

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
SkorPiun
02/15/2006 09:56 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Doug Ward
02/17/2006 10:21 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
SkorPiun
02/17/2006 05:05 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Doug Ward
02/21/2006 02:22 PM

I appreciate your interest in the issue. I'll let you know if I ever figure it out. Thanks! Doug Ward

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Basil Eltom
03/02/2006 09:38 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Doug Ward
05/09/2006 01:46 PM

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


<< Previous Thread Today's Threads Next Thread >>

Search cfunit

May 20, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference