All services are running and active (Tomcat & Ngnix)
when I am access server IP address it does load a sample html file. I setup a new virtual host as “luceepoc.com” is getting an error
error snippet
Type Exception Report
Message java.io.FileNotFoundException: /var/lib/tomcat9/lucee-server/patches/5.3.7.48.lco (No such file or directory)
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: java.io.FileNotFoundException: /var/lib/tomcat9/lucee-server/patches/5.3.7.48.lco (No such file or directory)
lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:384)
lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:267)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:169)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:207)
lucee.loader.servlet.CFMLServlet.init(CFMLServlet.java:42)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.base/java.lang.Thread.run(Thread.java:829)
Root Cause
java.io.FileNotFoundException: /var/lib/tomcat9/lucee-server/patches/5.3.7.48.lco (No such file or directory)
java.base/java.io.FileOutputStream.open0(Native Method)
java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:187)
lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:355)
lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:267)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:169)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:207)
My question is “Does it possible to install Lucee with this s/w combo”? if so How can I rectify this issue?
If not possible with this combo version, which combo you suggest me to install with a Linux machine? ( providing doc would be appreciated"
Encounter an error while deploying the Lucee via tomcat. The problem is when I am starting the tomcat Unable to load server configuration. If I am comment on mod_cfml valve session, the error will clear.
The following command was used to get the sharedkey which I suspect the problem
openssl rand -base64 42 >> /opt/lucee/modcfml-shared-key.txt #clean out any base64 chars that might cause a problem
sed -i “s/[/+=]//g” /opt/lucee/modcfml-shared-key.txt
----Catalina.out ERROR–
07-Jun-2021 17:12:58.244 WARNING [main] org.apache.catalina.startup.Catalina.parseServerXml Unable to load server configuration from [/opt/lucee/tomcat/conf/server.xml]
org.xml.sax.SAXParseException; systemId: [file:/opt/lucee/tomcat/conf/server.xml](file:///opt/lucee/tomcat/conf/server.xml); lineNumber: 175; columnNumber: 5; Error at line [175] column [5]: [mod_cfml.core]
I know how this will sound, and I am not trying to make it sound that way. I fully, apologize in advance as I am not trying to be anything other than helpful.
If you are not sure, use Apache. You are not losing any significant performance gains by using Apache over nginx. If anything you will end up doing more work trying to get trivial items that have been added and very well documented to work in nginix versus spending all of 3 minutes working with with Apache.
Apache remains widely popular as it works, and when actually tweaked for performance runs circles and scales better than nginix. Nginix is for niche blogs and piggy bloated python installs that for a lack of actually writing decent code, just want to throw more hardware at something.
Antyrate, I digress
You are trying to point lucee to Apache, when Lucee should be hanging out in Tomcat Raw mode (port 8888) and the config above would get you to taking nginx port 80 and causing it to make the connection to port 8888
Reinstall lucee
do not bother with the configuring it for your webserver
follow the prompts above
start lucee
restart nginx
@Abhilash from the error it looks like server.xml is not valid xml. Without pasting your mod_cfml shared key, what is on line 175 of server.xml? I think the problem you are facing might be due to using Ubuntu 20.04, the script you are using has been tested for Ubuntu 18.04 and has not been updated/tested on 20.04 yet.
@Terry_Whitney you can use the mod_cfml Tomcat Valve with nginx. There are two parts to mod_cfml the Tomcat Valve, and the Apache Module.
Disabling selinux is not usually necessary. It might be a good troubleshooting step to disable it, but I’ve found that it may just need a little config to get it working when you have selinux enabled.
Good point! Very, very, vey common is also that cfml folks (including me ) tend to set tomcat directives in server.xml or web.xml as cfml comments with <!--- ... ---> (triple dash) instead html comments with <!-- ... --> (double dash). I think Tomcat just won’t start with triple dashed comments.
Yes it is… default lucee.XXXX.run file should work without any issues. I tried that was successful but client requirement is Ubuntu + Lucee + Tomcat + Nginx Combo with latest one. I am trying to write some scripts to get install it with reference of Foundo(which is very older)… As a DevOps engineer I need to automate everything on prod so customised installation would be great!
@pfreitag Thanks a lot. Finally your script is working well with “Ubuntu 18.04” all good!!
The good thing is no complaints at all with that script. You awesome!
Presently I am trying to deploy *.cfm codebase into the new document root.
- I created a new document root eg: example.com then put a sample index.cfm which is working and loading fine in any browser
- I pulled all cfm code files from working website (Windows + IIS + Coldfusion) into our new Ubuntu + Lucee server, we have a index files inside all directories and sub directories that means I disabled that sample index.cfm then checking on browser which is complaining “403 Forbidden
" so I turned on autoindex where in example.com.conf that was successfully listed all directories then if I explored to index.cfm under the same directory is complaining " This page isn’t working” so I modified some NGINX conf file with redirection which shouldn’t works at all.