rot299
asked on
cfexecute is driving me crazy
Hi,
I've spend several hours trying to get a simple java command line call to run using cfexecute with no luck.
I am using windows 2003 with JRun/CF6.1
I have tested the command in dos and it works fine but no matter what I do using cfexecute it simple will not run and will will timeout everytime. The test im doing should only take a few seconds to run so its not an issue with the process taking too long.
<cfexecute
name="java"
arguments="-jar c:\regain\crawler\regain.j ar -config c:\config\CrawlerConfigura tion.xml -logConfig c:\regain\crawler\log4j.pr operties"
timeout="300"
variable="output" />
I've tried putting the arguments in the name attribute as noted by some other bug fixes but it didn't make a difference.
Any advice would be appreciated.
I've spend several hours trying to get a simple java command line call to run using cfexecute with no luck.
I am using windows 2003 with JRun/CF6.1
I have tested the command in dos and it works fine but no matter what I do using cfexecute it simple will not run and will will timeout everytime. The test im doing should only take a few seconds to run so its not an issue with the process taking too long.
<cfexecute
name="java"
arguments="-jar c:\regain\crawler\regain.j
timeout="300"
variable="output" />
I've tried putting the arguments in the name attribute as noted by some other bug fixes but it didn't make a difference.
Any advice would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It's kinda fruity, but ColdFusion requires the ".exe" on the end of the name attribute:
<cfexecute
name="java.exe"
arguments="-jar c:\regain\crawler\regain.j ar -config c:\config\CrawlerConfigura tion.xml -logConfig c:\regain\crawler\log4j.pr operties"
timeout="300"
variable="output" />
<cfexecute
name="java.exe"
arguments="-jar c:\regain\crawler\regain.j
timeout="300"
variable="output" />
<cfexecute
name="C:\WINDOWS\system32\
arguments="java -jar etcetc"
>
</cfexecute>