• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfcompile

New Here ,
Jan 22, 2014 Jan 22, 2014

Copy link to clipboard

Copied

Cfcompile trashes my templates, using the syntax of in a DOS window:

c:/coldfusion9/bin>cfcompile -deploy C:\coldfusion9\wwwroot C:\ColdFusion9\wwwroot\filestocompile C:\ColdFusion9\wwwroot\filescompiled

Templates compiled no problem in cf7, but both my cf8 and cf9 trash them. When I load them to localhost:8500 to view them, the hash is visible all over the page, looks like hacker-work.

Running cf9 on xpsp3 with jre 7 and css

NE1 have ne ideas?  Sure would appreciate some help.  Thank you.

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2014 Jan 23, 2014

Copy link to clipboard

Copied

First things first. I am on ColdFusion 10, whose directory structure differs from that of ColdFusion 9. However, when I open the file cfcompile.bat in a text edtor, I can see that it requires the definition of CFUSION_HOME. In your particular case, that should be:

CFUSION_HOME=C:/Coldfusion9

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2014 Jan 23, 2014

Copy link to clipboard

Copied

Hello BKBK, Thank you for your response.

I upgraded to CF10, and installed the "Mandatory CF10 Update" and all updates to 13. I made the modification in the cfcompile.bat file as you suggested, but it is still trashing my templates.

There is "hash" all over the template which shows when I view it in the browser. But cfcompile doesn't compile any of the code, it just scatters "hash" all over the page.

Here is an example of the "hash" that is all over the top and bottom of the template, the code in between is untouched:

resizable     setResizable  !x  "  width  $  700  &  (Ljava/lang/String;)I  ( q ) :(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)I s +   ,  setWidth  .d

Is this a problem with Coldfusion or Java?  Does NE1 know?

Sure would be most appreciative of any help.  ~ G

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2014 Jan 24, 2014

Copy link to clipboard

Copied

There is the following line in the cfcompile.bat file of CF 10

set CFUSION_HOME=%~dp0%\..

I let it be. In fact, I use the default file that ships with CF 10.

To recreate your scenario, I copied some CFM files to the directory C:\ColdFusion10\cfusion\wwwroot\filesToCompile. I then ran the DOS command

cfcompile -deploy C:\ColdFusion10\cfusion\wwwroot  C:\ColdFusion10\cfusion\wwwroot\filesToCompile C:\ColdFusion10\cfusion\wwwroot\filesCompiled

I browsed the CFM files in filesToCompile, comparing each to the corresponding file in filesCompared. There was no change, as expected.

There is perhaps something not quite right with your original CFML code. Could you show it to us.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 24, 2014 Jan 24, 2014

Copy link to clipboard

Copied

Hello BKBK,

Here is the code to one of the very simple documents:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

<cfsetting showdebugoutput="false">

<!---

Filename:    documents.cfm

Created by: G

Purpose:     Separate page to hold links to documents, getting too many for tabs.

Location:     home/

Dependencies: None

Create Date: 06.10.2010

Comments:   

Change Log: 01.15.2014 Eliminated the direct menu links for By-laws, CC&Rs & Art of Inc and created a tab for Documents; put all the document links in one page (running out of tab space)

--->

<cfparam name="URL.month" default="#Month(Now())#" />

<cfparam name="URL.year" default="#Year(Now())#" />

<cfset thismonth="#Month(Now())#">

<cfset thisday="#Day(Now())#">

<cfset dCurrentMonth=CreateDate(URL.year, URL.month, 1) />

<cfset nDaysinMonth=DaysinMonth(dCurrentMonth) />

<cfset nDayofMonth = 1 />

<cfset nFirstDayofMonth=DayofWeek(dCurrentMonth) />

<cfset nCounter = 1 />

<cfset dEndofMonth=CreateDateTime(URL.year, URL.month, nDaysInMonth, 23, 59, 59) />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Documents</title>

<!--- This is code to change the style sheet with the seasons --->

<cfif ("#thismonth#" EQ 3) OR ("#thismonth#" EQ 4) OR ("#thismonth#" EQ 5) OR ("#thismonth#" EQ 6) OR ("#thismonth#" EQ 7) OR ("#thismonth#" EQ 8)>

<link href="css/spring.css" rel="stylesheet" type="text/css" media="screen" />

<cfelse>

<link href="css/.css" rel="stylesheet" type="text/css" media="screen" />

</cfif>

<!---[if LTE IE 6]>

<link href="css/ie.css" rel="stylesheet" type="text/css" media="screen" />

<![endif]--->

<!---[if IE 7]>

<link href="css/ie7.css" rel="stylesheet" type="text/css" media="screen" />

<![endif]--->

<!---[if IE 8]>

<link href="css/ie8.css" rel="stylesheet" type="text/css" media="screen" />

<![endif]--->

<script>

function makeWin(x,y) {

ColdFusion.Window.create('calendarwin','Calendar','calendar.cfm',{x:x+150,y:y+60, width:600, height:500});

}

</script>

<script>

function makeWin(x,y) {

ColdFusion.Window.create('contactuswin','Contact Us','contactus.cfm',{x:x+150,y:y+60, width:200, height:200});

}

