ContentBox running on Apache Derby on ColdFusion 10 public beta.

Just tried installing ContentBox on a Derby database running
ColdFusion 10 Public Beta..

after creating my datasource I get this error:

Association references unmapped class:

Resources:
Check the ColdFusion documentation to verify that you are using the
correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7
(KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7
Remote Address 127.0.0.1
Referrer
Date/Time 23-Feb-12 11:10 AM
Stack Trace

org.hibernate.MappingException: Association references unmapped
class:
  at
org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:
2473)
  at org.hibernate.cfg.HbmBinder
$CollectionSecondPass.secondPass(HbmBinder.java:2752)
  at
org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:
66)
  at
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
1221)
  at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
1377)
  at
coldfusion.orm.hibernate.HibernateConfiguration.buildSessionFactory(HibernateConfiguration.java:
529)
  at
coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:
185)
  at
coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:
80)
  at
coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(ApplicationFilter.java:
554)
  at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:
294)
  at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
48)
  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112)
  at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
  at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:75)
  at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:
28)
  at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
  at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
  at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
  at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:
22)
  at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
  at coldfusion.CfmServlet.service(CfmServlet.java:204)
  at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:
89)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
305)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
210)
  at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:
42)
  at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:
46)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
210)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
224)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
169)
  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
472)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
168)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
98)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
928)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
118)
  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
414)
  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203)
  at org.apache.coyote.AbstractProtocol
$AbstractConnectionHandler.process(AbstractProtocol.java:539)
  at org.apache.tomcat.util.net.JIoEndpoint
$SocketProcessor.run(JIoEndpoint.java:298)
  at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)

I recall that for it to run on Derby, the indexes had to be removed. (May be unrelated to this error)

Have you run it on Derby in CF9? MySQL in CF10?

There are Zeus errors on orm primary keys. Nothing I can do unless I change tons of code. They already har a fix for it

K thanks I will install this in cf9.0.1

ContentBox on CF 10 Public Beta installs fine *IF* is use MSSQL as the
datastore (Just FYI)

Tim

Ok.. I spoke too soon... i get the install page but after adding all
my initial site info i get:

Oops! Exception Encountered

Application Execution Exception
Error Type: java.lang.NullPointerException : [N/A]
Error Messages:

The null pointer issue is a bug I reported to Adobe when it was still
private.. The bug has been fixed but not rolled out yet.

Tim

Yes, I am hesitant to change the ContentBox code for this bug, what do you guys think?

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

I wouldn’t bother, the Adobe fix is coming anyday.

We can check if we can provide a fix. It will be good to have more applications running on CF10 public beta.

Can you mail me and I can let you know?

I agree about having more apps running on CF10 particularly Contentbox.

George Murphy

I have seen this same error on ContentBox running under ColdFusion
9.01 as well.

Not sure if this is related, but has anyone seen the following error when running ContentBox on CF 10 when calling the installer for the first time (this against MySql 5.5 and db tables are being created properly)

Error building: coldbox.system.plugins.Renderer -> Could not find the included template //includes/helpers/ApplicationHelper.cfm. Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc.

Using relative paths (for example, template=“index.cfm” or template="…/index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible. with constructor arguments: {controller={[(Component=coldbox.system.web.Controller)]}}

I even went as far as putting the mapping in the cf admin and also adding this.mappings["/includes"] = COLDBOX_APP_ROOT_PATH & “includes”; to Application.cfc to see if I can get past this error, but no joy.

Thanks,

I thinks was a bug in cf that Andrew posted dealing with the double //

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano

This is a bug in ColdFusion 10 and using the web connector, I sat down with Adobe Engineer and they have confirmed this as a bug with cfincludes and more than one forward slash in the string.

This will be fixed by Adobe.

Thanks for the heads up, Luis and Andrew,

Do you recall the bug number so I can look for updated status in the adobe bug tracker?

Cheers…

3129772