The discussion here might help fix your issue: https://groups.google.com/d/msg/xnat_discussion/YIrWNXcWf08/bhGhdQgiBwAJ
Hope that helps!
-Mike
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.
CATALINA_OPTS="$CATALINA_OPTS -Dxnat.home=/data/xnat/home"
Kindly advise if this is correct.
Best regards,
Faidon
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_di...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/705b810f-6d49-4368-8b3b-6fa9d8134998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, that should be what you want.
-Mike
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/1befd141-ad1a-40ab-821f-bcc52565a26f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is there any reason you can’t install using yum? We can’t debug a configuration based on someone’s old post, especially since tomcat.conf isn’t referenced in either Tomcat itself (i.e. no references in any scripts) or on the old post you referenced, so I’m not sure how that would ever get pulled in. If you install with a standard package manager, it’s much easier to figure out what’s going on. In this case, clearly something’s messed up in the service configuration or script somehow.
That said, I downloaded and extracted Tomcat 7, added setenv.sh to the bin folder, and just added this to it:
#!/bin/sh
CATALINA_OPTS="${CATALINA_OPTS} -Dxnat.home=/data/xnat/home"
That launched Tomcat with xnat.home set properly:
75316 s001 S 0:03.05 /home/user/.sdkman/candidates/java/current/bin/java -Djava.util.logging.config.file=/home/user/Downloads/apache-tomcat-7.0.94/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Dxnat.home=/data/xnat/home -Dignore.endorsed.dirs= -classpath /home/user/Downloads/apache-tomcat-7.0.94/bin/bootstrap.jar:/home/user/Downloads/apache-tomcat-7.0.94/bin/tomcat-juli.jar -Dcatalina.base=/home/user/Downloads/apache-tomcat-7.0.94 -Dcatalina.home=/home/user/Downloads/apache-tomcat-7.0.94 -Djava.io.tmpdir=/home/user/Downloads/apache-tomcat-7.0.94/temp org.apache.catalina.startup.Bootstrap start
You can try to revert to that or try installing Tomcat with yum, but we can’t figure out what’s going on given that your setup isn’t standard.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/ee3dcc45-30fc-45f8-8205-a0fff89e848f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/FFD6E388-000F-4272-BB16-37CE8A9DB717%40wustl.edu.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/ee3dcc45-30fc-45f8-8205-a0fff89e848f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
INFO: Starting service Catalina
May 03, 2019 2:38:52 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.76
May 03, 2019 2:38:52 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat/webapps/ROOT.war
May 03, 2019 2:39:11 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
May 03, 2019 2:39:11 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.nrg.framework.exceptions.NrgServiceRuntimeException: Error [Unknown]: Error [Unknown]: An error occurred trying to create the temp folder xnat_88631101668351 in the containing folder /data/xnat/home
at org.nrg.xnat.initialization.XnatWebAppInitializer.getMultipartConfigElement(XnatWebAppInitializer.java:120)
at org.nrg.xnat.initialization.XnatWebAppInitializer.customizeRegistration(XnatWebAppInitializer.java:99)
at org.springframework.web.servlet.support.AbstractDispatcherServletInitializer.registerDispatcherServlet(AbstractDispatcherServletInitializer.java:113)
at org.springframework.web.servlet.support.AbstractDispatcherServletInitializer.onStartup(AbstractDispatcherServletInitializer.java:71)
at org.nrg.xnat.initialization.XnatWebAppInitializer.onStartup(XnatWebAppInitializer.java:59)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 10 more
May 03, 2019 2:39:11 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive /var/lib/tomcat/webapps/ROOT.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
May 03, 2019 2:39:11 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/tomcat/webapps/ROOT.war has finished in 19,606 ms
May 03, 2019 2:39:11 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
May 03, 2019 2:39:11 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 03, 2019 2:39:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19664 ms