August 17, 2011

ColdFusion on Linux – Make sure your hostname is correct!

Filed under: ColdFusion, Technology — joel.cass @ 10:52 am

Recently I have been given the task to install ColdFusion on CentOS. Everything went well, Apache installed fine, related dependencies installed fine, even ColdFusion installed fine. Until I tried accessing the site, upon which I was presented with this error:

	at java.lang.String.indexOf(
	at java.lang.String.indexOf(
	at jrun.servlet.session.SessionService.getUrlSessionID(
	at jrun.servlet.ForwardRequest.getRequestedSessionId(
	at jrun.servlet.ForwardRequest.isRequestedSessionIdValid(
	at jrun.servlet.ForwardRequest.getSession(
	at jrun.servlet.ForwardRequest.create(
	at jrun.servlet.JRunRequestDispatcher.invoke(
	at jrun.servlet.ServletEngineService.dispatch(
	at jrun.servlet.http.WebService.invokeRunnable(
	at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(

I had installed ColdFusion 9, in a similar method to that described here. So, I tried installing ColdFusion 8 following the same method. Still got the error. I then tried installing ColdFusion 9 to use the root user (not recommended). Still got the error.

So I pulled my hair out for a bit, and then started scanning logs, upon which I came across this line:

08/16 23:23:54 error

…and then it all fell together! The instance I had been given was created off a template, in which the host name was set in /etc/sysconfig/network to ‘’ – which did not resolve via DNS! So, the easy fix was to map this over in /etc/hosts to localhost, i.e.

Restart the services, fixed! This is CentOS in my case, but I think if you ever run into this problem on a *nix platform, check your network config and ensure that your configured hostname resolves to an IP address.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment