ColdFusion MX 7 migration
Hi,
Our old server's Hard disk failed and we want to migrate
coldfusion to the another server.
Can anyone please let me know how to migrate all the sites
and datasources to the another server. (How to migrate all the
coldfusion data to the new server?).
WE have HELM control panel, we can create domains in IIS but
how to migrate coldfusion related data?
I thank you all in advance for your support :)
Regards,
Sanjay Santoki
To be on the safe side, I would let the new server have the
same version of Coldfusion as before. I would use the same settings
for the Coldfusion Administrator as before. The files are then
copied to the new server, while maintaining the same directory
structure. I have assumed you have a copy of the Coldfusion code.
Similar Messages
-
Coldfusion Oracle 10g Migration
We are doing predeployment test for Coldfusion 7 migration to
Oracle 10g using Linux OS. I request community to put together
their experiences in this area. so every one can make use of it.
Please put on any general errors or troubleshoot you might have
faced or you are facing.
I have seen some common details on Adobe site.
http://www.adobe.com/support/documentation/en/coldfusion/mx701updater/oracle10g.html
Regards
CF ProgrammerU need the database forum. This forum is for migrating third party applications to Oracle Application server like asp apps etc.
-
How to reference MS Access database in ColdFusion MX 7 on 64-bit Windows
I am migrating customers from:
Windows 2000 Server (fully patched)
Internet Information Services (IIS) 5
ColdFusion 5
to:
Windows Server 2003 Standard x64 Edition (fully patched)
Internet Information Services (IIS) 6 (running in 32-bit
mode)
ColdFusion MX 7 (7.0.2) Standard
Unfortunately, some of these existing customers are still
using Microsoft Access databases instead of SQL Server. Having all
of these existing customers migrate to SQL Server is not yet
practical. On the old Windows 2000 / ColdFusion 5 server, they are
using OLE DB data sources to reference the MS Access databases
using the "Microsoft.Jet.OLEDB.4.0" provider. None are configured
to use ODBC drivers when referencing MS Access or SQL Server.
I have yet to figure out how to get ColdFusion MX 7 to:
- Create a data source that references MS Access databases on
64-bit Windows.
- Reference an existing MS Access data source created with
the 32-bit version of the ODBC Data Source Manager on 64-bit
Windows.
A bit of background information regarding MS Access on 64-bit
Windows:
- At the time of this writing, Microsoft has not
created/released 64-bit drivers for Microsoft Access and it's
unlikely they ever will, for understandable reasons.
- Contrary to seemingly popular belief, the Microsoft Jet 4.0
Database Engine does exist on 64-bit Windows. See the following
regarding version and file location information:
How to obtain the latest service pack for the Microsoft Jet
4.0 Database Engine
http://support.microsoft.com/kb/239114
- You CAN create MS Access based data sources within 64-bit
Windows, but they have to be made using the 32-bit version of "ODBC
Data Source Manager". I'm assuming these DSNs may only be used by
32-bit applications, but I have not tested that theory.
32-bit data sources:
ODBC Data Source Manager:
%SystemRoot%\SysWOW64\odbcad32.exe
Registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC
Default file DSN directory:
C:\Program Files (x86)\Common Files\ODBC\Data Sources
64-bit data sources:
ODBC Data Source Manager:
%SystemRoot%\system32\odbcad32.exe
Registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
Default file DSN directory:
C:\Program Files\Common Files\ODBC\Data Sources
The 64-bit version of "ODBC Data Source Manager" (under
Administrative Tools) only show "SQL Server" and/or "SQL Native
Client" as options when creating new data sources, unless
third-party software is installed that supplies additional drivers.
The 32-bit version of "ODBC Data Source Manager" (by default,
there is no shortcut for this in the Start menu) shows the typical
drivers seen on 32-bit versions of Windows, including SQL Server,
SQL Native Client, Microsoft Access, Excel, FoxPro, Paradox, etc.
When using ColdFusion Administrator in ColdFusion MX 7.0.2 in
64-bit Windows 2003 (IIS is running in 32-bit mode to allow
ColdFusion MX 7 to function at all), two problems are encountered
when dealing with MS Access (and presumably other 32-bit drivers).
In both cases, ColdFusion is trying to reference the registry
location for 64-bit data sources instead of 32-bit:
1. Creating a new data source within ColdFusion
Administrator:
Data Source Name: whatever
Driver: Microsoft Access
CF Data Source Name: whatever
Database file: (physical path to whatever.mdb)
(other settings are irrelvant for this example)
Error generated when submitting:
Unable to update the NT registry.
Cannot open HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC
Data Sources: Windows error number 5 occurred.Access is denied.
ColdFusion stores the data source, however a "verify"
generates the following error:
Connection verification failed for data source: whatever
java.sql.SQLException: [Macromedia][SequeLink JDBC
Driver][ODBC Socket]internal error: Data source name not found and
no default driver specified
The root cause was that: java.sql.SQLException:
[Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error:
Data source name not found and no default driver specified
2. Creating the data source using the 32-bit version of "ODBC
Data Source Manager" then trying to reference it with ColdFusion:
ODBC Data Source Manager:
System DSN or File DSN:
Name: whatever
Driver: Microsoft Access Driver (.mdb)
Database: (physical path to whatever.mdb)
(creation is successful within ODBC Data Source Manager)
Reference the above DSN within ColdFusion Administrator:
Data Source Name: whatever
Driver: ODBC Socket
Error generated when submitting:
Error accessing available odbc datasources. - Cannot open
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources:
Windows error 2 occurred.The system cannot find the file specified.
ColdFusion MX 7 can't find the 32-bit data source on 64-bit
Windows because it's looking for it in the wrong registry location.
Can ColdFusion MX 7 be configured to look in
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC
instead of
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
on a 64-bit Windows machine?Paul,
Thanks for the insight on this. Regarding the initial problem
I ran into with creating Access based DSNs, very early-on, I
noticed there were two different driver options for Access
displayed within ColdFusion MX 7 Administrator:
Microsoft Access
Microsoft Access with Unicode
For reasons I'm am still baffled over, I somehow completely
forgot about and through the wonders of apparent tunnel vision,
completely overlooked the "Microsoft Access with Unicode" driver
option when I was running through my tests.
At your seemingly-obvious suggestion, I created a data source
using the Microsoft Access with Unicode driver and it worked
perfectly fine with the one customer's web site I'm using for
testing (of course, this is a copy--the production site is still
housed on the old ColdFusion 5 server). This obviously doesn't
actually fix the underlying issue with ColdFusion looking in the
wrong part of the registry on 64-bit Windows, but at least when it
comes to dealing with Access databases, your suggestion of using
the Microsoft Access with Unicode driver appears to be a functional
work-around. So long as there aren't any surprises waiting for me,
hopefully this will also work for the remaining ColdFusion sites I
have to migrate that are using Access databases.
Since you mentioned JDBC drivers in comparison with ODBC, I'm
pointing out a couple of references in case they're helpful to
anyone following this thread:
ColdFusion MX 7 - About JDBC
http://livedocs.adobe.com/coldfusion/7/htmldocs/00001736.htm
Types of JDBC technology drivers
http://java.sun.com/products/jdbc/driverdesc.html
http://java.sun.com/products/jdbc/
I don't actually develop anything in ColdFusion, so I'm
dealing with all of this from a server administration standpoint
since we do have some domain hosting customers that do develop or
at least have existing ColdFusion based sites. I am all
too-familiar with the caveats of using Access in any kind of
production or heavily used environment and have spent years keeping
users away from ODBC. For ColdFusion users, that meant creating OLE
DB DSNs and often having to fix poorly written SQL statements and
fixing ColdFusion date-related values and boolean values (the
common problems encountered when switching CF / MS Access users
from ODBC to OLE DB). I can only recall running into problems with
a single SQL Server based ColdFusion site when migrating from ODBC
to OLE DB. That customer never did get their many coding problems
fixed, so they're the only ones still using ODBC in CF. I have no
idea what'll happen when that one site gets migrated over--if it'll
even work. Obviously a lot of things have changed between
ColdFusion 5 and the MX versions that have come along afterward.
Thanks again for the Access with Unicode driver tip and JDBC
info. It looks like I can finally start moving forward again with
the site migration process.
Josh -
Hello,
We have an application running using ColdFusion 8,0,0 and are planni gto upgrade to ether ColdFusoin 10 or ColdFuson 11.I am less familiar with both vesions (10/11) so I wonder:
Are there any compatibility issues (e.g. deprecated tags / functions) when moving from CF 8 to CF 11?
Is ColdFusion 11 mature enough to migrate to from CF8?
And also: what is the lifcycle of CF 11 vs CF 10?
Any tips / pointers are welcome!I'm personally not aware of anything breaking moving from CF 8 to CF 10/11 (but you'd have to test your application to be sure). You can no longer purchase CF 10 directly, but you can purchase CF 11 and request a downgrade serial number to run CF 10 if you choose. Since there hasn't even been a single update released to fix bugs in CF 11, I would be very hesitant to deploy a production application on it. CF 10 has been pretty stable for me, at least with all the available updates installed.
As for the lifecycle (I'm assuming you mean support), you can find that information here: https://www.adobe.com/support/products/enterprise/eol/eol_matrix.html#63. The core support for CF 10 runs through the middle of May 2017, with extended support ending mid-May 2019. For CF 11, core support runs through the end of April 2019 and extended support through the end of April 2021.
-Carl V. -
Migrate coldfusion from windows to linux
Hello Everyons,
we're running about 50 (not very complex) coldfusion mx7
websites on our windows server.
we've been contemplating to change to a linux server though.
can anyone inform us on particular pro's and/or con's for
such a migration?
are the website going to behave differently on linux?
is our coldfusion license for windows also usable for linux?
tnx for your remarks!Here are some points that you need to be careful.
- File naming. Linux is case sensitive.
“Application.cfm” and “application.cfm” are
different files and CF looks for “Application.cfm” or
“OnRequestEnd.cfm” etc..
- Directory reference is different. Be careful for your
application specially for CFFILE etc. tags.
- “/” instead of “\”.
- There is no C CFX tags on Linux. Be sure that you
don’t need any Win based components.
- There is no COM objects on Linux (some of them have support
with 3rd part tools but this is in general). If you have any COM
usage, forget it.
- Verity has different behaviors on Linux. (Check CF
technotes for details)
- Go with Debian Linux as server platform! Debian rulez! :)
There would be some more suggestions but these are my
response in 2 min.
IMHO. -
I am currently testing our website with CF11. It is currently working with CF8 however after migrating it to a new server running CF11 I have encountered the following error.
The value returned from the load function is not of type numeric.
The error occurred in
D:/Applications/CFusion/CustomTags/nec/com/objects/address.cfc: line 263
Called from D:/Applications/CFusion/CustomTags/nec/com/objects/contact.cfc: line 331
Called from D:/Applications/CFusion/CustomTags/nec/com/objects/user.cfc: line 510
Called from D:/Applications/CFusion/CustomTags/nec/com/objects/user.cfc: line 1675
Called from D:/website/NECPhase2/action.validate.cfm: line 54
261 : <cfif isNumeric(get.idCountry)>
262 : <cfset rc = this.objCountry.setID(get.idCountry)>
263 : <cfset rc = this.objCountry.load()>
264 : </cfif>
265 : <cfset this.sPostcode = get.sPostcode>
Have there been any changes between CF8 and CF11 that could cause this error?
Does anyone have ideas?This is the code in file object file country.cfc (nec.com.objects.country):
<cfcomponent displayname="Country object" hint="This is a Country object, it allows you to access and set values in the Country.">
<!---
// Construct this object
--->
<cfset this.objFunctions = CreateObject( 'component', 'nec.com.system.functions' )>
<cfscript>
this.idCountryID = 0;
this.sCountryName = "";
this.sISOCode = "";
this.sDHLCode = "";
this.iErrorID = "";
</cfscript>
<!---
// The following functions are the setters and getters. offering us a better way to get
// at the contents of the object
--->
<!---
// Getters
--->
<cffunction name="getID" displayname="Get ID" returntype="numeric" output="false" hint="This returns the ID of the current item.">
<cfreturn this.idCountryID>
</cffunction>
<cffunction name="getsCountryName" displayname="Get sCountryName" returntype="string" output="false" hint="This gets the sCountryName value of this item.">
<cfreturn this.sCountryName>
</cffunction>
<cffunction name="getsISOCode" displayname="Get sISOCode" returntype="string" output="false" hint="This gets the sISOCode value of this item.">
<cfreturn this.sISOCode>
</cffunction>
<cffunction name="getsDHLCode" displayname="Get sDHLCode" returntype="string" output="false" hint="This gets the sDHLCode value of this item.">
<cfreturn this.sDHLCode>
</cffunction>
<cffunction name="iError" displayname="Get iError" returntype="numeric" output="false" hint="This returns the iError of the current item.">
<cfreturn this.iError>
</cffunction>
<!---
// Setters
--->
<cffunction name="setID" displayname="Set ID" returntype="boolean" output="false" hint="This sets the ID value of this item.">
<cfargument name="idCountryID" required="true" type="numeric" displayname="ID" hint="The ID to use.">
<cfset this.idCountryID = arguments.idCountryID>
<cfreturn true>
</cffunction>
<cffunction name="setsCountryName" displayname="Set sCountryName" returntype="boolean" output="false" hint="This sets the sCountryName value of this item.">
<cfargument name="sCountryName" required="true" type="string" displayname="sCountryName" hint="The sCountryName to use.">
<cfset this.sCountryName = arguments.sCountryName>
<cfreturn true>
</cffunction>
<cffunction name="setsISOCode" displayname="Set sISOCode" returntype="boolean" output="false" hint="This sets the sISOCode value of this item.">
<cfargument name="sISOCode" required="true" type="string" displayname="sISOCode" hint="The sISOCode to use.">
<cfset this.sISOCode = arguments.sISOCode>
<cfreturn true>
</cffunction>
<cffunction name="setsDHLCode" displayname="Set sDHLCode" returntype="boolean" output="false" hint="This sets the sDHLCode value of this item.">
<cfargument name="sDHLCode" required="true" type="string" displayname="sDHLCode" hint="The sDHLCode to use.">
<cfset this.sDHLCode = arguments.sDHLCode>
<cfreturn true>
</cffunction>
<!---
// Clear, to empty out the contents of this object
--->
<cffunction name="clear" displayname="Clear items Details" returntype="boolean" output="false" hint="Clears out all of the items details.">
<cfscript>
this.sCountryName = "";
this.sISOCode = "";
this.sDHLCode = "";
this.iErrorID = "";
</cfscript>
<cfreturn true>
</cffunction>
<!---
// The following functions deal with the load, save and deleting of objects
--->
<!---
// Load
--->
<cffunction name="load" displayname="Load items details" returntype="numeric" output="false" hint="This loads in all the information about an item.">
<cfset rc = this.clear()>
<!---
// First of all we need to get the name of the data source we are going to be using
--->
<cfscript>
objDS = CreateObject("component","nec.com.system.settings");
sDatasource = objDS.getDatasource();
</cfscript>
<!---
// Check to see if it exists
--->
<cftry>
<cfquery name="checkID" datasource="#sDatasource#">
SELECT idCountryID
FROM tblCountry
WHERE idCountryID = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("load: checkID: '#this.idCountryID#' #cfcatch.detail#");
</cfscript>
<cfset this.iErrorID = iErrorID>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfif not checkID.recordCount>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
if(isDefined("session.afr")){
whichOne = "#session.afr.getsAFRNumber()#";
} else {
whichOne = "";
iErrorID = objError.addError("A Country with that id doesn't exists.[#this.idCountryID#][#whichOne#]");
</cfscript>
<cfset this.iErrorID = iErrorID>
<cfreturn iErrorID>
</cfif>
<!---
// If we got past all then then load in the details
--->
<cftry>
<cfquery name="get" datasource="#sDatasource#">
SELECT idCountryID, RTRIM(sCountryName) as sCountryName, RTRIM(sISOCode) as sISOCode, RTRIM(sDHLCode) as sDHLCode
FROM tblCountry
WHERE idCountryID = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("load: get: #cfcatch.detail#");
</cfscript>
<cfset this.iErrorID = iErrorID>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfset this.idCountryID = get.idCountryID>
<cfset this.sCountryName = get.sCountryName>
<cfset this.sISOCode = get.sISOCode>
<cfset this.sDHLCode = get.sDHLCode>
<cfset this.iErrorID = "">
<cfreturn true>
</cffunction>
<!---
// Save
--->
<cffunction name="save" displayname="Save items Details" returntype="numeric" output="false" hint="Saves (to some source) the current details for the ID of the item.">
<!---
// First of all we need to get the name of the data source we are going to be using
--->
<cfscript>
objDS = CreateObject("component","nec.com.system.settings");
sDatasource = objDS.getDatasource();
</cfscript>
<!---
// Now check to see if ithat ID exists
--->
<cftry>
<cfquery name="checkID" datasource="#sDatasource#">
SELECT idCountryID
FROM tblCountry
WHERE idCountryID = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("save: checkID: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<!---
// If it doesn't exist, then add the record, otherwise update the record
--->
<cfif not checkID.recordCount>
<cfreturn this.add()>
<cfelse>
<cfreturn this.update()>
</cfif>
</cffunction>
<!---
// Add
--->
<cffunction name="add" displayname="Add Country" returntype="numeric" output="false" hint="This adds a Country.">
<!---
// Check to see if that a different item isn't already using the same unique details
--->
<cftry>
<cfquery name="checkUnique" datasource="#sDatasource#">
SELECT idCountryID
FROM tblCountry
WHERE sCountryName = '#this.objFunctions.scrubText(this.sCountryName)#'
OR sISOCOde = '#this.objFunctions.scrubText(this.sISOcode)#'
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("add: checkUnique: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfif checkUnique.recordCount>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("A Country with that name or ISO code already exists. idCountryID=#checkUnique.idCountryID#");
</cfscript>
<cfreturn iErrorID>
</cfif>
<cftry>
<cfquery name="add" datasource="#sDatasource#">
SET nocount on
INSERT INTO tblCountry(sCountryName, sISOCode, sDHLCode)
VALUES('#this.objFunctions.scrubText(this.sCountryName)#','#this.objFunctions.scrubText(t his.sISOCode)#','#this.objFunctions.scrubText(this.sDHLCode)#')
SELECT @@identity as autoID
SET nocount off
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("add: add: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfreturn add.autoID>
</cffunction>
<!---
// Update
--->
<cffunction name="update" displayname="Update Country" returntype="numeric" output="false" hint="This updates a Country record.">
<!---
// Check to see if that a different item isn't already using the same unique details
--->
<cftry>
<cfquery name="checkUnique" datasource="#sDatasource#">
SELECT idCountryID
FROM tblCountry
WHERE (sCountryName = '#this.objFunctions.scrubText(this.sCountryName)#'
OR sISOCOde = '#this.objFunctions.scrubText(this.sISOcode)#')
AND idCountryID <> #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("update: checkUnique: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfif checkUnique.recordCount>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("Another Country with that name already exists. idCountryID=#checkUnique.idCountryID#");
</cfscript>
<cfreturn iErrorID>
</cfif>
<!---
// Attempt to update the record to the datasource
// if this fails for any reason then we submit an error message
// to the error component and return the ID of the error
--->
<cftry>
<cfquery name="update" datasource="#sDatasource#">
UPDATE tblCountry
SET sCountryName = '#this.objFunctions.scrubText(this.sCountryName)#',
sISOCode = '#this.objFunctions.scrubText(this.sISOCode)#',
sDHLCode = '#this.objFunctions.scrubText(this.sDHLCode)#'
WHERE idCountryID = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("update: update: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfreturn this.idCountryID>
</cffunction>
<!---
// Delete
--->
<cffunction name="delete" displayname="Delete Country" returntype="numeric" output="false" hint="This deletes a Country record.">
<!---
// First of all we need to get the name of the data source we are going to be using
--->
<cfscript>
objDS = CreateObject("component","nec.com.system.settings");
sDatasource = objDS.getDatasource();
</cfscript>
<!---
// Now check to see if ithat ID exists
--->
<cftry>
<cfquery name="checkID" datasource="#sDatasource#">
SELECT idCountryID
FROM tblCountry
WHERE idCountryID = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("delete: checkID: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfif not checkID.recordCount>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("A Country with that id doesn't exists, delete failed.");
</cfscript>
<cfreturn iErrorID>
</cfif>
<!---
// Now check to see if there are any dependancies, if so we can't delete the item
--->
<cftry>
<cfquery name="checkDependancies" datasource="#sDatasource#">
SELECT idCountry
FROM tblAddress
WHERE idCountry = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("delete: checkDependancies: idCountry: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfif checkDependancies.recordCount>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("That Country is being used by an address, delete failed.");
</cfscript>
<cfreturn iErrorID>
</cfif>
<!---
// Now attempt to remove the record.
// if this fails for any reason then we submit an error message
// to the error component and return the ID of the error
--->
<cftry>
<cfquery name="delete" datasource="#sDatasource#">
DELETE FROM tblCountry
WHERE idCountryID = #this.idCountryID#
</cfquery>
<cfcatch>
<cfscript>
objError = CreateObject("component","nec.com.system.errors");
iErrorID = objError.addError("delete: delete: #cfcatch.detail#");
</cfscript>
<cfreturn iErrorID>
</cfcatch>
</cftry>
<cfreturn this.idCountryID>
</cffunction>
</cfcomponent> -
Web service issues in migrating from ColdFusion 9 to 10
I'm troubleshooting a problem a client is having with their migration from CF9 to CF10. A webservice call that previously worked, no longer is working. When I call it from my CF10 server, I get this error:
C:...\cfusion\stubs\WS-853189522_2...\service.java:10: class, interface, or enum expected package ...;
The ellipses are to replace proprietary files paths and names.
When I add the cfinvoke attributes wsversion and refreshwsdl, I get a "Unable to read WSDL from URL: .../service.asmx?WSDL" error instead of the above error. I also changed the default ws version from 2 to 1 in the CF Administrator, with no change. Are there any other known issues with CF10 that would interfere with a webservice call that worked in an earlier version?I found the answer, and it turned out to be quite simple. After making the change to the default webservice version in CF Admin, I needed to restart the server. It now works, although I am curious as to why adding the wsversion attribute to the cfinvoke tag calling the webservice didn't work. My concern now is that if they add an Axis 2 webservice call in the future that they may run into this problem again.
-
Can I upgrade directly from ColdFusion 9 Enterprise to ColdFusion 11 Enterprise without going to 10 first?
For those who have done this,
1. What quirks did you find that you had to overcome in your installation (I know that everyone's environment is different and produces differest results)?
2. What part of your code broke for which you had to find fixes?
Tips and suggestions for a smooth installation, besides following the installation document.
Thanks!Create a car (archive file) in CF 9 enterprise which will capture all CF 9 settings like Data sources, Web services etc. Make sure when you are doing this, pop up blocker is disabled.
NOTE : While creating the archive file, give the full name with the absolute path in the package name. For example C:\Test\mypackage.car
Then move this car file into the server where you want to install CF 11. Install CF 11 and then deploy this archive (car) file. All CF 9 settings will be migrated to CF 11 enterprise.
Else, if you want to install CF 11 on the same server where CF 11 is installed, then remove the connector for all the websites which are configured with CF 9, make sure the CF 9 services are running and then run the CF 11 installer and at the end of CF 11 installation, you will get a dialogue box which will ask you to migrate CF 9 settings in CF 11.
Run the Code Analyzer in CF 11 Administrator to check whether any the CF 9 code used in your application is breaking in CF 11 or not
HTH
VJ -
Single Quote Escaping in ColdFusion 8
Recently we've begun migrating some sites to ColdFusion 8
from earlier versions of ColdFusion. We've found the following
quirk when inserting data into an SQL database.
<cfset value = "Two single quotes '' and one single quote
' in the same line does not insert as expected." />
<cfquery datasource="#datasource#">
UPDATE Record
SET field = '#value#'
</cfquery>
Running the code above updated the record in the database to
be "Two single quotes ' and one single quote ' in the same line
does not insert as expected." In this case it did not escape the
two single quotes together so only one sigle quote was entered
there, but where the single quote was by itself it was properly
escaped and entered into the database record. I would have expected
the code above to be entered into the database as "Two single
quotes '' and one single quote ' in the same line does not insert
as expected." where all single quotes in the string were escaped.
Has anyone else encountered this problem, and know of a way
to correct it? The exact same query works as exprected in previous
versions of ColdFusion. Manually changing all of the existing
queries on the site to manually escape the single quotes would be
an incredibly time consuming process, so I'm hoping that there is
another way around the problem.quote:
Originally posted by:
swg_mcherry
Recently we've begun migrating some sites to ColdFusion 8
from earlier versions of ColdFusion. We've found the following
quirk when inserting data into an SQL database.
<cfset value = "Two single quotes '' and one single quote
' in the same line does not insert as expected." />
<cfquery datasource="#datasource#">
UPDATE Record
SET field = '#value#'
</cfquery>
Running the code above updated the record in the database to
be "Two single quotes ' and one single quote ' in the same line
does not insert as expected." In this case it did not escape the
two single quotes together so only one sigle quote was entered
there, but where the single quote was by itself it was properly
escaped and entered into the database record. I would have expected
the code above to be entered into the database as "Two single
quotes '' and one single quote ' in the same line does not insert
as expected." where all single quotes in the string were escaped.
Has anyone else encountered this problem, and know of a way
to correct it? The exact same query works as exprected in previous
versions of ColdFusion. Manually changing all of the existing
queries on the site to manually escape the single quotes would be
an incredibly time consuming process, so I'm hoping that there is
another way around the problem.
With that specific example, let's say value = O'Hara. This is
what I have noticed over time.
set field = '#value#' would crash because your database would
see 3 single quotes.
set field = '#replace(value, "'", "''", "all")#' would work,
but your database record would be O'Hara, not O''Hara as you said
you would expect. -
Coldfusion 11 error with cflayout
0 down vote favorite
I have some applications developed on older CF versions (9&10) and in anticipation of a hosting system migrating to CF11 and started doing some
testing with a CF development platform on Windows 8 with Apache 2.4. I have found that in CF11 pages using cflayout and cflayoutarea does not work
correctly when collapsed with javascript:ColdFusion.Layout.collapseArea. Firebug does flag an error in the CF javascript. Wondering if anyone else
has seen a problem like this and if there is a circumvention I could use to get this working.
A very simple example (complements of the Chapter 2 cflayout example demonstrated in Dan Short's video on Ajax & Coldfusion) fails as well on
CF11 but works in CF9 & CF10.
main.cfm
<!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <cflayout name="borderLayout" type="border" fittowindow="true"> <cflayoutarea name="header" position="top" size="75">This is the header<br /> <a href="javascript:ColdFusion.Layout.collapseArea('borderLayout', 'left');">Collapse Left Column</a><br> </cflayoutarea> <cflayoutarea name="centerColumn" position="center" source="content.cfm?pageName=Header 1" /> <cflayoutarea name="rightColumn" position="right" style="width: 100px;">This is the right column</cflayoutarea> <cflayoutarea name="leftColumn" position="left" title="Left Column" style="width: 250px;" collapsible="true" splitter="true" minsize="200"> This is the left column<br /> <a href="javascript:ColdFusion.navigate('content.cfm?pagename=Header 2', 'centerColumn');">Load Header 2</a> </cflayoutarea> <cflayoutarea name="footer" position="bottom">This is a footer © 2010</cflayoutarea> </cflayout> </body> </html>
content.cfm
<cfsilent> <cfparam name="URL.pageName" default="Default header" /> </cfsilent> <!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <cfoutput><h2>#URL.pageName#</h2></cfoutput> <p>This is the text content from content.cfm</p> </body> </html>use <CFAJAXIMPORT tag and make sure you have the CFIDE folder as a virtual directory in your IIS local or server machine. if the "cfajaximport" tag alone didn't work, try using it in little more details to the path of CFIDE folder and specify cflayout within the cfajaximport tag as follows:
<CFAJAXIMPORT
CSSSRC = "CFIDE/scripts/ajax/"
SCRIPTSRC = "/CFIDE/scripts"
TAGS = "cfdiv,cfform,cfgrid,cfinput-autosuggest,cfinput-datefield,cflayout-border,cflayout-tab,cfmenu,cftextarea,cftooltip,cftree,cfwindow">
Normally, you shouldn't need all these specifications in the cfajaximport but in case you may try it in more detail as shown above. -
ColdFusion 11 wsconfig.exe -- Error while configuring connector for IIS.
I ran into a problem with my ColdFusion 11 64-bit installation/migration on a Windows Server 2012 R2/IIS 8.5. I was following the ColdFusion 11 Lockdown Guide - Pete Freitag (very helpful) and I ran into problems on page 35 "Run the ColdFusion Web Server Configuration Tool". When I attempted to do this for ALL IIS websites I encountered a Windows error [APPCRASH - Exception Code:c0000005]. Also, note my Administrator-Command Prompt window provided this error message "Error while configuring connector for IIS. Make sure you have administrator privileges". However, I did not experience this error with all of the migrated sites. I traced my steps backward to discover the problem. I used the Microsoft Web Deployment tool (good tool) to migrate the old IIS websites to the new IIS. I utilized Metabase Explorer the IIS 6.0 Resource Tools to discover that some of the migrated sites that were crashing did not have the key/value ID:6006 | Name: DefaultDoc. Once I added this key and redeployed the site the ColdFusion 11 connector (wsconfig.exe) worked fine. In addition, I added this key/value to some of the larger previously migrated sites in IIS 8.5 ("Default Document") and it worked with the connector as well.
Knowing how IIS encapsulates information the DefaultDoc key/value should have passed from the website setting. Why would this make wsconfig.exe crash?
Thanks in advance and I hope this saves someone from hours of research and frustration.DiscoDelight,
Have you forwarded this information directly to the ColdFusion product team? If not, I'll try to draw their attention to it. Only a few of them are active on these forums, so this issue might be overlooked.
-Carl V.
EDIT: I just pinged them on Twitter to take a look at this post.
EDIT #2: They just pinged me back that they are looking into it. -
Cfhttp: Migration of Webservice from CF 6.1 to CF 8.0.1 fails
Hello,
our application is consumer of a webservice. It works well on CF 6.1 (Sun Solaris) for longer time.
Now we have to migrate to a new platform with CF 8.0.1 on Linux. The service returns "Connection Failure".
Because of security reasons username and password must be in the SOAP header. So we implemented the service invocation via CFHTTP.
Can please anybody help?
We assume that the error has something to do with a wrong or wrong interpreted content length of the returned code.
Thank you very much in advance and greetings from Germany.
Rainer
Facts:
- The physical connection to the webservice server is ok. Requests of us can be found in the logfiles there. It seems they are processed there normally.
- If we send wrong XML data intentionally (invalid XML-syntax, wrong user name...) the returned data contains sensible error messages which comes definitly from the target server.
- If we send correct XML data the only file content which is return is "Connection Failure"
- There are no hints in the logfiles.
- The sended data does not contain any special character.
- The returned data can contain special characters (e.g. German umlauts).
The code:
<cfprocessingdirective pageencoding="iso-8859-1">
<!--- ... --->
<cfsavecontent variable="soap"><?xml version="1.0" encoding="utf-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:opal="#request.opal_webservice_ns#">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext" soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>#request.opal_username#</wsse:Username>
<wsse:Password Type="wsse:PasswordText">#request.opal_password#</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<opal:OPAL_spc-_spcGet_spcAREMIS_spcOpportunity_spcData_GetAREMISData_Input>
<opal:Process_spcInstance_spcId></opal:Process_spcInstance_spcId>
<opal:Object_spcId>#ucase(opalid)#</opal:Object_spcId>
<opal:Siebel_spcOperation_spcObject_spcId>?</opal:Siebel_spcOperation_spcObject_spcId>
<opal:Error_spcCode></opal:Error_spcCode>
<opal:Error_spcMessage></opal:Error_spcMessage>
</opal:OPAL_spc-_spcGet_spcAREMIS_spcOpportunity_spcData_GetAREMISData_Input>
</soapenv:Body>
</soapenv:Envelope>
</cfsavecontent>
<cfhttp method="post" url="#request.opal_webservice_url#" throwonerror="no" timeout="20" charset="utf-8">
<cfhttpparam type="Header" name="charset" value="UTF-8" />
<cfhttpparam type="header" name="SOAPAction" value="#request.opal_webservice_soapaction#">
<cfhttpparam type="header" name="Host" value="#request.opal_webservice_host#">
<cfhttpparam type="header" name="Content-Length" value="#len(soap)#">
<cfhttpparam type="XML" name="XML" value="#soap#">
</cfhttp>
<cfdump var="#cfhttp#" label="cfhttp">
Technical data of the new server (which fails):
Operating system (uname -a):
Linux mhpa3y4c 2.6.18-028stab060.8 #1 SMP Mon Feb 9 20:25:36 MSK 2009 i686 i686 i386 GNU/Linux
Server Details
Server Product ColdFusion
Version 8,0,1,195765
Edition Enterprise
Serial Number 1185-5039-8342-3354-3033-xxxx
Operating System UNIX
OS Version 2.6.18-028stab060.8
Update Level /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-1878 .jar
JVM Details
Java Version 1.6.0_14
Java Vendor Sun Microsystems Inc.
Java Vendor URL http://java.sun.com/
Java Home /usr/java/jdk1.6.0_14/jre
Java File Encoding ASCII
Java Default Locale en_US
File Separator /
Path Separator :
Line Separator Chr(10)
User Name webrun
User Home /home/webrun
User Dir /opt/jrun4/bin
Java VM Specification Version 1.0
Java VM Specification Vendor Sun Microsystems Inc.
Java VM Specification Name Java Virtual Machine Specification
Java VM Version 14.0-b16
Java VM Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Server VM
Java Specification Version 1.6
Java Specification Vendor Sun Microsystems Inc.
Java Specification Name Java Platform API Specification
Java Class Version 50.0
Java Class Path CF Classpath
pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-1878.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/chf8010002.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mlibwrapper_jai.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-api.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-net-1.4.0.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jpedal.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xml-apis.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/verity.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jai_core.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/asn1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xercesImpl.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/certj.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/smpp.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jnbcore.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/vparametric.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/wsdl2java.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/wsdl4j-1.5.1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbytools.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/axis.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-beanutils-1.6 .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/bcel.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jstack.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/java2wsdl.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jintegra.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf-assembler.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/im.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/poi-2.5.1-final-20040 804.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/saaj.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xsdlib.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ldap.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/clibwrapper_jiio.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jutf7-0.9.0.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mysql-connector-java- commercial-5.0.5-bin.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/iTextAsian.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbyclient.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-discovery-0.2 .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/smack.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mm-mysql-jdbc.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/vsearch.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cfusion.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/postgresql-8.1-407.jd bc3.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6core.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/tools.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6swing.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cfusion-req.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flashgateway.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-digester-1.7. jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ldapbp.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mail.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/log4j-1.2.12.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/STComm.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-libs.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jsch-0.1.28m.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/vadmin.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf4was.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf-logging.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/crystal.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jai_imageio.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xalan.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/pdfencryption.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbyrun.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf-acrobat.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jax-qname.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derby.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ri_generic.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/httpclient.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/izmado.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ant.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbynet.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/namespace.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/backport-util-concurr ent.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/iText.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-httpclient-3. 0.1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-collections-2 .1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/macromedia_drivers.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-xjc.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jakarta-oro-2.0.6.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cdo.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6addonpatch.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-logging-api.1 .0.4.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxrpc.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ant-launcher.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf4was_ae.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6util.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/webchartsJava2D.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cdohost.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jai_codec.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/metadata-extractor-2. 2.2.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jakarta-slide-webdavl ib-2.1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/FCSj.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/relaxngDatatype.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jdom-1.0.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-impl.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging-opt.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/poi-contrib-2.5.1-fin al-20040804.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging-common .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/wc50.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging-req.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jeb.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-logging.1.0.4 .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/rome-cf.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-codec-1.3.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6http.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/tt-bytecode.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/gateway/lib/examples.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/gateway/lib/: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/flex.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jcert.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-css.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-util.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/commons-logging.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-transcoder.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/oscache.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jsse.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jakarta-oro-2.0.7.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/commons-discovery.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-awt-util.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/concurrent.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jnet.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-ext.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/: :
Server Classpath
/opt/jrun4/servers/lib:
/opt/jrun4/servers/lib/jrun-patch.jar:
/opt/jrun4/servers/lib/pbclient42RE.jar:
/opt/jrun4/servers/lib/pbserver42RE.jar:
/opt/jrun4/servers/lib/pointbase-service.jar:
/opt/jrun4/servers/lib:
/opt/jrun4/servers/lib/jrun-patch.jar:
/opt/jrun4/servers/lib/pbclient42RE.jar:
/opt/jrun4/servers/lib/pbserver42RE.jar:
/opt/jrun4/servers/lib/pointbase-service.jar:
/opt/jrun4/lib:
/opt/jrun4/lib/instutil.jar:
/opt/jrun4/lib/java2wsdl.jar:
/opt/jrun4/lib/jrun-ant-tasks.jar:
/opt/jrun4/lib/jrun-xdoclet.jar:
/opt/jrun4/lib/jrun.jar:
/opt/jrun4/lib/jrunwizard-installer.jar:
/opt/jrun4/lib/jrunwizard.jar:
/opt/jrun4/lib/jspc.jar:
/opt/jrun4/lib/macromedia_drivers.jar:
/opt/jrun4/lib/migrate.jar:
/opt/jrun4/lib/mysql-connector-java-commercial-5.0.5-bin.jar:
/opt/jrun4/lib/oem-xdoclet.jar:
/opt/jrun4/lib/sniffer.jar:
/opt/jrun4/lib/webservices.jar:
/opt/jrun4/lib/wsconfig.jar:
/opt/jrun4/lib/wsdl2java.jar:
/opt/jrun4/lib/xmlscript.jar:
/opt/jrun4/lib/jrun.jar
Java Ext Dirs /usr/java/jdk1.6.0_14/jre/lib/ext:/usr/java/packages/lib/ext
Technical data former server (which runs well):
Operating System (uname -a):
SunOS MHPA24ZC 5.8 Generic_117350-45 sun4us sparc FJSV,GPUZC-M
Server Details
Server Product
ColdFusion MX
Version
6,1,0,hf52806_61
Edition
Enterprise
Serial Number
CED600-55949-37264-xxxxxx
Operating System
UNIX
OS Version
5.8
JVM Details
Java Version
1.4.2
Java Vendor
Sun Microsystems Inc.
Java Vendor URL
http://java.sun.com/
Java Home
/export/home/coldf/coldfusionmx/runtime/jre
File Separator
Path Separator
Line Separator
Chr(10)
User Name
coldf
User Home
/export/home/coldf
User Dir
/export/home/coldf/coldfusionmx/runtime/bin
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-b28
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
Java Class Path
/export/home/coldf/coldfusionmx/runtime/servers/lib: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf52806_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53398_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53419_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53486_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53685_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53797_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53813_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53852_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf54464_61.jar: /export/home/coldf/coldfusionmx/servers/lib: /export/home/coldf/coldfusionmx/lib/cfusion.jar: /export/home/coldf/coldfusionmx/lib: /export/home/coldf/coldfusionmx/lib/NetComponents.jar: /export/home/coldf/coldfusionmx/lib/bcel.jar: /export/home/coldf/coldfusionmx/lib/cf4was.jar: /export/home/coldf/coldfusionmx/lib/cf4was_ae.jar: /export/home/coldf/coldfusionmx/lib/cfmx-ssl.jar: /export/home/coldf/coldfusionmx/lib/cfmx_bootstrap.jar: /export/home/coldf/coldfusionmx/lib/cfusion.jar: /export/home/coldf/coldfusionmx/lib/cfx.jar: /export/home/coldf/coldfusionmx/lib/collections.jar: /export/home/coldf/coldfusionmx/lib/crimson.jar: /export/home/coldf/coldfusionmx/lib/flashgateway.jar: /export/home/coldf/coldfusionmx/lib/httpclient.jar: /export/home/coldf/coldfusionmx/lib/izmado.jar: /export/home/coldf/coldfusionmx/lib/jakarta-oro-2.0.6.jar: /export/home/coldf/coldfusionmx/lib/java2wsdl.jar: /export/home/coldf/coldfusionmx/lib/jaxp-api.jar: /export/home/coldf/coldfusionmx/lib/jdom.jar: /export/home/coldf/coldfusionmx/lib/ldap.jar: /export/home/coldf/coldfusionmx/lib/ldapbp.jar: /export/home/coldf/coldfusionmx/lib/log4j.jar: /export/home/coldf/coldfusionmx/lib/macromedia_drivers.jar: /export/home/coldf/coldfusionmx/lib/mail.jar: /export/home/coldf/coldfusionmx/lib/pbclient42RE.jar: /export/home/coldf/coldfusionmx/lib/pbembedded42RE.jar: /export/home/coldf/coldfusionmx/lib/pbserver42RE.jar: /export/home/coldf/coldfusionmx/lib/pbtools42RE.jar: /export/home/coldf/coldfusionmx/lib/tools.jar: /export/home/coldf/coldfusionmx/lib/tt-bytecode.jar: /export/home/coldf/coldfusionmx/lib/webcharts.jar: /export/home/coldf/coldfusionmx/lib/webchartsJava2D.jar: /export/home/coldf/coldfusionmx/lib/webservices.jar: /export/home/coldf/coldfusionmx/lib/wsdl2java.jar: /export/home/coldf/coldfusionmx/lib/xalan.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun.jar: /export/home/coldf/coldfusionmx/runtime/lib: /export/home/coldf/coldfusionmx/runtime/lib/instutil.jar: /export/home/coldf/coldfusionmx/runtime/lib/java2wsdl.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun-ant-tasks.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun-xdoclet.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun.jar: /export/home/coldf/coldfusionmx/runtime/lib/jspc.jar: /export/home/coldf/coldfusionmx/runtime/lib/migrate.jar: /export/home/coldf/coldfusionmx/runtime/lib/oem-xdoclet.jar: /export/home/coldf/coldfusionmx/runtime/lib/sniffer.jar: /export/home/coldf/coldfusionmx/runtime/lib/webservices.jar: /export/home/coldf/coldfusionmx/runtime/lib/wsconfig.jar: /export/home/coldf/coldfusionmx/runtime/lib/wsdl2java.jar: /export/home/coldf/coldfusionmx/runtime/lib/xmlscript.jar: /oracle/orav920/jdbc/lib/classes12.jar: /home5/coldf/java: /home5/coldf/java/csvjdbc.jar: /home5/coldf/java/verona: /home5/coldf/java/verona/jCO.jar: /home5/coldf/java/csvjdbc.jar: /export/home/coldf/coldfusionmx/lib/cfusion.jar
Java Ext Dirs
/export/home/coldf/coldfusionmx/runtime/jre/lib/extAnd you can use the ColdFusion Code Analyzer
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0d04c -7fee.html
But yeah, as Dan said, definitely set up a test server and plan a series of tests that must pass.
-Fernis -
ColdFusion 8 - 64-bit in distributed mode?
We have been running 32-bit in distributed mode since 2004
using the J2EE WAR deployment on JRun 4. With CF8 Updater 1 we
would like to migrate to the 64-bit version. Is it possible to run
a cluster of two physical servers with ColdFusion clusters on Jrun
server instances where one host OS and member server instance is
32-bit and the other host OS and member server instance is 64-bit?
We are trying to figure out a migration strategy that will permit
us to extend the current infrastructure cluster horizontally, viz.
add the new servers to the current cluster with minimal impact on
performance and code changes.
Any advice with such a migration issue would be welcome.
Thanks,
Scottdevlosh wrote:
> Install CF 80 ent 64 bit in windows server 2003. (server
1)
> MY webserver is is anoter system which is running
windows xp 32 bit. ie my iis
> is 32 bit. (server 2)
>
> All my web files and websites(IIS stuffs ) wil be in
server 2. and Jrun will
> in in server 1.
This will not work. All your .cfm files must be on the server
that has
JRun (server1).
In order to set this up:
1. Install JRun / CF on server1. It is highly recommended to
choose the
buildin webserver so you can verify your installation is
correct.
2. Copy wsconfig.jar to the webserver on server2. Make sure
you have a
JDK installed (same version as CF/JRun uses).
3. Run wsconfig.jar and specify connection parameters to
connect to
server1:
http://livedocs.adobe.com/coldfusion/6.1/htmldocs/websera7.htm
4. Plcae your .cfm files in the CF wwwroot
(...\???.ear\cfusion.war\
folder) on server 1.
5. Test.
This should work, but IIRC Adobe will only support a
configuration where
you also have your CF code on the webserver and the path to
your IIS
wwwroot on server2 is identical to the path to the JRun
wwwroot on server1.
Jochem
Jochem van Dieten
Adobe Community Expert for ColdFusion -
ColdFusion 10 - MySQL Communications link failure
We are migrating some websites onto a cloud infrastructure running Windows 2008 virtual machines. These websites all run on ColdFusion with MySQL databases. They currently are running in our CoLo with no problems. Additionally, they are running on our development network in our offices with no problems.
We are setting up our cloud to match as closely as possible the configuration we currently use which is, essentially, CF10 + IIS on one server and MySQL on a separate machine. We are 99% finished and most things are running great. However....
We have run into a couple, as in 2, places where we click a link/button and are greeted with:
Error Executing Database Query.
Communications link failure The last packet successfully received from the server was 0 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
Scanning the stack-trace I also find:
`Caused by: java.net.SocketException: Connection reset`
The communications link error is ALWAYS: 0ms.
What's most puzzling is the Queries that seem to be causing this are *simple* queries that are used ALL OVER the sites with no problems. Why they are failing at hese 2 particular places has us at wits end.
Our only clue is, looking at the CF Error description of what scripts are called, we can see the script where the query is failing is getting called twice? For example, one of the occurences is in our Application file:
>The error occurred in D:/Our_Web_Sites/oursite/Application.cfm: line 73
>Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
>Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
>Called from D:/Our_Web_Sites/oursite/Application.cfm: line 73
>Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
>Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
We can find nothing in our CF code that would be causing the script to be called twice so our guess is the first call is failing on the Query so CF tries again...only to fail and error.
Googling this issue I've found lots of posts about changing the MySQL timeouts. None of those worked and I didn't expect them to since what we're dealing with doesn't appear to be a timeout issue. These pages fail each and every time.
The closest we've come to a solution came from this blog posting:
http://www.talkingtree.com/blog/index.cfm/2011/1/12/Validation-Query-for-MySQL-communicati ons-link-failure
If we UNCHECK the "Maintain connections across client requests. " setting in CFAdmin then the error goes away. The blog suggests leaving that checked, which is our preference, and using Connection Validation of "SELECT 1;". Try that...same error.
We've also tried the JDBC AutoConnect=true option. No effect.
Downloaded latest JDBC Connector and used it instead of standard CF10-MySQL connector. No effect.
Again, 99% of the site works with the exception of these two links, both of which work just fine in all our other environments. Any other ideas?I have some questions.
1) You talk of 2 calls. However, you show us 5 calls from Application.cfm. What do those line numbers tell us?
2) Shouldn't that be AutoReconnect=true rather than AutoConnect=true? In any case, it seems that the problem here is that ColdFusion attempts to use a stale connection to the database. It is then usually preferable to change wait_timeout instead. The MySQL documentation says, 'Alternatively[to AutoReconnect=true], as a last option, investigate setting the MySQL server variable "wait_timeout" to a high value, rather than the default of 8 hours.'.
3) Shouldn't you already convert to Application.cfc? -
Upgrade CF9 to CF11 w/IIS can't get to migration/configuration stage
I finally go approval to do my upgrade not as a stand alone, side-by-side upgrade which was requiring me to do a major hack that wasn't working due to our funky coding and security twists we have implemented in the code.
Unfortunately, when I do the upgrade/installation it installs, but I can't move on to the migration/configuration stage of the installation. I can't see anything in the error logs. Sometimes I'll get the 500.19 error message when I try to connect to the administrator myself, other times nothing. When I get the HTTP Error 500.19 Internal Server Error it refers to the ApplicationHost.config or web.config file that contains malformed xml element. When I look at the old web.config file it contains about 9 handlers that are using either jrun_iis6_wildcard.dll or jrun_iis6.dll. I do have the IIS6 to IIS7 configuration selected in the new installation of CF11, but I can't move forward. I want to just copy these 2 files from my CF9 installation, but I don't know where to put them. I've even renamed the web.config file so that IIS would recreate it so it wouldn't be referring to the old CF9 web.config file and getting stuck there, which one error message once referred to these lines in the CF9 web.config file. I understand that this question blurs the ColdFusion/IIS category boundaries. I'm not sure where my error is lying, with IIS or CF11. I want to just enter these handlers manually in IIS 7, but my boss seems to think we need to have wsconfig do that for us in case it is putting code elsewhere and we are missing configuration changes that really puts us in a spiral. Thoughts/suggestions anyone? I hope I was clear enough.
Another thing is that we have our CFIDE folder for CF9 located in a different directory, for security purposes I'm guessing, yet I can't figure out how CF is recognizing that it should go there to run. In CF Administrator it is referring to a different folder for CFIDE that doesn't exist. I have only seen one referrence to the correct location, and that was in the registry when I was ensuring CF11 references were deleted. CF9 had it there. I guess I'm wondering if there is a setting somewhere that i need to change so CF11 will look in the correct location and then run and go forward with the migration/configuration part of the instalation. I can't find it in any of my searches that look for that foldername in the files.
I have inherited this project and there is very little documented regarding configuration changes that were done.
Thanks in advance!!
JenniferOK, my installation is working, although I'm still trying to get the applications to work (permissions issues I think). Since I kept having migration difficulties we created a CAR first with CF9. We then ended up just doing a straight upgrade on our development server. I performed the install with server configuration and selected Configure my webserver for ColdFusion 11, IIS. When you launch the browser to connect to CF11 administrator if you get the 500 error message it may be because the SSL for the CFIDE>Administrator folder in IIS is selected. Deselect it and that error messge should go away (if it is that that is). We kept getting a 404.7 error message of deny file extension. I was thinking it had to do with my cfm extensions because I was trying to open a cfm, but it wasn't the case. The error message mentioned isapi.redirect.dlls. I finally found an error message under my IIS FailedRequestLogs that mentioned something about Request Filtering. Turns out .dll was not in the allowed list of my virtual Jakarta folder. Once I added this and restarted IIS I was able to get into my CF Administrator 11 and installed the CAR file.
Now I keep getting Unauthorized errors and need to figure that out. Permissions are looking like the cause of that.
Things I learned (you may already know this):
CF9 can have CFIDE placed wherever, but CF11 needs to keep it where it is installed.
CF11 doesn't need IIS 6 Metabase Compatability installed, whereas CF9 did (at least ours did)
We kept getting a duplicat MIME Type error message too for .air. That was added at the server level and inherited at the website level. I deleted it at the server level and added it at the website level.
I hope this helps someone.
Maybe you are looking for
-
What do I need to travel to S.E Asia and Europe?
Wondering if any one can help me here, I'm not the most tech savvy person and I've looked over allot of information and none of it is concise. I'm totally confused as to what EXACTLY I need in order to charge and run my 2012 Macbook air and an Iphone
-
Confusion about BPM suite and BPA suite
Hi, I'm very very new to Oracle BPM. I just checked the website and found Oracle provides two suites - BPM and BPA for business process management. I'm quite confused what's the difference of their usage? It looks to me that they are very similar to
-
Hi, i) I had shot some movies through my Iphone 4S. I am not able to copy all of them (through scanner & camera wizard) to my PC and some are getting stuck. Pls. help me on how I can copy them (like drag & drop etc.). Error message "current picture
-
Query to get all minutes in last one hour
Dear All, I am trying to write a query that returns every minute in last one hour. Like now, if the time is 4:15 The query returns; 3:14 3:15 4:11 4:12 4:13 4:14 4:15 Please suggest a logic. Thank you so much. Regards, Imran
-
Use handling units for subcontracting
Hello Experts, we are currently trying to improve our subcontracting process. The stock of material is provided to the vendor in boxes, he processes the articles and delivers them back to us in the same boxes. To be able to identify the boxes when th