</script>

<script>

function makeWin(x,y) {

ColdFusion.Window.create('boardwin','Trustees','board.cfm',{x:x+150,y:y+60, width:200, height:200});

}

</script>

</head>

<body>

<!---This is for readers for persons who are blind--->

<p id="skipnav"><a href="#content">Skip to main content</a></p>

<div id="outerHeader">

<div id="header">

<ul>

<li id="current">

<a href="javascript:ColdFusion.Window.show('calendar')">Calendar</a>

<cfwindow name="calendar"

title="Calendar"

initshow="false"

modal="true"

resizable="true"

width="700"

height="500"

x="10"

y="1"

closable="true"

bodystyle="background-color: ##FFFFFF"

draggable="true"

headerstyle="background-color: ##FFEFFE"

refreshonshow="true"

source="calendar.cfm">Calendar</cfwindow>

</li>

<li><a href="javascript:ColdFusion.Window.show('contactus')">Contact US</a>

<cfwindow name="contactus"

title="Contact Us"

initshow="false"

modal="true"

resizable="true"

width="800"

height="400"

x="15"

y="1"

closable="true"

bodystyle="background-color: ##FFFFFF"

draggable="true"

headerstyle="background-color: ##FFEFFE"

refreshonshow="true"

source="contactus.cfm">Contact Us</cfwindow>

</li>

<li><a href="documents.cfm">Documents</a></li>

<li><a href="javascript:ColdFusion.Window.show('board')">Board</a>

<cfwindow name="board"

title="Board of Trustees"

initshow="false"

modal="true"

resizable="true"

width="800"

height="00"

x="30"

y="1"

closable="true"

bodystyle="background-color: ##FFFFFF"

draggable="true"

headerstyle="background-color: ##FFEFFE"

refreshonshow="true"

source="board.cfm">Board</cfwindow>

</li>

</ul>

<!--- close header--->

</div>

<!--- close outerHeader--->

</div>

<div id="outerContent">

<div id="contentWrapper">

<div id="leftcol">

<ul>

<li><a href="index.cfm">Home</a></li>

<li><a href="documents.cfm" class="youarehere">Documents</a>

</li>

<li><a href="newcomers.cfm">For Newcomers</a></li>

<li><a href="links.cfm">Handy Links</a>

</li><li><a href="solicitors.cfm">Handling Solicitors</a>

</li><li><a href="neighborhoodwatch.cfm">Neighborhood Watch</a>

<!---Fudge to get the horizontal line--->

</li><li><a href="#"></a></li>

</ul>

<br />

<div align="center">

</div>

<!--- close leftcol --->

</div>

<!---Don't change anything above this line--->

<div id="content">

<br /><br />

Listed here are important documents for reference. If you feel there should be additional information posted here, please notify the Board by email.

<br /><br /><br />

<table cellspacing="10px" align="center">

<tr><td class="projecttitle" ><a href="pdf/articlesofincorporation.pdf">Articles of Incorporation</a></td>

</tr>

<tr>

<td class="projecttitle"><a href="pdf/bylaws.pdf">By Laws</a></td></tr>

<tr><td class="projecttitle"><a href="pdf/cc&rs.pdf">Covenants, Conditions & Restrictions (CC     &Rs)</a></td>

</tr>

<tr><td class="projecttitle"><a href="pdf/recentnewsletter.pdf">Recent Newsletter</a></td></tr>

</table>

<!-- close content -->

</div>

<!-- close contentWrapper -->

</div>

<div id="outerFooter">

<div id="footer">

<p></p>

<p></p>

<cfinclude template="includes/_footer.cfm">

<div class="clearit">

</div>

<!-- close footer -->

</div>

<!-- close footer -->

</div>

<!-- close outerContent -->

</div>

<!--- </div> --->

</body>

</html>

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Thank you for your comment re: cfml code. I will dig back in my old documents that compiled satisfactorially (if I still have them) and see what changes I made to the layout, maybe that will provide a clue to this non-compile issue.

Thank you for your help, much appreciated.  G

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 24, 2014 Jan 24, 2014

Copy link to clipboard

Copied

Hello Again,

I did find some well-compiled documents where the code ends up looking like this:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Êþº¾

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

I compiled a flash form today, no data declaration, no meta and no html. It compiled beautifully!

And now for the interesting part (albeit frustrating):

If I open the files directily in FF, they display fine.

If I open them in my DW CS3, and put them to FF, the hash appears all over the page!

I upgraded the DW extensions for CF10, but now I am going to install Eclipse and see if things improve.

G

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2014 Jan 26, 2014

Copy link to clipboard

Copied

I copied your code literally to a CFM file in a directory on my server. With one exception: I commented out the line <cfinclude template="includes/_footer.cfm">.

I then compiled it exactly as you have done. There were no problems.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2014 Jan 26, 2014

Copy link to clipboard

Copied

LATEST

Incidentally, wouldn't <a href="##content">, thismonth and <a href="##"> be better than <a href="#content">, "#thismonth#" and <a href="#">, respectively? Though these may have nothing to do with the issue.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation