ah. do you have "_extensions" mapped in cfadmin?
On Fri, May 9, 2008 at 10:54 AM, James Buckingham <Clarke
...@gmail.com> wrote:
> This is an actual call from the project's root application.cfc that I
> built last week:
> application.payment.com.myCFC =
> createObject('component','_extensions.com.myCFC').init();
> Again that works fine.
> On May 9, 3:52 pm, James Buckingham <Clarke...@gmail.com> wrote:
>> Built a quick test page in the same folder as my CFCs:
>> <cfscript>
>> test = createObject("component","myCFC");
>> </cfscript>
>> <cfdump var="#test#" />
>> And that returned fine on both files.
>> On May 9, 3:49 pm, "Marc Esher" <marc.es...@gmail.com> wrote:
>> > when you do a normal "createObject" on thse test files, would you use
>> > "interact.onlinePayments._extensions.com.MyCFC"
>> > ?
>> > Marc
>> > On Fri, May 9, 2008 at 10:45 AM, James Buckingham <Clarke...@gmail.com> wrote:
>> > > Thanks for replying so quickly Marc.
>> > > Ok I've gone into the project properties and under Resource I've got
>> > > the following:
>> > > Path: /onlinePayments
>> > > Type: Project
>> > > Location: L:\cfusion.war\interact\onlinePayments
>> > > (I'm obviously mapping but the original post was the absolute path)
>> > > If I want to access the cfc's direct through a browser (if that's what
>> > > you mean) I would go to:
>> > >https://mydomain.com/interact/onlinePayments/_extensions/com/myCFC.cfc
>> > > Like I say that will only work once I've logged in though otherwise
>> > > I'd be redirected to the main login page.
>> > > I tried a couple of combinations, includes the ones you mention there,
>> > > plus:
>> > > /onlinePayments
>> > > but still no luck.
>> > > Does that help?
>> > > On May 9, 3:33 pm, "Marc Esher" <marc.es...@gmail.com> wrote:
>> > >> Hi James,
>> > >> for the eclipse project that contains your test cases, what is the
>> > >> "path"? And what is the "right" path to this test as CF sees it?
>> > >> what i'm thinking is this:
>> > >> if your project root is
>> > >> x:\\Inetpub\iwsroot\cfusion.war\interact\onlinePayments\_extensions\com,
>> > >> then you should be able to go into project properties and set the
>> > >> "component root" value to "com". the plugin will then evaluate the
>> > >> path to your tests as "com.IWSManagerTest"
>> > >> or, if that's not right, if the component path as CF sees it is
>> > >> interact.onlinePayments._extensions.com.IWSManagerTest", then you
>> > >> could set the project component root property to
>> > >> "interact.onlinePayments._extensions.com and then the plugin should
>> > >> resolve it correctly.
>> > >> marc
>> > >> On Fri, May 9, 2008 at 10:24 AM, James Buckingham <Clarke...@gmail.com> wrote:
>> > >> > Hi everyone,
>> > >> > I'm trying to setup MXUnit (in Eclipse) and getting a bit confused
>> > >> > about how I should be setting up my files and configuring the plugin.
>> > >> > This is how I've got things setup at the moment, hope this makes
>> > >> > sense:
>> > >> > CFMX7 - multiserver configuration with three instances:
>> > >> > Instance Name / URL : port
>> > >> > Main -http://mydomain.com:8300
>> > >> > Web -http://mydomain.com:8301
>> > >> > Apps -http://mydomain.com:8302
>> > >> > MXUnit found in main instance here:http://mydomain.com:8300/mxunit
>> > >> > Path address to this is: x:\\JRun4\servers\cfusion\cfusion-ear\cfusion-
>> > >> > war\mxunit
>> > >> > Test Cases are here on Apps:
>> > >> >http://mydomain.com:8302/interact/onlinePayments/_extensions/com/
>> > >> > Path address is outside JRun here:
>> > >> > x:\\Inetpub\iwsroot\cfusion.war\interact\onlinePayments\_extensions
>> > >> > \com
>> > >> > -------
>> > >> > When I try and set this up I get the following error:
>> > >> > ERROR getting methods for Component/ Message is:
>> > >> > coldfusion.xml.rpc.CFCInvocationException:
>> > >> > [coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find
>> > >> > the ColdFusion Component
>> > >> > cfusion.war.interact.onlinePayments._extensions.com.IWSManagerTest.]
>> > >> > *Component*:
>> > >> > cfusion.war.interact.onlinePayments._extensions.com.IWSManagerTest
>> > >> > *URL*:
>> > >> >http://mydomain.com:8300/mxunit/framework/RemoteFacade.cfc?wsdl
>> > >> > -------
>> > >> > I've tried a variety of ways to customised the project as well but I
>> > >> > can't get rid of this message.
>> > >> > One issue (although I don't know if it is one) is that the test cases
>> > >> > are behind a secure area. So the application.cfc is checking for a
>> > >> > valid session. If it doesn't exist then it redirects to the main login
>> > >> > page. Would this affect the cfcs from within Eclipse at all?
>> > >> > Should I maybe be placing my tests somewhere else? Preferably I'd
>> > >> > rather not as the project is pretty nicely self contained just now. Am
>> > >> > I missing anything major here that I could be doing?
>> > >> > Any help is appreciated and let me know if you need to know anything
>> > >> > else.
>> > >> > James