Session replication is a feature of the JRun 4 server where session data from a server instance that partipates in a cluster propagates that data via RMI to other session buddies in the JRun cluster. For ColdFusion MX 6.x and 7.x servers that run on a JRun 4 cluster, there are several situations that might result in the following error appearing in the JRun server's out.log:

The web application 'cfusion-ear#cfusion-war' could not be found to accept sessions for replication

When a cluster member comes back online after a failure while session replication is enabled, JRun server attempts to restore the session back to the appropriate web application (i.e. ColdFusion MX server) running in the J2EE container. While the server instance is starting up, JRun will attempt to recover the sessions, even if the web application is not fully loaded. This error will be logged for for every session replication attempt until the web application fully loads. When the web application successfully loads, the sessions should be recovered and any session replication errors that occur during that interim can be ignored. Bug 59101 has been logged for this benign error in this context, and is expected to be included in a later release.

Below is an example of the servers out.log that illustrates the session replication error occuring while a failed server instance is starting up but has not fully loaded its web application (ColdFusion MX server):

view plain print about
102/09 12:00:44 user RDSDispatchServlet: init
202/09 12:00:44 info Deploying web application "Macromedia Coldfusion MX" from: file:/C:/JRun4/servers/cfmx61/cfusion/
302/09 12:00:44 user JSPServlet: init
402/09 12:00:45 warning The web application 'cfusion-ear#cfusion-war' could not be found to accept sessions for replication
502/09 12:00:46 user CfmServlet: init
602/09 12:00:47 user FlashGateway: init
702/09 12:00:47 user FlashGateway: init
802/09 12:00:47 user ColdFusionStartUpServlet: init
902/09 12:00:47 user ColdFusionStartUpServlet: init
1002/09 12:00:47 user ColdFusionStartUpServlet: ColdFusion MX: Starting application services
1102/09 12:00:47 user ColdFusionStartUpServlet: ColdFusion MX: VM version = 1.4.2_05-b04
12- Starting logging...
130 [scheduler-9] INFO coldfusion.server - Starting logging...
1402/09 12:00:48 warning The web application 'cfusion-ear#cfusion-war' could not be found to accept sessions for replication.
1502/09 12:00:48 warning The web application 'cfusion-ear#cfusion-war' could not be found to accept sessions for replication
1602/09 12:00:49 warning The web application 'cfusion-ear#cfusion-war' could not be found to accept sessions for replication
1702/09 12:00:50 user ColdFusionStartUpServlet: ColdFusion MX: application services are now available
1802/09 12:00:50 user CFCServlet: init
1902/09 12:00:50 user CFCServlet: init
2002/09 12:00:50 user AdminServlet: init
2102/09 12:00:50 user AdminServlet: init
2202/09 12:00:50 info Deploying enterprise application "default-ear" from: file:/C:/JRun4/servers/cfmx61/default-ear/
2302/09 12:00:51 info Deploying web application "JRun Default Web Application" from: file:/C:/JRun4/servers/cfmx61/default-ear/
2402/09 12:00:52 info Web Services in default-ear#default-war:
2502/09 12:00:52 info AdminService
2602/09 12:00:52 warning default-war web application has 'reload' as true in jrun-web.xml. Consider setting it false if the application is running in production environment.
2702/09 12:00:52 warning default-war web application has 'compile' as true in jrun-web.xml. Consider setting it false if the application is running in production environment.
2802/09 12:00:52 user JSPServlet: init
2902/09 12:00:52 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/JRun4/lib/jrun-comp.ear
3002/09 12:00:52 info Deploying EJB "JRunSQLInvoker" from: file:/C:/JRun4/lib/jrun-comp.ear
31Server cfmx61 ready (startup time: 16 seconds)


Other known causes of this error include the following when session replication is enabled:
  • The jrun-web.xml for the ColdFusion server web application should have the persistence-config/active node set to false or else the error will occur since ColdFusion sessions should not be persisted to disk.
  • The path to cfusion.jar and WEB-INF/cfusion/lib should not occur in the JRun server's jvm.config file setting for java.class.path. ColdFusion MX 6.1 would incorrectly add those paths to the setting in some configurations.
  • The cfapplication tag's attribute for name="" should not be empty. The error will occur when using the NONAME application.
  • Having a typo in the java.naming.provider.url setting in jndi.properties file will produce the error.