Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 96645  / 3 Years ago, fri, august 20, 2021, 7:20:49

I have installed apache tomcat7 using the command apt-get.
Now whenever I start my system, tomcat is running. I want to stop the tomcat so that I can start it within eclipse.



I tried stoping it with shutdown.sh command and I am getting the below error :



admin@admin-eMachines-E727:/usr/share/tomcat7/bin$ sudo /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

Jun 02, 2014 9:37:59 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]

Jun 02, 2014 9:37:59 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]

Jun 02, 2014 9:38:00 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]

Jun 02, 2014 9:38:00 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]

Jun 02, 2014 9:38:00 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]

Jun 02, 2014 9:38:00 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]

Jun 02, 2014 9:38:00 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:468)
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:458)


Please suggest me a solution for this issue.
Thanks in advance.


More From » tomcat7

 Answers
0

Generally any service in Ubuntu can be managed by



sudo service <service_name> <argument>


Here service_name stands for name of the service, in your case it is tomcat7.



Argument stands for type of the action like start,stop,restart,status, in your case it is stop.



so finally you can stop tomcat7 with this below command.



sudo service tomcat7 stop

[#24857] Sunday, August 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kneducator

Total Points: 226
Total Questions: 111
Total Answers: 108

Location: Mexico
Member since Sun, Jul 25, 2021
3 Years ago
kneducator questions
Tue, Dec 6, 22, 09:22, 1 Year ago
Sun, Apr 30, 23, 23:26, 1 Year ago
Tue, Jun 8, 21, 01:25, 3 Years ago
Sun, Mar 12, 23, 10:51, 1 Year ago
;