If I try to run it I get the following error in the output log file:
/schedule/test.cfm [/opt/lucee/tomcat/webapps/ROOT/schedule/test.cfm] not found
Of course the file does not exist in the location it’s trying to run it from. The file is actually located in the /var/www/html/schedule directory and I have a mapping that’s set as:
/schedule /var/www/html/schedule
If I point my browser to the machine IP to run the task as follows it works:
Correct, I’m running apache and mod_cfml as you said. I just didn’t think that Apache has any relevance in this since I’m not hitting Apache in this situation. I was under the impression that I’m simply hitting Tomcat on port 8888. Can you clarify what you mean with the hostname?
I created a schedule task with path related to mapping creation. Everything works fine for me. I’ve checked with Windows 10, Lucee 5.3 latest & also 5.2.9.31.
I understand, so how do I go about figuring out what the problem is? When I try to request the resource from the server itself, it doesn’t work. localhost resolves to 127.0.0.1 and when I try the request from another machine to the server it works using the server name which resolves to the IP of the box.
HI cfmitrah, that’s how I have the server setup. I have a mapping in the Web Administrator pointing to the resource and I have the scheduled task as you described but it doesn’t seem to work. Am I missing something?
Maybe I wasn’t clear. When I put in there “server”, I didn’t actually mean the actual server name. If I simply put in the IP address of the server in the web browser it works fine. So using localhost i.e. 127.0.0.1 it should also work yes?
What you are saying makes sense, however I have another server with the exact same setup and using localhost doesn’t try to go to the default lucee web context, it actually goes to the virtual mapping I setup which points to the /var/www/html/schedule directory. I thought configuring the mappings would take care of the issue. So I must be doing something wrong…