Issue with Read-Only File System During XNAT Deployment

52 views
Skip to first unread message

Fan Chao

unread,
Jun 6, 2025, 3:15:08 AMJun 6
to xnat_discussion

Dear XNAT Support,

I am encountering an issue while deploying XNAT 1.9.1.2 on Ubuntu 20.04 with Apache Tomcat 9. The deployment fails due to a "read-only file system" error when XNAT attempts to create a temp folder. I have tried remounting the filesystem as read-write, but the issue persists. Please find the error log attached for reference.

Could you kindly assist in resolving this issue?





[2025-06-06 14:11:26] [info] Pausing ProtocolHandler["http-nio-8080"]
[2025-06-06 14:11:26] [info] Stopping service[Catalina]
[2025-06-06 14:11:26] [info] Stopping ProtocolHandler ["http-nio-8080"]
[2025-06-06 14:11:26] [info] Destroying ProtocolHandler ["http-nio-8080"]
[2025-06-06 14:11:26] [warning] Unable to clear soft references in ObjectStreamClass$cache for web application[ROOT]
[2025-06-06 14:11:26] [warning] java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader 'bootstrap')
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2325)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2300)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1669)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1597)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:463)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5515)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:293)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:826)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1033)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:826)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1033)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:579)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:1050)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.startup.Catalina.stop(Catalina.java:850)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:996)
[2025-06-06 14:11:26] [warning] Unable to clear soft references in ObjectStreamClass$cache for web application[xnat-web-1.9.1.2]
[2025-06-06 14:11:26] [warning] java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader 'bootstrap')
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2325)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2300)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1669)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1597)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:463)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5515)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:293)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:826)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1033)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:826)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1033)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:579)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:1050)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.startup.Catalina.stop(Catalina.java:850)
[2025-06-06 14:11:26] [warning] at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:996)
[2025-06-06 14:11:26] [info] NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[2025-06-06 14:11:26] [info] Server version: Apache Tomcat/9.0.58 (Ubuntu)
[2025-06-06 14:11:26] [info] Server build: Dec 30 1969 06:13:17 UTC
[2025-06-06 14:11:26] [info] Server version number: 9.0.58.0
[2025-06-06 14:11:26] [info] Operating System: Linux
[2025-06-06 14:11:26] [info] OS version: 6.8.0-60-generic
[2025-06-06 14:11:26] [info] Architecture: amd64
[2025-06-06 14:11:26] [info] Java environment: /usr/lib/jvm/java-11-openjdk-amd64
[2025-06-06 14:11:26] [info] Java Virtual Machine version: 11.0.27+6-post-Ubuntu-0ubuntu122.04
[2025-06-06 14:11:26] [info] JVM supplier: Ubuntu
[2025-06-06 14:11:26] [info] CATALINA_BASE: /var/lib/tomcat9
[2025-06-06 14:11:26] [info] CATALINA_HOME: /usr/share/tomcat9
[2025-06-06 14:11:26] [info] Command-line options: --add-opens=java.base/java.lang=ALL-UNNAMED
[2025-06-06 14:11:26] [info] Command-line options: --add-opens=java.base/java.io=ALL-UNNAMED
[2025-06-06 14:11:26] [info] Command-line options: --add-opens=java.base/java.util=ALL-UNNAMED
[2025-06-06 14:11:26] [info] Command-line options: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
[2025-06-06 14:11:26] [info] Command-line options: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[2025-06-06 14:11:26] [info] Command-line options: -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
[2025-06-06 14:11:26] [info] Command-line options: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2025-06-06 14:11:26] [info] Command-line options: -Djava.awt.headless=true
[2025-06-06 14:11:26] [info] Command-line options: -Djdk.tls.ephemeralDHKeySize=2048
[2025-06-06 14:11:26] [info] Command-line options: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
[2025-06-06 14:11:26] [info] Command-line options: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
[2025-06-06 14:11:26] [info] Command-line options: -Dxnat.home=/opt/xnat
[2025-06-06 14:11:26] [info] Command-line options: -Dignore.endorsed.dirs=
[2025-06-06 14:11:26] [info] Command-line options: -Dcatalina.base=/var/lib/tomcat9
[2025-06-06 14:11:26] [info] Command-line options: -Dcatalina.home=/usr/share/tomcat9
[2025-06-06 14:11:26] [info] Command-line options: -Djava.io.tmpdir=/tmp
[2025-06-06 14:11:26] [info] APR version[1.7.0] loaded Apache Tomcat native library based on APR[1.2.31].
[2025-06-06 14:11:26] [info] APR Features: IPv6[true], sendfile[true], accept filters[false], random[true], UDS [true].
[2025-06-06 14:11:26] [info] APR/OpenSSL configuration: useAprConnector[false], useOpenSSL[true]
[2025-06-06 14:11:26] [info] OpenSSL successfully initialized [OpenSSL 3.0.2 15 Mar 2022]
[2025-06-06 14:11:26] [info] Initializing ProtocolHandler ["http-nio-8080"]
[2025-06-06 14:11:26] [info] Server initialized in [197] ms
[2025-06-06 14:11:26] [info] Starting service[Catalina]
[2025-06-06 14:11:26] [info] Starting Servlet engine: [Apache Tomcat/9.0.58 (Ubuntu)]
[2025-06-06 14:11:26] [info] Deploying web application archive[/var/lib/tomcat9/webapps/xnat-web-1.9.1.2.war]
[2025-06-06 14:11:30] [info] At least one JAR was scanned for TLD but did not contain TLD. Enable debug logging for the logger to get a complete list of JARs that were scanned but not found to contain TLD. Skipping unnecessary JARs during scanning may speed up startup and JSP compilation.
[2025-06-06 14:11:30] [crit] Error occurred while deploying web application archive [/var/lib/tomcat9/webapps/xnat-web-1.9.1.2.war]
[2025-06-06 14:11:30] [crit] java.lang.IllegalStateException: Error occurred while starting child
[2025-06-06 14:11:30] [crit] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
[2025-06-06 14:11:30] [crit] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[2025-06-06 14:11:30] [crit] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2025-06-06 14:11:30] [crit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2025-06-06 14:11:30] [crit] at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
[2025-06-06 14:11:30] [crit] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
[2025-06-06 14:11:30] [crit]

Moore, Charlie

unread,
Jun 6, 2025, 12:30:47 PMJun 6
to xnat_di...@googlegroups.com
Hello there,

From your log:
[2025-06-06 14:11:26] [info] Java environment: /usr/lib/jvm/java-11-openjdk-amd64 ...

It looks like you're running Java 11. Have you tried with Java 8 instead?

Thanks,
Charlie


From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Fan Chao <fancha...@gmail.com>
Sent: Friday, June 6, 2025 2:15 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Issue with Read-Only File System During XNAT Deployment
 
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/5a632571-bcab-446f-b483-386e00e3c894n%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Fan Chao

unread,
Jun 8, 2025, 10:18:57 PMJun 8
to xnat_discussion

I hope this message finds you well. I have been following the troubleshooting steps based on the advice provided earlier. Here is a summary of the current situation:

I have switched my Java version from JDK 11 to JDK 8 as suggested. However, I am still encountering the following issue when accessing the XNAT page: a 404 error. The web server is running, but the XNAT page cannot be reached.


[2025-06-09 10:01:38] [info] Pausing ProtocolHandler["http-nio-8080"]
[2025-06-09 10:01:38] [info] Stopping service[Catalina]
[2025-06-09 10:01:38] [info] Stopping ProtocolHandler ["http-nio-8080"]
[2025-06-09 10:01:38] [info] Destroying ProtocolHandler ["http-nio-8080"]
[2025-06-09 10:01:38] [warning] Unable to clear soft reference cache in ObjectStreamClass$Caches of web application [xnat-web-1.9.1.2]
[2025-06-09 10:01:38] [warning] java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader 'bootstrap')
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2325)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2300)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1669)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1597)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:463)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5515)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:293)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:826)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1033)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:826)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1033)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:579)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:1050)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.startup.Catalina.stop(Catalina.java:850)
[2025-06-09 10:01:38] [warning]     at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:996)
[2025-06-09 10:01:38] [info] NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[2025-06-09 10:01:38] [info] Server version: Apache Tomcat/9.0.58 (Ubuntu)
[2025-06-09 10:01:38] [info] Server build:        Dec 30 1969 06:13:17 UTC
[2025-06-09 10:01:38] [info] Server version number:      9.0.58.0
[2025-06-09 10:01:38] [info] Operating system name:      Linux
[2025-06-09 10:01:38] [info] OS version:           6.8.0-60-generic
[2025-06-09 10:01:38] [info] Architecture:              amd64
[2025-06-09 10:01:38] [info] Java environment variable:     /usr/lib/jvm/java-11-openjdk-amd64
[2025-06-09 10:01:38] [info] Java Virtual Machine version:    11.0.27+6-post-Ubuntu-0ubuntu122.04
[2025-06-09 10:01:38] [info] JVM vendor:        Ubuntu
[2025-06-09 10:01:38] [info] CATALINA_BASE:     /var/lib/tomcat9
[2025-06-09 10:01:38] [info] CATALINA_HOME:     /usr/share/tomcat9
[2025-06-09 10:01:38] [info] Command line arguments:       --add-opens=java.base/java.lang=ALL-UNNAMED
[2025-06-09 10:01:38] [info] Command line arguments:       --add-opens=java.base/java.io=ALL-UNNAMED
[2025-06-09 10:01:38] [info] Command line arguments:       --add-opens=java.base/java.util=ALL-UNNAMED
[2025-06-09 10:01:38] [info] Command line arguments:       --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
[2025-06-09 10:01:38] [info] Command line arguments:       --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[2025-06-09 10:01:38] [info] Command line arguments:       -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
[2025-06-09 10:01:38] [info] Command line arguments:       -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2025-06-09 10:01:38] [info] Command line arguments:       -Djava.awt.headless=true
[2025-06-09 10:01:38] [info] Command line arguments:       -Djdk.tls.ephemeralDHKeySize=2048
[2025-06-09 10:01:38] [info] Command line arguments:       -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
[2025-06-09 10:01:38] [info] Command line arguments:       -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
[2025-06-09 10:01:38] [info] Command line arguments:       -Dxnat.home=/opt/xnat
[2025-06-09 10:01:38] [info] Command line arguments:       -Dignore.endorsed.dirs=
[2025-06-09 10:01:38] [info] Command line arguments:       -Dcatalina.base=/var/lib/tomcat9
[2025-06-09 10:01:38] [info] Command line arguments:       -Dcatalina.home=/usr/share/tomcat9
[2025-06-09 10:01:38] [info] Command line arguments:       -Djava.io.tmpdir=/tmp
[2025-06-09 10:01:38] [info] Using APR version [1.7.0] to load the native Apache Tomcat libraries [1.2.31].
[2025-06-09 10:01:38] [info] APR features: IPv6[true], sendfile[true], accept filters[false], random[true], UDS [true].
[2025-06-09 10:01:38] [info] APR/OpenSSL configuration: useAprConnector[false], useOpenSSL[true]
[2025-06-09 10:01:38] [info] OpenSSL initialized successfully [OpenSSL 3.0.2 15 Mar 2022]
[2025-06-09 10:01:39] [info] Initializing protocol handler ["http-nio-8080"]
[2025-06-09 10:01:39] [info] Server initialized in [209] ms
[2025-06-09 10:01:39] [info] Starting service[Catalina]
[2025-06-09 10:01:39] [info] Starting Servlet engine: [Apache Tomcat/9.0.58 (Ubuntu)]
[2025-06-09 10:01:39] [info] Deploying web application archive [/var/lib/tomcat9/webapps/xnat-web-1.9.1.2.war]
[2025-06-09 10:01:42] [info] At least one JAR has been scanned for TLDs but not included. Enable debug logging for the full list of scanned JARs that do not contain TLDs. Skipping unnecessary JARs during scanning can reduce startup time and JSP compilation time.
[2025-06-09 10:01:42] [crit] Error occurred during the deployment of web application archive [/var/lib/tomcat9/webapps/xnat-web-1.9.1.2.war]
[2025-06-09 10:01:42] [crit] java.lang.IllegalStateException: Error occurred while starting child
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
[2025-06-09 10:01:42] [crit]     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[2025-06-09 10:01:42] [crit]     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2025-06-09 10:01:42] [crit]     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2025-06-09 10:01:42] [crit]     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
[2025-06-09 10:01:42] [crit]     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2025-06-09 10:01:42] [crit]     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2025-06-09 10:01:42] [crit]     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
[2025-06-09 10:01:42] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2025-06-09 10:01:42] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2025-06-09 10:01:42] [crit]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2025-06-09 10:01:42] [crit]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:480)
[2025-06-09 10:01:42] [crit] Caused by: org.apache.catalina.LifecycleException: Unable to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/xnat-web-1.9.1.2]]
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
[2025-06-09 10:01:42] [crit]     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
[2025-06-09 10:01:42] [crit]     ... 

