shutting down tomcat in xnat's desktop virtual machine

45 views
Skip to first unread message

Antonio Rueda

unread,
Apr 10, 2014, 11:42:43 AM4/10/14
to xnat_di...@googlegroups.com
Hi to all.
How do I shut down Tocam in XNAT's Desktop VM? I get the following when attempting to use ./shutdown.sh

xnat@xnatdev:/usr/share/tomcat7/bin$ sudo ./shutdown.sh
Using CATALINA_BASE:   /usr/share/tomcat7
Using CATALINA_HOME:   /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Apr 10, 2014 8:39:39 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.io.FileNotFoundException: /usr/share/tomcat7/conf/server.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:454)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:452)

Herrick, Rick

unread,
Apr 10, 2014, 7:24:54 PM4/10/14
to xnat_di...@googlegroups.com
This is probably a permissions issue, but it's hard to tell. You're sudo'ing but the process owner is actually the xnat user (root should override the xnat user, but something else may be going on underneath).

I'd recommend using the service command to shut Tomcat down instead of any of the Tomcat scripts directly. This would look like:

sudo service tomcat7 stop

The service script goes through all of the settings for the tomcat7 service and should get the ownership and permissions right through the process.

If that's still giving you a problem, verify that the file is really there (if it's not, you have a bigger problem, since something's fouled up your VM image somehow). If it is really there, check the permissions to make sure it can be written properly by the xnat user.

-- 

Rick Herrick

Sr. Programmer/Analyst

Neuroinformatics Research Group

Washington University School of Medicine

(314) 827-4250


--
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 post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.



The material in this message is private and may contain Protected Healthcare Information (PHI). 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.

Antonio Rueda

unread,
Apr 15, 2014, 11:20:50 PM4/15/14
to xnat_di...@googlegroups.com
The service command worked fine, thanks Rick
Reply all
Reply to author
Forward
0 new messages