Installation issue

I’m giving CB a try, but I’m getting stuck even installing it.

Using Railo 4.1.0.004, without a webserver at present (so just via the :8080 port on tomcat), but I will be using nginx.

I managed to bodge my way through the DNS creator, but now I just get (the datasource in Application.cfc seems to have been updated properly).

Railo 4.1.0.004 Error (java.lang.StringIndexOutOfBoundsException)

Message

String index out of range: -11

Cause

java.lang.StringIndexOutOfBoundsException

Java Stacktrace

String index out of range: -11
at java.lang.String.substring(String.java:1952):1952
at java.lang.String.substring(String.java:1925):1925
at railo.runtime.PageSourceImpl.createComponentName(PageSourceImpl.java:567):567
at railo.runtime.PageSourceImpl.getComponentName(PageSourceImpl.java:516):516
at railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:340):340
at railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:326):326
at railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:331):331
at railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:309):309
at railo.runtime.orm.hibernate.HibernateSessionFactory.loadComponents(HibernateSessionFactory.java:290):290
at railo.runtime.orm.hibernate.HibernateORMEngine.getSessionFactory(HibernateORMEngine.java:202):202
at railo.runtime.orm.hibernate.HibernateORMEngine.init(HibernateORMEngine.java:118):118
at railo.runtime.config.ConfigImpl.getORMEngine(ConfigImpl.java:3057):3057
at railo.runtime.config.ConfigImpl.resetORMEngine(ConfigImpl.java:3043):3043
at railo.runtime.orm.ORMUtil.resetEngine(ORMUtil.java:46):46
at railo.runtime.listener.ModernAppListener.initApplicationContext(ModernAppListener.java:369):369
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:90):90
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2116):2116
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2083):2083
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:309):309
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803):803
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290):290
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:114):114
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235):235
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233):233
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175):175
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128):128
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102):102
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109):109
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286):286
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844):844
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583):583
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447):447
at java.lang.Thread.run(Thread.java:722):722

Timestamp

5/17/13 3:28:32 PM GMT

WOW, never seen that before. What Database do you have?

Curt Gratz suggests that you should in the Application.cfc set the ormsettings.dialect to the appropriate database.

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

MySQL x64 5.5.25

I’ll give that a go.

Thanks!

Tom.

image001.jpg

Tom, also are you using the github code or our production release?

signature0.jpg

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

image001.jpg

1.5.2 – downloaded from CB website this afternoon.

I could download the github code.

It seems to me to be more of a Railo thing though, it’s not getting very far through the request….

image002.jpg

image001.jpg

Looks like it’s to do with this.ormSettings.cfclocation.

I’m running inside an app mapping, and that appMapping is a symlink.

If I change cfclocation to “/user/sites/mysite/cb” it seems to work!

image002.jpg

image001.jpg

Hmm. I get further now- and I’ve copied instead of symlinking. Instead I’m getting:

Railo 4.1.0.004 Error (org.hibernate.exception.SQLGrammarException)

Message

could not execute query

Error Code

1146

Cause

org.hibernate.exception.SQLGrammarException

Stacktrace

The Error Occurred in
/srv/tomcat6/webapps/cb/coldbox/system/orm/hibernate/BaseORMService.cfc: line 301

299: }
300: } else {
301: return entityLoad( arguments.entityName, arguments.criteria, true );
302: }
303: }

image002.jpg

image001.jpg

Changing dbcreate to dropcreate for the installer seems to have worked.

I’m configuring now. Whoohoo!

image002.jpg

image001.jpg

All working.

YeaaaHaa!

image002.jpg

image001.jpg