Running a task on localhost. No protected directories or anything.
Step 1: I run a cfm-file manually, and it works as intended.
Step 2: I manually run the task from the administrator. It says it runs successfully.
Step 3: There are no exeptions in any logs.
Step 4: I check the output file and it says Connection Failure.
Step 5: No changes made to the database
Is it an SSL path the task is attempting to access?
Is this all on a local machine, or is the task on a remote server? A remote server may not be able to get to the same pathway as your workstation. If a remote server, can you log-in and browse the url?
Things to check. Don't use an SSL pathway. If the certificate doesn't match the server then CF would return this type of error. You'd have to import the certificate as a trusted certificate in the java cacerts to get this to work.
Or it could be some sort of redirection, if the path is inside an application that requires a login or something like that.
Is there an web server authentication that might be causing an issue.
Try a test file that has a cfhttp call to the url and dump the cfhttp contents to see what the http status code being returned is? This is pretty much the same thing that the scheduled task would do.
Europe, Middle East and Africa