Hi Everyone,
Hopefully I’ll do a decent job of explaining everything this time around.
I have taken over someone else’s work - so “I” have no history with it / have not seen it previously run.
We have a set of scripts that will create all the Amazon Infrastructure that we need to deploy our application to : This all works.
We have additional scripts that do our software installs and configuration and it is within these that I have hit an “interesting” snag, that I am hoping someone will be able to help with, in that;
The existing script;
- Downloads the lucee{version] JAR and copies it to the server at;
/opt/lucee/lucee-5.3.8.206 : by CURLing “http://release.lucee.org/rest/update/provider/loader/$LUCEE_VERSION” - creates a symlink for /opt/lucee/current to the above directory.
- installs JDK 11
- installs Tomcat 9 (which installs Java 17)
- Adds the Lucee servlet and mapping to web.xml
- Adds a valve to server.xml for mod_cfml
- Downloads mod_cfml-valve_v1.1.11.jar
- creates a shared key
- “sed’s” the shared key into server.xml
- creates the directory /var/lib/tomcat/lucee-server
- changes the owner group to “tomcat” / updates security
- restarts the tomcat service
Then the script sits and waits for the /opt/lucee/config/server/lucee-server/context/ directory to show up.
Everything works - BUT for the last step.
I assume it is because the script is using a JAR and not a WAR, but like I said earlier - I have never seen this script before / or seen it work.
I have checked GIT and it shows that this script has ALWAYS had the JAR.
So I “think” I just need to change the JAR for a WAR - then (perhaps) some alter some directory locations (if needed).
But I wanted to doublecheck that there wasn’t something I was missing, whereby I could use the JAR like a WAR?
As always thanks!
Don’t forget to tell us about your stack!
OS: Amazon Linux 2 (centOs 7)
Java Version: Java 11 / 17
Tomcat Version: 9.0.58
Lucee Version: 5.3.8.206