Entries Tagged as 'Server and Hosting'

Microsoft Office 2007 MIME Types with Apache and IIS

Apache , IIS , Misc , MS Office , Server and Hosting 5 Comments »

 

I was working with a 3rd Party file service \ handling provider and came across an issue whereby when I uploaded a Microsoft Office 2007+ document the "detected MIME type" was being returned as "application/zip".

Turns out there's an easy enough fix for this for their servers.  Simply update the web server to include the new \ incorrect MIME types. 

 

Read more...

neo-cron.xml corruption issue

ColdFusion , Gotchas , Misc , Server and Hosting 8 Comments »

After New Years - we returned to a sickly server, and something I never came across before - so I thought I'd share this with you all!

Background

Our servers are deployed as Multiple J2EE Instances runnng the latest version of ColdFusion 9.0.1.

When we tried accessing one particular application, we got the following error:

The Cron service is not available.  
This exception is usually caused by service startup failure. Please check your server configuration.

Don't be fooled by the error message, the real issue lies in a corrupted server file.

Turns out the neo-cron.xml file was corrupted.

Read more...

<cfhttp/> Connection Failure

ColdFusion , Gotchas , IIS , Misc , Server and Hosting 1 Comment »

I was working on calling a remote template via <cfhttp /> recently and was experiencing a Connection Failure Error.

Scratching my head I proceeded to inspect what was going on in my code and on the wire with Firebug. 

At first I thought I had resolved the issue when I discovered my return type was a complex value (struct) but my elation was quickly drowned by the "CTRL+F5" key combination :-(

Without any luck I decided to consult the WWW.

After a quick search I discovered that it was due to the reponse being Compressed from IIS.  Apparantly the HTTPCompression algorithm used by some versions of IIS is incompatible with ColdFusion (Java).

Workaround

The work-around was to specify additional HTTP Headers telling IIS _NOT_ to use compression for that response.  See below...

<cfhttp 
    url="http://someURL.com/svcs/targetTemplate.cfm?argument1=value1&argument2=value2" 
    method="get" 
    compression="none" 
    result="remoteCallResult" >
            
        <cfhttpparam type="header" name="Accept-Encoding" value="deflate;q=0" />
            
        <cfhttpparam type="header" name="TE" value="deflate;q=0" />

</cfhttp>

OR

<cfhttp 
    url="http://someURL.com/svcs/targetTemplate.cfm?argument1=value1&argument2=value2"
    method="get" 
    compression="none" 
    result="remoteCallResult" >
            
        <cfhttpparam type="header" name="Accept-Encoding" value="*" />
            
        <cfhttpparam type="header" name="TE" value="deflate;q=0" />

</cfhttp>

That should do the trick!

Credit and a more detailed breakdown of this can be found at Steve Erat's Blog

Bookmark and Share

Multiple Firefox versions

Server and Hosting No Comments »

Some rough and ready instructions on how to install multiple firefox versions on one machine which I found online.

This enables testing in multiple firefox versions. Install firefox 2 Choose custom Both optional components to be installed Change destination folder to c:\program files\mozilla firefox2.0.0.17

Proceeed through installation When installed Run "C:\Program Files\Mozilla Firefox2.0.0.17\firefox.exe" –p

and create a profile called ff2 and another one called ff3

Delete the firefox shortcut from the desktop Create a batch file on the desktop called startff2.bat containing the following:

set MOZ_NO_REMOTE=1 start "" "C:\Program Files\Mozilla Firefox2.0.0.17\firefox.exe" -p "ff2" set MOZ_NO_REMOTE=0

Install firefox3 Chose custom(uncheck use firefox as my default web browser at the bottom)

Change the location of the install to be C:\Program Files\Mozilla Firefox3.0.0.1 Delete the desktop icon Create a batch file on the desktop called startff3.bat containing the following:

set MOZ_NO_REMOTE=1 start "" "C:\Program Files\Mozilla Firefox3.0.0.1\firefox.exe" -p "ff3" set MOZ_NO_REMOTE=0

Ensure that both versions of firefox are not checking for updates(in the advanced tab) These batch files will need to be copied onto the users desktop.

Bookmark and Share

Upgrading the JRE in CF for Custom Java Classes

ColdFusion , JRE , Server and Hosting 1 Comment »

Wanted to write this into our own blog for future reference... I was working on a CF version of the MS Live ID Web Authentication API recently and hit a stumbling block when the Java class providing access to the Live ID API was throwing the following error:

500 windowsLiveLogin (Unsupported major.minor version 50.0) windowsLiveLogin (Unsupported major.minor version 50.0)

Read more...

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds