https://bz.apache.org/bugzilla/show_bug.cgi?id=69623

--- Comment #4 from cri...@kth.se ---
Thank you for your response! 

Yes the issue exists in all versions older than 9.0.27. I could not find 9.0.28
to test it, but 9.0.29 has the issue, and all subsequent versions that I
tested. This is the complete list of versions I tested with (a binary search
basically)

drwxr-xr-x  12 cristi  staff       384 Mar 22 00:29 apache-tomcat-9.0.10
drwxr-xr-x  17 cristi  staff       544 Mar 22 02:05 apache-tomcat-9.0.102
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:11 apache-tomcat-9.0.11
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:17 apache-tomcat-9.0.59
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:20 apache-tomcat-9.0.33
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:22 apache-tomcat-9.0.24
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:24 apache-tomcat-9.0.29
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:26 apache-tomcat-9.0.26
drwxr-xr-x  16 cristi  staff       512 Mar 22 02:29 apache-tomcat-9.0.27
lrwxr-xr-x   1 cristi  staff        20 Mar 22 03:54 tomcat ->
apache-tomcat-9.0.27

Since the tomcat9 docker image(s) did not work due to this issue, I resorted to
running exactly the same webapp (in ./webapps/ROOT) using a docker-compose
configuration with a jvm docker image:

 tomcat:
    container_name: tomcat
    image: arm64v8/eclipse-temurin:23
    volumes:
      - "./tomcat:/usr/local/tomcat/"
      - "./webapps:/usr/local/tomcat/webapps/"
    command: sh /usr/local/tomcat/bin/start.sh  
    ports:
      - '8080:8080'

I simply symlink the ./tomcat folder to different tomcat downloads, and copy a
simplified start.sh script in the downloaded apache-tomcat-VERSION/bin. The
script is:

java \
-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties \
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources \
-Dignore.endorsed.dirs= \
-classpath
/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar \
-Dcatalina.base=/usr/local/tomcat \
-Dcatalina.home=/usr/local/tomcat \
-Djava.io.tmpdir=/usr/local/tomcat/temp \
org.apache.catalina.startup.Bootstrap start

I've never used custom mime mappings. Maybe that could be the solution to my
problem (apart from changing my decade-old webapp to not use getContent for
.mdd files). But I reported here since I could not see any mention of webapp
classloader changes in the CHANGELOG.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to