Skip to content

Commit f08ed30

Browse files
committed
Italian Promises and Letter Trails.
1 parent 6c10fff commit f08ed30

80 files changed

Lines changed: 1478 additions & 1073 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

configuration/nwe-config.xml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,52 @@
366366
</description>
367367
</server>
368368

369+
<!-- ═══════════════════════════════════════════════════════════════════
370+
WEB SERVERS — Tomcat & Apache Installation Configuration
371+
═══════════════════════════════════════════════════════════════════
372+
Authoritative directory/version settings for Tomcat and Apache.
373+
All deploy, startup, and shutdown scripts read from here.
374+
375+
version: The installed software version (e.g. 11.0.2)
376+
install-dir: Filesystem path where the software is installed.
377+
For Tomcat this is CATALINA_HOME.
378+
For Apache this is the document root.
379+
tech-id: Installer Tech ID — identifies who performed or
380+
authorized the installation. Written by post-clone.sh
381+
and verified by integrity checks.
382+
════════════════════════════════════════════════════════════════════ -->
383+
<web-servers>
384+
<tomcat>
385+
<version>11.0.2</version>
386+
<install-dir>/opt/apache-tomcat-11.0.2</install-dir>
387+
<tech-id>${NWE_INSTALLER_TECH_ID:MEARVK-LLC-Default}</tech-id>
388+
<archive-url>https://archive.apache.org/dist/tomcat/tomcat-11/v11.0.2/bin/apache-tomcat-11.0.2.tar.gz</archive-url>
389+
<service-name>tomcat</service-name>
390+
<description>
391+
Apache Tomcat 11.0.2 — Servlet/JSP container for all NWE web modules.
392+
Default install: /opt/apache-tomcat-{version}
393+
Override with CATALINA_HOME environment variable.
394+
</description>
395+
</tomcat>
396+
<apache>
397+
<version>2.4</version>
398+
<install-dir>/var/www/html</install-dir>
399+
<app-subdir>nwe</app-subdir>
400+
<tech-id>${NWE_INSTALLER_TECH_ID:MEARVK-LLC-Default}</tech-id>
401+
<service-name>apache2</service-name>
402+
<public-url>http://localhost/nwe</public-url>
403+
<description>
404+
Apache HTTP Server 2.4 — Reverse proxy and static file host.
405+
Document root: /var/www/html
406+
NWE app subdirectory: /var/www/html/nwe
407+
</description>
408+
</apache>
409+
</web-servers>
410+
369411
<!-- ═══════════════════════════════════════════════════════════════════
370412
BINARY HTTP SERVER
371-
apache-root: Apache2 document root subdirectory for stored files.
372-
apache-url: Public base URL served by Apache2.
413+
apache-root: Read from <web-servers><apache> above.
414+
apache-url: Read from <web-servers><apache><public-url> above.
373415
════════════════════════════════════════════════════════════════════ -->
374416
<server id="BinaryHttp">
375417
<enabled>true</enabled>

modules/AE6E66/servlets/deploy-local.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
2-
# AE6E66™ — Deploy Local (Deploy to local Tomcat)
2+
# AE6E66™ — Deploy Local (Deploy to local Tomcat)
33
# Usage: bash modules/AE6E66/servlets/deploy-local.sh [tomcat_home]
44
set -e
55

66
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
77
AE6E66_ROOT="$(dirname "$SCRIPT_DIR")"
88
WEBAPP_SRC="$AE6E66_ROOT/servlets/servlet/src/main/webapp"
9-
TOMCAT_HOME="${1:-${CATALINA_HOME:-/home/mearvk/tomcat}}"
9+
TOMCAT_HOME="${1:-${CATALINA_HOME:-/opt/apache-tomcat-11.0.2}}"
1010

1111
# Source shared deploy library for validation
1212
_NWE="$(cd "$(dirname "$0")" && cd ../../.. 2>/dev/null && pwd)"
@@ -20,11 +20,11 @@ _NWE="$(cd "$(dirname "$0")" && cd ../../.. 2>/dev/null && pwd)"
2020
[ -f "$_NWE/scripts/deploy-functions.sh" ] && source "$_NWE/scripts/deploy-functions.sh"
2121
if type nwe_validate_tomcat &>/dev/null; then nwe_validate_tomcat "$TOMCAT_HOME" || exit 1; fi
2222

23-
echo "═══════════════════════════════════════════════════════════════"
24-
echo " AE6E66™ — Deploy Local"
23+
echo "═══════════════════════════════════════════════════════════════"
24+
echo " AE6E66™ — Deploy Local"
2525
echo " Source: $WEBAPP_SRC"
2626
echo " Target: $DEPLOY_DIR"
27-
echo "═══════════════════════════════════════════════════════════════"
27+
echo "═══════════════════════════════════════════════════════════════"
2828

