ColdFusion 11 Failed Install of ContentBox 2.1.0

I have been trying to get ContentBox installed on my CF 11 development setup to no avail. I have seen the other threads and used the 2.1.0 zip (Build Number: 00122, Built on September 9 2014 to be exact). Here are the steps I take in arriving at the failed installation:

  • I have installed URL rewriter as part of an existing installation of ColdBox, which I have outside my wwwroot, but inside my inetpub folder. (http://www.iis.net/downloads/microsoft/url-rewrite)

  • I have previously updated my JRE to 1.8.0_20

  • I had previously created a mapping to the ColdBox installation in the CF Administrator so I could run it without ColdBox being inside my wwwroot. To test the ContentBox installation, I renamed the mapping to ColdBoxBK so it doesn’t create any conflicts with the ColdBox included as part of the ContentBox installation.

  • I downloaded the aforementioned build and placed the unzipped content inside new folder, \inetpub\wwwroot\cbSite.

  • I made sure {Root}/Application.cfc, {Root}/config/ColdBox.cfc, and {Root}/coldbox/system/aop/tmp were not read only and not blocked on my machine. (I am an admin on my machine, do there are no permissions issues).

  • I created the an empty database in MS SQL Server 2014 Express edition and created a DSN to it in the CF Administrator (DSN: contentBoxTest).

  • I browsed (in Chrome v. 37.0.2062.103) to localhost/cbSite and received the Datasource Setup screen as expected.

  • I entered the DSN “contentBoxTest” and verified the connection, the result of which displays the continue installation button.

  • I clicked the continue installation button.
    That’s as far as I get. What happens next falls into three categories:

  • Usually the page spins its wheels for as long as I let it and nothing ever happens.

  • Twice I received a “HTTP Error 500.0 - GC overhead limit exceeded” and a note about Jakarta isapi_redirect (I wish I had saved this error message)

  • Once I reached the installation wizard and stepped through the pages setting up the admin, email, etc. But when I clicked to continue the installation, I had the same spinning wheel with no result. i have no idea what I did different to get to this point.

I have tried this quite a few times while adjusting variables that might effect the process (especially upping the timeout and memory allocations in CF Administrator).

I can verify:

  • the application.cfc file is rewritten to remove the redirect to the DSN setup (without the semi-colon being left behind)
  • the application.cfc file is rewritten to specify my DSN as the this.datasource.
  • the database has (what I presume are) all the tables created.
  • No changes are made in \coldbox\system\aop\tmp ( no new files, no changes to generationPath.txt)
  • No changes are made to \config\Coldbox.cfc
    The errors I get are:

application.log

Sep 10, 2014 5:48 PM Error ajp-bio-8014-exec-1 ContentBox-Shell-62B16DE45646049EE09727E72A8FCE24
GC overhead limit exceeded The specific sequence of files included or processed is: C:\inetpub\wwwroot\cbSite\index.cfm’’
Sep 10, 2014 5:44 PM Error ajp-bio-8014-exec-1
Skipping file C:\inetpub\wwwroot\cbSite\modules\contentbox-dsncreator\model\RailoHelper.cfc as it has errors
Sep 10, 2014 5:44 PM Error ajp-bio-8014-exec-1 ContentBox-Shell-62B16DE45646049EE09727E72A8FCE24
Datasource contentbox could not be found.Ensure that you have spelled the name correctly and that the data source is registered in the ColdFusion Administrator Data Sources page. The specific sequence of files included or processed is: C:\inetpub\wwwroot\cbSite\index.cfm’’

exception.log

15408 | coldfusion.sql.DataSourceFactory$DataSourceException: Datasource contentbox could not be found. |

  • | - |
    15409 | at coldfusion.sql.DataSourceFactory.getDataSource(DataSourceFactory.java:89) |
    15410 | at coldfusion.sql.Executive.getDatasource1(Executive.java:577) |
    15411 | at coldfusion.sql.Executive.datasourceExists(Executive.java:584) |
    15412 | at coldfusion.orm.hibernate.HibernateConfiguration.validateDatasource(HibernateConfiguration.java:228) |
    15413 | at coldfusion.orm.hibernate.HibernateConfiguration.validateDatasource(HibernateConfiguration.java:238) |
    15414 | at coldfusion.orm.hibernate.HibernateConfiguration.initHibernateConfiguration(HibernateConfiguration.java:196) |
    15415 | at coldfusion.orm.hibernate.HibernateConfiguration.(HibernateConfiguration.java:183) |
    15416 | at coldfusion.orm.hibernate.ConfigurationManager.initConfiguration(ConfigurationManager.java:67) |
    15417 | at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:184) |
    15418 | at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:80) |
    15419 | at coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(ApplicationFilter.java:611) |
    15420 | at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:330) |
    15421 | at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) |
    15422 | at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) |
    15423 | at coldfusion.filter.PathFilter.invoke(PathFilter.java:141) |
    15424 | at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30) |
    15425 | at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) |
    15426 | at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:78) |
    15427 | at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) |
    15428 | at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) |
    15429 | at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) |
    15430 | at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) |
    15431 | at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) |
    15432 | at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) |
    15433 | at coldfusion.CfmServlet.service(CfmServlet.java:219) |
    15434 | at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) |
    15435 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) |
    15436 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) |
    15437 | at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) |
    15438 | at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) |
    15439 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) |
    15440 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) |
    15441 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) |