Bin Zhang

unread,
Jun 8, 2025, 11:59:03 PMJun 8
to xnat_di...@googlegroups.com
A couple of things you can check:

1. Java version. Using Java8
[2025-06-09 10:01:38] [info] Java environment variable:     /usr/lib/jvm/java-11-openjdk-amd64
[2025-06-09 10:01:38] [info] Java Virtual Machine version:    11.0.27+6-post-Ubuntu-0ubuntu122.04

2. Check which user you are using to run Tomcat.
3. Make sure the user is the owner of the folders:

[2025-06-09 10:01:42] [crit] Error occurred during the deployment of web application archive [/var/lib/tomcat9/webapps/xnat-web-1.9.1.2.war]
[2025-06-09 10:01:38] [info] Command line arguments:       -Dxnat.home=/opt/xnat

4. Check the properties in the XNAT properties file. The properties file should be in /opt/xnat/config/
5. Make sure the PostgreSQL server is running, the database has been created, and check the database configuration in the XNAT properties file..
6. Make sure the ActiveMQ server is running. and check the configuration in the XNAT properties file.

Best Regards,

Bin



--

Bin Zhang 

Software Engineer
Consulting, Support ,and XNAT Development
"Making XNAT Work for you!"

Bin Zhang

unread,
Jun 9, 2025, 12:12:39 AMJun 9
to xnat_di...@googlegroups.com
A few more things:

1. Rename the file to ROOT.war
[2025-06-09 10:01:42] [crit] Error occurred during the deployment of web application archive [/var/lib/tomcat9/webapps/xnat-web-1.9.1.2.war]

2. You need to create a few folders like prearchive, archive, cache, build,.plugins, ..etc, in /opt/xnat/ folder. Make sure the Tomcat user is the owner of these folders as well. 
Please check the documents for more details.

Fan Chao

unread,
Jun 9, 2025, 9:25:16 PMJun 9
to xnat_discussion

Thank you for your response. I have confirmed that I have resolved the issues you mentioned, and I left the program running overnight. However, it seems that it still hasn't started up, as the interface keeps returning the message:

"XNAT has encountered an error with your request:
If this error continues to occur, please contact your system administrator with information about how to recreate the problem."

Bin Zhang

unread,
Jun 10, 2025, 3:32:06 PMJun 10
to xnat_di...@googlegroups.com
Check the logs in /opt/xnat/logs folder 

Bin Zhang 

Software Engineer
Consulting, Support ,and XNAT Development
"Making XNAT Work for you!"

Reply all
Reply to author
Forward
0 new messages