[Bug 1053090] [NEW] tomcat7 cannot find server.xml in /usr/share/tomcat7/conf

Guus Bonnema gbonnema at xs4all.nl
Wed Sep 19 20:17:13 UTC 2012


Public bug reported:

Right after installing tomcat7, I added a user to /var/lib/tomcat7/conf
/tomcat-users.xml, when i wanted to restart the tomcat server.

So I went to /usr/share/tomcat7/bin where startup.sh and shutdown.sh are
located and started with ./shutdown.sh. This returned the following
errors messages:

root at mahatma:/usr/share/tomcat7/bin# ./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
Sep 19, 2012 9:07:52 PM 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:138)
	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:601)
	at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:452)

The conf directory appears to be located in /etc/tomcat7 and in
/var/lib/tomcat7.  Don't know which to use.

Except for tomcat7 I also installed

tomcat7
tomcat7-common
tomcat7-admin
tomcat7-examples
tomcat7-docs

gbonnema at mahatma:~$ uname -a
Linux mahatma 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

** Affects: tomcat7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat7 in Ubuntu.
https://bugs.launchpad.net/bugs/1053090

Title:
  tomcat7 cannot find server.xml in /usr/share/tomcat7/conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1053090/+subscriptions



More information about the Ubuntu-server-bugs mailing list