2929
if [ ! -d "$WEBAPP_SRC" ]; then
3030
echo "[!] Webapp source not found"; exit 1
@@ -43,9 +43,9 @@ if [ -d "$JAVA_SRC" ]; then
4343
SERVLET_API=$(find "$TOMCAT_HOME/lib" -name "jakarta.servlet-api*.jar" -o -name "servlet-api*.jar" 2>/dev/null | head -1)
4444
fi
4545
if [ -n "$SERVLET_API" ] && [ -f "$SERVLET_API" ]; then
46-
find "$JAVA_SRC" -name "*.java" | xargs javac -d "$DEPLOY_DIR/WEB-INF/classes" -cp "$SERVLET_API" 2>&1 && echo "[*] Compiled servlet classes" || echo "[!] Compile failed check Jakarta Servlet API in $TOMCAT_HOME/lib"
46+
find "$JAVA_SRC" -name "*.java" | xargs javac -d "$DEPLOY_DIR/WEB-INF/classes" -cp "$SERVLET_API" 2>&1 && echo "[*] Compiled servlet classes" || echo "[!] Compile failed — check Jakarta Servlet API in $TOMCAT_HOME/lib"
4747
else
48-
echo "[!] No servlet-api jar found in $TOMCAT_HOME/lib filter class not compiled"
48+
echo "[!] No servlet-api jar found in $TOMCAT_HOME/lib — filter class not compiled"
4949
fi
5050
fi
5151

@@ -56,11 +56,11 @@ if [ -n "$JDBC_JAR" ]; then
5656
cp "$JDBC_JAR" "$DEPLOY_DIR/WEB-INF/lib/"
5757
echo "[*] MySQL connector: $(basename "$JDBC_JAR")"
5858
else
59-
echo "[!] WARNING: mysql-connector-j not found JDBC pages will fail"
59+
echo "[!] WARNING: mysql-connector-j not found — JDBC pages will fail"
6060
fi
6161

6262
chown -R tomcat:tomcat "$DEPLOY_DIR" 2>/dev/null || true
6363

64-
echo "[] Deployed to: $DEPLOY_DIR"
64+
echo "[✓] Deployed to: $DEPLOY_DIR"
6565
echo " URL: http://localhost:8080/$CONTEXT/"
66-
echo "═══════════════════════════════════════════════════════════════"
66+
echo "═══════════════════════════════════════════════════════════════"
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
#!/bin/bash
2-
# ═══════════════════════════════════════════════════════════════════════════════
3-
# NitroWebExpress™ — AE6E66 Frontend Shutdown
2+
# ═══════════════════════════════════════════════════════════════════════════════
3+
# NitroWebExpress™ — AE6E66 Frontend Shutdown
44
# Undeploys the AE6E66 webapp from Tomcat.
55
# Usage: bash shutdown-frontend.sh [tomcat_home] [--stop-tomcat]
6-
# ═══════════════════════════════════════════════════════════════════════════════
6+
# ═══════════════════════════════════════════════════════════════════════════════
77
set -uo pipefail
88

9-
TOMCAT_HOME="${1:-${CATALINA_HOME:-/home/mearvk/tomcat}}"
9+
TOMCAT_HOME="${1:-${CATALINA_HOME:-/opt/apache-tomcat-11.0.2}}"
1010
CONTEXT="ae6e66"
1111
STOP_TOMCAT=false
1212
for arg in "$@"; do [ "$arg" = "--stop-tomcat" ] && STOP_TOMCAT=true; done
1313

1414
echo ""
15-
echo "╔═══════════════════════════════════════════════════════════════════════════╗"
16-
echo " AE6E66 Frontend Shutdown "
17-
echo "╚═══════════════════════════════════════════════════════════════════════════╝"
15+
echo "╔═══════════════════════════════════════════════════════════════════════════╗"
16+
echo "║ AE6E66 — Frontend Shutdown ║"
17+
echo "╚═══════════════════════════════════════════════════════════════════════════╝"
1818
echo ""
1919

2020
DEPLOY_DIR="$TOMCAT_HOME/webapps/$CONTEXT"
2121
if [ -d "$DEPLOY_DIR" ]; then
2222
rm -rf "$DEPLOY_DIR"
23-
echo " [] Webapp undeployed: $DEPLOY_DIR"
23+
echo " [✓] Webapp undeployed: $DEPLOY_DIR"
2424
else
2525
echo " [--] Webapp not deployed at $DEPLOY_DIR"
2626
fi
@@ -29,10 +29,10 @@ rm -f "$TOMCAT_HOME/webapps/$CONTEXT.war" 2>/dev/null || true
2929
if [ "$STOP_TOMCAT" = true ]; then
3030
echo " [*] Stopping Tomcat..."
3131
sudo systemctl stop tomcat 2>/dev/null || "$TOMCAT_HOME/bin/shutdown.sh" 2>/dev/null || true
32-
echo " [] Tomcat stopped"
32+
echo " [✓] Tomcat stopped"
3333
fi
3434

3535
echo ""
3636
echo " Restart: bash start-frontend.sh"
37-
echo "╚═══════════════════════════════════════════════════════════════════════════╝"
37+
echo "╚═══════════════════════════════════════════════════════════════════════════╝"
3838
echo ""

0 commit comments

Comments
 (0)