Installation error

Hi all,

I am just trying to install and have some issues.

I will investigate in detail but I just wanted to share initial status.

My system:
CF 9,0,1,274733 & Apache
MySQL 5.5.14
MacOSX 10.7.2

  • Created a virtualhost on ‘/domains/blogbox/web’ as blogbox.
  • Copied ColdBox 3.1 on /coldbox directory.
  • Copied BlogBox files on root ‘/’.
  • Created a MySQL DSN with and empty blogbox DB.
  • Updated Application.cfc for ‘dropcreate’.
  • Current ORM mappings is as is

// ORM Settings
this.ormEnabled = true;
//this.mappings["/"] = COLDBOX_APP_ROOT_PATH;
this.datasource = “blogbox”;
this.mappings["/blogbox"] = COLDBOX_APP_ROOT_PATH & “modules/blogbox”;

And I have following error.

As I said I will try to play with it now.

Just FYI.

Oğuz Demirkapı

Just updated as


and now it has the following error:

I used Navicat to run the MySQL script manually.


and changed back ‘dropcreate’ as ‘update’ and I have the welcome screen.


Oğuz, thanks for sharing.

George Murphy

I think that you needed to execute via the URL and ormreload


As suggested on ORM list;

I updated ORM settings as

dialect = “org.hibernate.dialect.MySQL5Dialect”

and re installed all and looks better now.

This looks like this is only happening MySQL 5.5 and up.



I had an error as well. I simply removed the dialect declaration and allowed Hibernate to figure things out.

that was actually one of the first things I noticed when I was just browsing the code. I would remove the Dialect from the original source code and let Hibernate auto detect it. If someone really needs it they should know they need to set it. Maybe even take an approach like a config file, comment it out to begin with.

just a thought…

Trying to do my first ContentBox install and I’m getting…

Error in executing the DDL.

Specified key was too long; max key length is 1000 bytes


Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5
Remote Address
Date/Time 16-Jun-12 04:38 AM

Stack Trace

<br>org.hibernate.JDBCException: Error during DDL export<br> at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(<br> at coldfusion.orm.hibernate.HibernateConfiguration.exportSchema(<br> at coldfusion.orm.hibernate.HibernateConfiguration.exportSchema(<br> at coldfusion.orm.hibernate.HibernateConfiguration.initHibernateConfiguration(<br> at coldfusion.orm.hibernate.HibernateConfiguration.<init>(<br> at coldfusion.orm.hibernate.ConfigurationManager.initConfiguration(<br> at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(<br> at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(<br> at coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(<br> at coldfusion.filter.ApplicationFilter.invoke(<br> at coldfusion.filter.RequestMonitorFilter.invoke(<br> at coldfusion.filter.MonitoringFilter.invoke(<br> at coldfusion.filter.PathFilter.invoke(<br> at coldfusion.filter.ExceptionFilter.invoke(<br> at coldfusion.filter.ClientScopePersistenceFilter.invoke(<br> at coldfusion.filter.BrowserFilter.invoke(<br> at coldfusion.filter.NoCacheFilter.invoke(<br> at coldfusion.filter.GlobalsFilter.invoke(<br> at coldfusion.filter.DatasourceFilter.invoke(<br> at coldfusion.filter.CachingFilter.invoke(<br> at coldfusion.CfmServlet.service(<br> at coldfusion.bootstrap.BootstrapServlet.service(<br> at jrun.servlet.FilterChain.doFilter(<br> at coldfusion.monitor.event.MonitoringServletFilter.doFilter(<br> at coldfusion.bootstrap.BootstrapFilter.doFilter(<br> at jrun.servlet.FilterChain.doFilter(<br> at jrun.servlet.FilterChain.service(<br> at jrun.servlet.ServletInvoker.invoke(<br> at jrun.servlet.JRunInvokerChain.invokeNext(<br> at jrun.servlet.JRunRequestDispatcher.invoke(<br> at jrun.servlet.ServletEngineService.dispatch(<br> at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(<br> at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(<br> at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(<br> at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(<br> at<br>Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(<br> at java.lang.reflect.Constructor.newInstance(<br> at com.mysql.jdbc.Util.handleNewInstance(<br> at com.mysql.jdbc.Util.getInstance(<br> at com.mysql.jdbc.SQLError.createSQLException(<br> at com.mysql.jdbc.MysqlIO.checkErrorPacket(<br> at com.mysql.jdbc.MysqlIO.checkErrorPacket(<br> at com.mysql.jdbc.MysqlIO.sendCommand(<br> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(<br> at com.mysql.jdbc.ConnectionImpl.execSQL(<br> at com.mysql.jdbc.StatementImpl.executeUpdate(<br> at com.mysql.jdbc.StatementImpl.executeUpdate(<br> at coldfusion.server.j2ee.sql.JRunStatement.executeUpdate(<br> at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(<br> ... 35 more<br>

I’m running MySQL 5.1.58 as this is the last 5.1 point release and ColdFusion tech spec says 5.1 is supported

Should I consider going up to 5.5 although it’s not on the supported list? Will that help me with this issue?


Okay, so responding to my own question…

I’ve upgraded my local MySQL from 5.1.58 ro 5.5.25 and all is good!

Now, I hope ColdFusion isn’t going to complain about the unsupported version of MySQL!

Yea don’t think so. Which column caused this out of curiosity

No sure, that’s the only error message I got. I tried to reverse engineer the installer but it was beyond my pay grade :slight_smile:

I copied the contentbox database created by my new local 5.5.25 install over to my 5.1.58 production box and copied the ContentBox code over and all seem fine once you’ve got passed the issue with the installer and 5.1.58

Ciao for now,