15442 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) |

  • | - |
    15443 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) |
    15444 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) |
    15445 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) |
    15446 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) |
    15447 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) |
    15448 | at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198) |
    15449 | at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) |
    15450 | at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) |
    15451 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) |
    15452 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) |
    15453 | at java.lang.Thread.run(Unknown Source) |
    15454 | “Error”,“ajp-bio-8014-exec-1”,“09/10/14”,“17:44:39”,“Skipping file C:\inetpub\wwwroot\cbSite\modules\contentbox-dsncreator\model\RailoHelper.cfc as it has errors” |
    15455 | coldfusion.compiler.TagInfoNotFoundException: Unknown tag: cfadmin. |
    15456 | at coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.java:360) |
    15457 | at coldfusion.compiler.NeoTranslationContext.getTagInfo(NeoTranslationContext.java:322) |
    15458 | at coldfusion.compiler.SemanticAnalyzer.preTransformCftag(SemanticAnalyzer.java:531) |
    15459 | at coldfusion.compiler.SemanticAnalyzer.preTransform(SemanticAnalyzer.java:56) |
    15460 | at coldfusion.compiler.Treewalker.postorder(Treewalker.java:21) |
    15461 | at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27) |
    15462 | at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27) |
    15463 | at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27) |
    15464 | at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:456) |
    15465 | at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:391) |
    15466 | at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:160) |
    15467 | at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:461) |
    15468 | at coldfusion.util.LruCache.get(LruCache.java:180) |
    15469 | at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:387) |
    15470 | at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58) |
    15471 | at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133) |
    15472 | at coldfusion.util.SoftCache.get(SoftCache.java:81) |
    15473 | at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:642) |
    15474 | at coldfusion.runtime.MetadataUtils.getBasicComponentMetadata(MetadataUtils.java:173) |
    15475 | at coldfusion.orm.mapping.CFPropertyBinder.(CFPropertyBinder.java:115) |
    15476 | at coldfusion.orm.hibernate.HibernateConfiguration.generateHbmDocFromCFCs(HibernateConfiguration.java:1128) |
    15477 | at coldfusion.orm.hibernate.HibernateConfiguration.generateAndLoadHBMFilesFromCFCs(HibernateConfiguration.java:781) |
    15478 | at coldfusion.orm.hibernate.HibernateConfiguration.buildConfiguration(HibernateConfiguration.java:673) |
    15479 | at coldfusion.orm.hibernate.HibernateConfiguration.initHibernateConfiguration(HibernateConfiguration.java:210) |
    15480 | at coldfusion.orm.hibernate.HibernateConfiguration.(HibernateConfiguration.java:183) |
    15481 | at coldfusion.orm.hibernate.ConfigurationManager.initConfiguration(ConfigurationManager.java:67) |

15482 | at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:184) |

  • | - |
    15483 | at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:80) |
    15484 | at coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(ApplicationFilter.java:611) |
    15485 | at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:330) |
    15486 | at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) |
    15487 | at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) |
    15488 | at coldfusion.filter.PathFilter.invoke(PathFilter.java:141) |
    15489 | at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30) |
    15490 | at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) |
    15491 | at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:78) |
    15492 | at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) |
    15493 | at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) |
    15494 | at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) |
    15495 | at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) |
    15496 | at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) |
    15497 | at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) |
    15498 | at coldfusion.CfmServlet.service(CfmServlet.java:219) |
    15499 | at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) |
    15500 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) |
    15501 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) |
    15502 | at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) |
    15503 | at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) |
    15504 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) |
    15505 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) |
    15506 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) |
    15507 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) |
    15508 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) |
    15509 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) |
    15510 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) |
    15511 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) |
    15512 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) |
    15513 | at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198) |
    15514 | at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) |
    15515 | at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) |
    15516 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) |
    15517 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) |
    15518 | at java.lang.Thread.run(Unknown Source) |
    15519 | “Error”,“ajp-bio-8014-exec-1”,“09/10/14”,“17:48:12”,“ContentBox-Shell-62B16DE45646049EE09727E72A8FCE24”,"GC overhead limit exceeded The specific sequence of files included or processed is: C:\inetpub\wwwroot\cbSite\index.cfm’’ " |

In the end, I need to restart ColdFusion Application Server services to remove the contents of wwwroot\cbSite because ColdFusion never releases [siteroot]\coldbox\system\core\javaloader\lib\classloader-20100119110136.jar.

I considered running the installer within CF Builder debugging, but figured I would leave that to the Ortus crew.

