Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tomcat shutdown and can't selete folder

Status
Not open for further replies.

bluepixie

Programmer
Jul 31, 2003
34
US
Hi,
I was wondering if when, using the start menu icon, I really stop Tomcat. After doing so, I still see the process is running in task manager.

Also, I created some app folders in the webapps directory. (I am using Tomcat 4.1). I can't seem to delete them. I get the message: "Cannot delete app: Access is denied. The source file may be in use." Even when I shut everything down I get this. I am wondering if this is related to the question above?
thanks!!!
 
I've always had mixed joy using the "Start" button menu icons for starting/stopping tomcat.

Preferably, go to TOMCAT_HOME\bin (in a dos console) and control tomcat by using :

catalina start (or catalina run)

catalina stop

Or at the TOMCAT_HOME\bin directory to your PATH variable, so you can run those commands from anywhere ...
 
Hi sedj,
This is what I get:

C:\Tomcat_4_1\bin>catalina stop
Using CATALINA_BASE: c:\Tomcat_4_1
Using CATALINA_HOME: c:\Tomcat_4_1
Using CATALINA_TMPDIR: c:\Tomcat_4_1\temp
Using JAVA_HOME: C:\j2sdk1.4.1_04
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:434)
at java.net.Socket.connect(Socket.java:384)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

C:\Tomcat_4_1\bin>
-----------
I turned off my firewall (which allows port 80) to see if that had something to do with it but I got the same result. And tomcat.exe process is still running.
thanks!
 
Hmmm - this says that catalina is not running on the given port. I would reboot, and then try a few command-line start/stop cycles.
 
yeah, I had some struts files in it's own app folder off webapps but then I tried to integrate it with my website (in root which was up and accessible on port 80) but alas, after I moved all of my struts files into root, my whole site is down. I will check into rebooting again then the &quot;dos&quot; shutdown when I get home today! Is there a way to prevent tomcat from starting on boot?
Thanks!
 
I was able to find the tomcat service and stop/start it there to delete the files that I didn't want. Now I still can't get any page (even after I start tomcat). I double checked my code but I am still getting the error with jsp page through in the IE browser.

HTTP Status 404 - /

--------------------------------------------------------------------------------

type Status report

message /

description The requested resource (/) is not available
 
First : Is your tomcat configured to run on port 80 in the TOMCAT_HOME/conf/server.xml file (not 8080)

Second : Accessing means you are accessing the default file of the ROOT webapp. The file that is mapped to this may not exist, or may br mapped incorrectly. Check the web.xml file in webapp/ROOT/WEB-INF and is empty, check the one in conf/web.xml.

Also try accessing a specific resource such as 0 not just a balcnk URL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top