ColdFusion using Javaloader error

笑着哭i 提交于 2019-12-25 05:18:07

问题


I have a question regarding calling java class from ColdFusion using Javaloader 1.1.

I attempted to access java class from ColdFusion in a local server, and there was no problem. But when I tried the same thing in office server, I got an error:

"the specified directory mypath\Javaloader/tmp/AEFACE9B-1C6F-6569-2329 could not be created. The most Likely cause of this error that mypath \ / tmp/AEFACE9B-1C6F-6569-2329 already exists on your file system."

And another message

"The error occured in Javaloader.cfc line 269". Javaloader.cfc line 269 is < cfdirectory action="create" directory="#path#" >

what do those error messages mean?

this is my code:

//calling java from coldfusion
<cfscript>
sourcePaths = [expandPath("./src")];

loader = createObject("component", "javaloader.JavaLoader").init(sourceDirectories=sourcePaths);

obj = loader.create("myClass").init();
</cfscript>

I really have no idea. Any solution will be much appreciated. Thank you in advance...

来源:https://stackoverflow.com/questions/12652824/coldfusion-using-javaloader-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!