I will include my hardware and software setup below. If I have missed something, please let me know. Otherwise I will create a bug in the issue tracker.

Thanks,
John

Does ColdFusion 11 officially support Java 8? Also, what are your heap size settings? Do you have a stack trace at all that is thrown along with the GC overhead limit error?

Also, ensure “report execution times” is turned off in debugging and no server monitoring is turned on-- ESPECIALLY memory monitoring.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

The very first thing you need to do is look at the Datasource and see why that is not being verified in the Administrator or if it is spell correctly in your Application.cfc It is possible that the installation is redirecting here with the Ajax hence the GC overload, at a guess that is what is happening. But you need to get rid of the first error and see if it fixes the rest, which is clerly a DSN error between your Application and ColdFusion itself and the Database.

Brad,

The redirection error is a bug in ContentBox installation itself, I did report this to Luis over 2 months ago.

Brad and Andrew,

Thank you for the responses. To answer you questions and update you on my situation:

Answers to your questions

  • Brad - Good point on Java 8. I have no experienced any issues with it to this point, but I also cannot anything that would hint at official CF support for JRE 8+.

  • Brad - No, I do not receive a stack trace on the GC overhead limit error.

  • Brad - Report execution times was on, all server monitoring was off

  • Andrew - The datasource was verifying, both in the DSN setup portion of the installer and in the CF Administrator. I know it was a very long post, but buried somewhere in there I did note that verification succeeded and the hanging occurred upon clicking “continue installation”
    Subsequent Developments

  • Upon reading your responses this morning, I pointed ColdFusion back to the JRE shipped with and installed with CF 11 re-ran the installation (I had forgotten to check the “report execution times” setting at this point).

  • For only the second time, I got past the DSN setup and arrived at the ContentBox Install wizard. I completed the four steps of the wizard and clicked “continue install.”

  • After spinning its wheels for a while, I again received a GC overhead limit exceeded error:

The web site you are accessing has experienced an unexpected error.

Please contact the website administrator.

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request

Error while loading the entity.

org.hibernate.HibernateException: java.lang.OutOfMemoryError: GC overhead limit exceeded

  • I did, however, take note of the url of the page that displayed the overhead limit error: http://localhost/cbSite/index.cfm/cbinstaller/finished
  • On a hunch, I browsed to the root and found what appeared to be the CMS based site. So perhaps it finished, perhaps it didn’t.
  • Having gotten so close to the expected result, I reset everything, turned off “report execution times” and re-ran the installer again. This time I finally received the ContentBox Wizard Finished screen. So Success!

A few additional notes:

  • I recommend updating the installation directions on the ContentBox site to include the directions to turn off “report execution times” and all server monitoring.
  • I recommend updating the installation directions in the ContentBox. These directions look to be extremely old, as if from many versions ago. Note how they reference needing a specific DSN and location. They read as follows:
  1. Download (You already did this)
  2. Extract to a folder named anything besides ContentBox (cb, blog, mycms etc.)
  3. Create a database in your favorite database engine
  4. Create a datasource in your ColdFusion administrator called ‘contentbox’
  5. Go to this site http://localhost and follow the installer.
  • As a test, I am going to point CF back to JRE 8 and re-run the installer again to see if it will work with the newer JRE. I will post my results shortly.
    Thanks again!

John

A few typos in there (including not even typing some words here and there). One important one: the second “additional note” should have read, “I recommend updating the installation directions in the ContentBox download’s readme.txt file.”
And one other note, two of the screenshot images on the Installing ContentBox page are missing.

A final follow-up. Upon setting ColdFusion to point to JRE 8 again, I was able to re-run the installer successfully. As with the previous success, “report execution times” was turned off in CF Adminsitrator > Debugging and Logging > Debug Output Settings.

So I can report that ContentBox 2.1.0 does install on ColdFusion 11 using JRE 8 (1.8.0_20).

I just wanted to post all of this information so anyone coming across this thread in the future finds the information.

Interestingly I don’t use those reports any more for this reason, I am not even sure that they report HQL and ORM and it maybe a case of Adobe really going through the memory with ORM related stuff.

But good catch and certainly a real gotcha.

Thanks for the thorough and methodical testing! I agree we could probably mention the “report execution times” setting. We do mention it in the ColdBox docs (http://wiki.coldbox.org/wiki/Installation.cfm#Web_Root_Installation) and it gets repeated here on the list about once a month so I guess we start to take it for granted that everyone knows by now :slight_smile: I don’t know what ColdFusion doesn internally with that setting, but the overhead is just atrocious on any sort of CFC-based framework.

Do report back after your tests on Java 8. I would like to know how it goes.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I am moving forward with developing my application at this point, running with Java 8. So all appears to be working just fine.

Since I saw the latest update for CF 11, I thought I would update this thread to note that CF 11 officially supports Java SDK 8 with ColdFusion 11 Update 3 Tuesday, 9 December 2014.