nzflew
1
My docker compose file calls the following image on linux/arm64
lucee/lucee:6.0.4.24-SNAPSHOT-tomcat9.0-jdk11-temurin-jammy
and this works fine for my applications
when trying to use a new image such as
lucee/lucee:7.0.0.395-tomcat11.0-jdk21-temurin-noble
i get errors relating to the following
CFMLServlet cannot be cast to jakarta.servlet.Servlet
RestServlet cannot be cast to jakarta.servlet.Servlet
Any suggestions or hints?
Odd, Tomcat 11 is jakarta based, can you share the full stacktrace?
Anything specific in your docker config, i.e does it also happen with a bare bones dockerfile?
nzflew
3
My docker compose file is below, when I swap out the image I get the error, I’ll try and get a bit more information
lucee1:
container_name: lucee1
image: lucee/lucee:6.0.4.24-SNAPSHOT-tomcat9.0-jdk11-temurin-jammy
platform: linux/arm64
ports:
- “8881:8888”
restart: unless-stopped
volumes:
- “./lucee/lucee-lucee1.xml:/usr/local/tomcat/conf/server.xml:ro”
- “./lucee/lucee-web.xml:/usr/local/tomcat/conf/web.xml:ro”
- “./lucee/lucee-context.xml:/usr/local/tomcat/conf/context.xml:ro”
- “./lucee/lucee-logging.properties:/usr/local/tomcat/conf/logging.properties:ro”
- “./lucee/certs/ca_certificate.pem:/certs/ca_certificate.pem:ro”
- “./lucee/scripts/startup.sh:/startup.sh:ro”
- “./mariadb/mariadb-java-client-3.5.1.jar:/opt/lucee/server/lucee-server/context/lib/mariadb-java-client.jar”
- myVhosts:/var/www/vhosts
- myHome:/home
command: [“/bin/bash”, “/startup.sh”]
networks:
- web-network
labels:
- “com.docker.compose.project=monitoring”
mem_limit: 1024m
mem_reservation: 512m
cpus: 1.5
ahhh, I think the problem is you are trying to use tomcat 9 era server and web .xml files with tomcat 11?