|
From: dr-pepper on 16 Aug 2006 20:48 Hello all.... I cfcompiled an app in windows. The compiled files run great under windows. I deploy those same files to a linux server running CFMX7 Enterprise, and the app won't run. I geet getting unexpected constant errors on each file that is loaded. If I replace a file that caused an unexpected constant error, the app moves on the the next compiled file and thows another error. So, it's definitely the compiled files that are causing these errors. What do I do now? Thank you for you help. tom
From: ksmith on 17 Aug 2006 09:07 I just tested this starting on a winXP system/CFMX 7.01. I moved the compiled files to a Suse9/CFMX7.01 environment and they run fine. I am using the default JRE installed by CFMX on both machines. I do note the linux machine has the case-sensitivity issues you would expect. So, when I am trying to invoke a local webservice I must match the path exactly. What is your linux environment and are you running the same JRE in both environments. Compiling under a newer JVM then what is used for running has often produced bad results for me.
From: dr-pepper on 17 Aug 2006 17:52 Right now, I am just trying to get one stand-alone precompiled template to run, and I still get those unexpected constant errors. So, filename case problems are not an issue yet. I cfompliled on this machine: Server Product ColdFusion MX Version 7,0,1,116466 Edition Enterprise (DevNet) Operating System Windows 2003 OS Version 5.2 Java Version 1.4.2_05 Java Vendor Sun Microsystems Inc. Java Vendor URL http://java.sun.com/ Java Home C:\CFusionMX7\runtime\jre Java File Encoding Cp1252 Java Default Locale en_US File Separator \ Path Separator ; Line Separator Chr(13) Java VM Specification Version 1.0 Java VM Specification Vendor Sun Microsystems Inc. Java VM Specification Name Java Virtual Machine Specification Java VM Version 1.4.2_05-b04 Java VM Vendor Sun Microsystems Inc. Java VM Name Java HotSpot(TM) Server VM Java Specification Version 1.4 Java Specification Vendor Sun Microsystems Inc. Java Specification Name Java Platform API Specification Java Class Version 48.0 Here is the target machine: Server Product ColdFusion MX Version 7,0,1,116466 Edition Enterprise Operating System UNIX OS Version 2.6.9-22.ELsmp JVM Details Java Version 1.4.2_06 Java Vendor Sun Microsystems Inc. Java Vendor URL http://java.sun.com/ Java Home /CFusionMX7/jdk/jre Java File Encoding UTF8 Java Default Locale en_US File Separator / Path Separator : Line Separator Chr(10) Java VM Specification Version 1.0 Java VM Specification Vendor Sun Microsystems Inc. Java VM Specification Name Java Virtual Machine Specification Java VM Version 1.4.2_06-b03 Java VM Vendor Sun Microsystems Inc. Java VM Name Java HotSpot(TM) Server VM Java Specification Version 1.4 Java Specification Vendor Sun Microsystems Inc. Java Specification Name Java Platform API Specification Java Class Version 48.0 Could the differences in line separator and file encoding be causing this problem? Thanks again. tom
From: ksmith on 21 Aug 2006 10:52 Try using the built in JRE on you linux environment. Next try cfcompile on you linux environment. What is the linux/unix environment. Since this is environment specific, knowing the specifics would help.
From: ksmith on 21 Aug 2006 16:09
I tested again using the 1.4.2_06 JRE on a RHES4 linux box. It worked there also. I do note that my kernel build is 2.6.9-34. |