I am trying to call a java service from ColdFusion MX 8.0.1 using the following code.
ws = CreateObject("WebService",
vali = CreateObject("Java","vo.my
wsResponse = ws.updateContact(vali);
I am the developer of the Java service, not a coldfusion programmer.
If you check the listed code... the problems occurs at line 3, creating the ContactVO object.
The call fails with "Object Instantiation Exception - Class not found: vo.myapplication.ContactVO
", so i know CF is unable to load my class.
My question is why? The package is correct, and the class exists. I even tried "myapplication.vo.ContactV
O" (as it seemed to expand the stubs in reverse)
My stubs have been generated into :
and i can see ContactVO in there, in the correct package.
I can make it work if i add the absolute path of the stubs directory to
Server Settings > Java and JVM > ColdFusion Class Path
Can anyone tell me why Coldfusion 8.0.1 is not dynamically loading the VO class for me at runtime, so that i can perform a CreateObject and pass the value.
Or suggest another way i can do it?
By the way, I REALLY want to use the Java object rather than a structNew(), because calling setters on my VO's automatically sets the modified marker on them.
Thanks in advance!