(For those on cf-talk, forgive the cross post.)
So, I've been trying like heck to solve a simple problem. I have a virtual
host running with Apache, tasktracker.jedi.com. I normally keep my cfcs
here:
c:\projects\tasktracker.jedi.com\cfcs
and my web root is here:
c:\projects\tasktracker.jedi.com\wwwroot
I needed to use a web service, so I added a CFC called tasktrackerproxy.cfc.
When placed under the webroot, at first, I could not view the CFC. However,
I simply added an alias for /CFIDE and everything worked fine.
However, whenever I tried to call the CFC as a WS, I got an error saying the
class could not be found. Nothing on google was helpful.
Barney suggested I add an alias in jrun-web.xml. So I added this:
<virtual-mapping>
<resource-path>/tasktracker</resource-path>
<system-path>C:/projects/tasktracker.jedi.com/wwwroot</system-path>
</virtual-mapping>
Now I tried to hit my WS like this:
tasktracker.jedi.com/tasktracker/tasktrackerproxy.cfc?WSDL
This time I got:
Fault -
[coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedCFCDataTypeException :
Could not resolve CFC datatype: /tasktracker/temp.cfc][; nested exception
is:
coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedCFCDataTypeException :
Could not resolve CFC datatype: /tasktracker/temp.cfc][
This almost seems like I'm using a returntype or an extends to a cfc that MX
can't find, but my CFC is extremely simple. It has one method that returns
"hi".
This is extremely frustrating and I can't believe I'm the only one trying to
use WS under virtual servers.
===========================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]