Install Lucee Switching from ColdFusion

Hi,

I am trying to get Lucee working.
OS CentOS Linux 7
Clean machine
Used “lucee-5.2.2.071-pl0-linux-x64-installer.run” to install.
took defaults.

I have setup Mappings.
First, trying to get mxunit test site working.

Get the following error:

Lucee 5.2.2.71 Error (missinginclude)
Message Page /UnitTest/InfoConTestSuite.cfm [/opt/lucee/tomcat/webapps/ROOT/UnitTest/InfoConTestSuite.cfm] not found
Mapping /
Java Stacktrace lucee.runtime.exp.MissingIncludeException: Page /UnitTest/InfoConTestSuite.cfm [/opt/lucee/tomcat/webapps/ROOT/UnitTest/InfoConTestSuite.cfm] not found
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:913)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:838)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:224)
at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:104)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2400)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2390)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2358)
at lucee.runtime.engine.Request.exe(Request.java:46)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1044)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:992)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at mod_cfml.core.invoke(core.java:234)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Timestamp 8/30/17 2:40:44 PM PDT

Main website(diferent ip address)
Lucee 5.2.2.71 Error (expression)
Message invalid component definition, can’t find component [BookSession.AdminUserAccount]
Stacktrace The Error Occurred in
/var/www/html/InfoCon/Admin/Application.cfc: line 69

67: <cffunction name="onSessionStart" returnType="void" output="false">
68: <cfif not isDefined("SESSION.adminLogon")>
69: <cfobject name="SESSION.adminLogon" component="BookSession.AdminUserAccount">
70: </cfif>
71:

Java Stacktrace lucee.runtime.exp.ExpressionException: invalid component definition, can’t find component [BookSession.AdminUserAccount]
at lucee.runtime.component.ComponentLoader._search(ComponentLoader.java:106)
at lucee.runtime.component.ComponentLoader.searchComponent(ComponentLoader.java:74)
at lucee.runtime.PageContextImpl.loadComponent(PageContextImpl.java:3132)
at lucee.runtime.functions.other.CreateObject.doComponent(CreateObject.java:145)
at lucee.runtime.tag.ObjectTag.doStartTag(ObjectTag.java:141)
at application_cfc$cf.udfCall(/Application.cfc:69)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:355)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1918)
at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:420)
at lucee.runtime.listener.ModernAppListener.onSessionStart(ModernAppListener.java:327)
at lucee.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:3050)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:119)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2400)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2390)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2358)
at lucee.runtime.engine.Request.exe(Request.java:46)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1044)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:992)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Timestamp 8/30/17 2:40:38 PM PDT

Please help.

We are evaluating Lucee for a replacement of ColdFusion.

Brian Erickson

Are you switching from ACF on CentOS to Lucee on CentOS? Or are you switching from ACF on Windows?

Hi,

Sorry, I wasn’t clear.

The switch is from CentOS 6 to CentOS7.
Adobe Coldfusion to Lucee.

No windows. No Macs.

Linux Only

Brian

Can anyone help me get lucee up and working?

Lucee handles resolution of CFM and CFC files pretty much the same way Adobe CF does. I can’t really tell what’s going on from your error messages, but I assume it’s confusion over where your web root is or a missing CF mapping.

I have doubled checked the mapping.
I assume that the webroot is handled by Apache.

Does Lucee do something different that ColdFusion?
Do I have to Compile the direectories?

Brian

That depends. If you used the Lucee installer, and Apache was installed already, and you chose the option for it to install mod_cfml, and the apache home dir was detected correct, then yes it should pretty much work exactly like ColdFusion. You create a virtual host in Apache and the document root will be passed along to Lucee and used as the web root. Perhaps start, but just hitting the root directory and confirm you’re hitting the web root that you expect.

Do I have to Compile the direectories?

Nope.

Does Lucee do something different that ColdFusion?

Not really. I’m sure it’s just some configuration not quite right somewhere. This sort of thing is difficult to troubleshoot over messages though since there’s quite a few working pieces. Start simple and confirm you’re hitting the right web root and your settings are getting picked up and go from there.

Hi Brian,

Lucee 5.2.2.71 Error (missinginclude)
Message Page /UnitTest/InfoConTestSuite.cfm [/opt/lucee/tomcat/webapps/ROOT/UnitTest/InfoConTestSuite.cfm] not found
Mapping /
Java Stacktrace lucee.runtime.exp.MissingIncludeException: Page /UnitTest/InfoConTestSuite.cfm [/opt/lucee/tomcat/webapps/ROOT/UnitTest/InfoConTestSuite.cfm] not found

You didn’t indicate what URL you’re using to try to access this page, or where this CFM file is located on your file system. However, it looks like Lucee is looking for it in the default location (which is /opt/lucee/tomcat/webapps/ROOT/) and simply not finding it.

This is most likely a context config problem. Can you tell us what URL you were hitting to try to access this? Were you using a domain or perhaps trying to hit it at 127.0.0.1?

One of the differences between ACF and Lucee is that Lucee tries to stick a little closer to established J2EE conventions with regards to how it how it defines different contexts within the J2EE servlet container (usually Tomcat). Where ACF uses a single context and interprets file locations dynamically, Lucee defines each context individually within the servlet container. This is done dynamically with mod_cfml or explicitly by adding your site configs to your Tomcat server.xml file.

It can be a little confusing at first, but it makes simple sense once you understand the basics.

Lucee 5.2.2.71 Error (expression)
Message invalid component definition, can’t find component [BookSession.AdminUserAccount]
Stacktrace The Error Occurred in
/var/www/html/InfoCon/Admin/Application.cfc: line 69

67: <cffunction name="onSessionStart" returnType="void" output="false">
68: <cfif not isDefined("SESSION.adminLogon")>
69: <cfobject name="SESSION.adminLogon" component="BookSession.AdminUserAccount">
70: </cfif>
71:

Java Stacktrace lucee.runtime.exp.ExpressionException: invalid component definition, can’t find component [BookSession.AdminUserAccount]

This is just Lucee saying it can’t find that component. Can you tell us where your component cfc is in relation to your App.cfc?

Note that this context is configured properly, so that Lucee is looking for your file in “/var/www/html/”.

Thanks for giving Lucee a try, and hope this helps!

Configuration:
192.168.0.201/
and
192.168.0.202/

/Admin
/Client
/Fixed mapped as /BookFixed
/Model mapped as /Books
/Session mapped as /BookSession

done via the mapping app i lucee web tool app.

using the urls
Both, 192.168.0.201/index.html and 192.168.0.202/index.html work.

Only fails because of cfm and cfc

Ihave the mapping to

I tried to modified the server.xml, but then lucee does not start.

<!-- HOST ENTRY TEMPLATE: -->
    <Host name="192.168.0.201" appBase="webapps">
         <Context path="" docBase="<webroot>/Admin" />
    </Host>
<!-- HOST ENTRY TEMPLATE: -->
    <Host name="192.168.0.202" appBase="webapps">
         <Context path="" docBase="<webroot>/Client" />
    </Host>