Skip to main content
Participating Frequently
July 19, 2009
Question

CAR deployment from Windows to Linux

  • July 19, 2009
  • 1 reply
  • 917 views

I have been trying to deploy a CAR which was built on my local Windows CF Development environment on a Coldfusion installation running on Linux.

For now I only create a file archive, leaving any server settings out. I FTPed the file to a remote Linux server after which I triggered the deploy process from the Linux CFIDE. I mapped the windows c:\.... folders to the linux /data/... and then pressed next.

This results in 2 issues:

1. recreating the folder structure results in a \ to / problem, making it inaccessible from the Linux filesystem. It does not replicate the folder structure as it should, but simply drops all the files into the same folder and creates a name like /data/.../images\myimage.gif instead of /data/.../images/myimage.gif.

2. during the deployment I get the following error:

  "Error"   "07/19/09"   "02:19:42"   "[/opt/jrun4/servers/testcf/SERVER-INF/temp/cfusion.war-tmp/archive_properties.xml]java.io.FileNotFoundException: /opt/jrun4/servers/testcf/SERVER-INF/temp/cfusion.war-tmp/archive_properties.xml (No such file or directory)"

I found little to no information about the above 2 problems. I'm hoping that someone can give me some more information on this and hopefully a fix/solution, one that does not involve setting up a local dev environment using Linux/CF.

    This topic has been closed for replies.

    1 reply

    Participant
    November 6, 2009

    A solution, albeit somewhat hokey, I found to get this to work is

    i) deploy the .car file on linux - you'll get the errors for the incorrect paths archives_properties.xml and server_settings.xml files

    ii) in a shell on your linux system cd to your SERVER-INF/temp directory

    iii) you'll find the 2 files created cfusion.war-tmp\archives_properties.xml and cfusion.war-tmp\server_settings.xml

    move these to the cfusion.war-tmp directory and rename the files to archives_properties.xml and server_settings.xml respectively.

    iv) return to the cf admin and redeploy the same car file. 2nd time around it will find these required files and successfully deploy.