• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

how to start and stop tomcat 5.5 server

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed the tomcat 5.5x version. but I could not find the startup and shutdown files in the bin folder. can any one help me with starting and stopping server.

Thanks,
Vijay.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same problem with version 6.0 of Tomcat. I used the Windows Service Installer first and there were no scripts to start or stop the server. Finally I downloaded the zip archive of the same version from the Tomcat site. The archive contains the scripts in the bin folder. I just copied the scripts into the existing folder of the installation of Tomcat and now everything works fine.

Greeting,
Steven

 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Steven, I doubt that you can download anything from Apache Tomcat web site. The site contains only download link which points distributions mirror. You have to verify the integrity of the downloaded files, because the mirror you are used for download could miss a few files or contain corrupted ones.
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

vijay kolli wrote:I have installed the tomcat 5.5x version. but I could not find the startup and shutdown files in the bin folder. can any one help me with starting and stopping server.



Where did you get it?
 
vijay kolli
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have downloaded the Windows Service Installer from one of the mirrors in http://tomcat.apache.org/download-55.cgi and installed it.
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you have a chance to check download

You must verify the integrity of the downloaded files. We provide PGP signatures for every release file. This signature should be matched against the KEYS file which contains the PGP keys of Tomcat's Release Managers. We also provide an MD5 checksum for every release file. After you download the file, you should calculate a checksum for your download, and make sure it is the same as our

 
vijay kolli
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would appreciate if could let me know how to do this
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vijay,

if you are installing from a .zip file
then-->
have you defined your classpath and JAVA_HOME environmental variables??
if you have not then define them and then try to start it again
if you have defined already then

open command prompt (CMD) then navigate to tomcat bin folder
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>cd "Program Files"

C:\Program Files>cd "Apache Software Foundation"

C:\Program Files\Apache Software Foundation>cd "Apache Tomcat 6.0.18"

C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18>cd bin

C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\bin>

there is a file start up.BAT try to run the file and then please paste the output of command prompt here



but if you are installing from exe file then please re-install it with different port and try to run it in browser and paste the output of browser here



 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you download the .zip version of Tomcat (rather than the .exe), it includes scripts to run Tomcat from the command line. You can also use the "net start" and "net stop" commands to control services from the command line.
 
vijay kolli
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I uninstalled tomcat 5.5 server and I tried to install tomcat 6.0.20 but even here I am having same problem. I am not finding startup and shutdown bat files in the bin folder.
I have installed it from "Windows Service Installer" under the "Binary Distributions" "Core" section using port 8080.

Do I need to anything for creating startup and shutdown bat files or will they be created automatically after the installation.

this is the md5 checksum given beside the "Windows Service Installer" link.
d11fc287c350335dc8a46fc1e391e80c
*apache-tomcat-6.0.20.exe

Thanks,
Vijay.
 
Steven Gartner
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Samuel Behrman wrote:If you download the .zip version of Tomcat (rather than the .exe), it includes scripts to run Tomcat from the command line. You can also use the "net start" and "net stop" commands to control services from the command line.



I can only repeat myself and it´s the same that Samuel posted.

@Misha Ver: You´re right that I didn´t download it directly from the Tomcat site , BUT the main message of my post was, that besides the download of the exe-file he has to download the zip-archive of this Tomcat version as well and use the scripts inside.

So:

1. Download and install the exe-file.

2. Download and unzip the archive of the same Tomcat version.

3. Just copy the missing scripts from the bin folder of the zip archive into the bin folder of the existing installation of Tomcat.

4. Start and stop the Server like Samuel posted.

5. Be Happy!
 
Rituraj Jain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey vijay,
i am asuming that you ae using tomcat 6 now

you have installed tomcat from .exe file. nothing to worry about (don't go for zip file for now)

just go to the most recent log file under log folder "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\logs" there you will find many log files but find the files with most recent data(todays date if you have tried start it today) you will find around 5 files there
open file with name similar to catalina.2009-10-19.log and see the Error Log and if there is any line like
"java.net.BindException: Address already in use: JVM_Bind<null>:8080" then you have to change you port.

if you cann't at all understand the log then please post (copy paste file this forum) it here



 
Rituraj Jain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
one more thing
if you install tomcat by any .exe file then there will bo no .bat files and there is nothing to worry about for now
 
vijay kolli
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rituraj,

this is the catalina.2009-10-19.log file.

Oct 19, 2009 12:57:51 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Oct 19, 2009 12:57:51 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Oct 19, 2009 12:57:51 AM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Oct 19, 2009 12:57:51 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Oct 19, 2009 12:57:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 993 ms
Oct 19, 2009 12:57:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 19, 2009 12:57:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Oct 19, 2009 12:57:52 AM org.apache.coyote.http11.Http11AprProtocol start
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:730)
at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
at org.apache.catalina.connector.Connector.start(Connector.java:1131)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Oct 19, 2009 12:57:52 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
at org.apache.catalina.connector.Connector.start(Connector.java:1138)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Oct 19, 2009 12:57:52 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 575 ms
Oct 19, 2009 12:57:52 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:647)
at org.apache.catalina.startup.Catalina.start(Catalina.java:607)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Oct 19, 2009 12:57:52 AM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Oct 19, 2009 12:57:53 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Oct 19, 2009 12:57:53 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:171)
at org.apache.catalina.connector.Connector.stop(Connector.java:1179)
at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:633)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:676)
Oct 19, 2009 12:57:53 AM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Oct 19, 2009 12:57:53 AM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started
Oct 19, 2009 10:30:41 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Oct 19, 2009 10:30:41 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Oct 19, 2009 10:30:42 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 19, 2009 10:30:42 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Oct 19, 2009 10:30:42 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2290 ms
Oct 19, 2009 10:30:42 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 19, 2009 10:30:42 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Oct 19, 2009 10:30:44 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 19, 2009 10:30:44 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Oct 19, 2009 10:30:44 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1838 ms
 
Rituraj Jain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you can clearly see your log file its written that java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.

if i would be you facing this very problem

i would uninstall tomcat and install it on another port say 7788. or if i know about server.xml file then i would have changed the current port no 7788

look buddy this the best possible guess i can make by reading catelina log file..

if it still doesn't solves your problem then either wait for someone with great knowledge of tomcat
or go to Apache Tomcat site.
still better is to google this expression "java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address Protocol/network address/port) is normally permitted"

by last two means you will surely learn a lot about tomcat......
 
Rituraj Jain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I too face the same problem . i don't fine start.bat and stop.bat file in bin folder of tomcat 6.0.20
after searching a lot i find a link.

http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Supported%20Manager%20Commands


Start an stop are now managed by manager follow the introduction in link all of you will get your answer

There is manager.xml copy paste the below code


<Context path="/manager" docBase="${catalina.home}/webapps/manager"
privileged="true" antiResourceLocking="false" antiJARLocking="false">

now write
http://localhost/manager/html to web address it will ask for user name and password
that is USER NAME : admin
Password :
this i get from
tomcat-users.xml in conf folder

here you now see all your application you can start and stop any of them



 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Have no clue what is wrong with starting my tomcat server 5.5.31. Had a tomcat version 5.5.26 working all fine. No idea what network setting has changed and it fails to start complaining

SEVERE: Error initializing endpoint
java.lang.Exception: Socket listen failed: [730022] An invalid argument was supp
lied.


Down the stack trace continues as ...

SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket
address (protocol/network address/port) is normally permitted.


Machine settings and environment :

OS - Windows XP 32-bit
Environment Variables - Tried with CATALINA_HOME set to tomcat installation directory and tried without setting CATALINA_HOME

Did following :
1. Tried changing the port number to 8090, 8010... but to no avail.
2. Downloaded 5.5.31 and still complains the same.


Awaiting help ASAP !!!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That exception would indicate that Something on your system is already using the ports Tomcat is trying to use.

Note that Tomcat needs to listen at two ports, one for control and one for http connections.

Search your server.xml for other port= attributes.

Bill

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this happened to me and it was because i had started my tomcat server to test it standalone and then i received this error when i tried to launch a page in eclipse. possibly something you had launched it in the background and now when you try to relaunch it this error happens?
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look guys this post reminds me the days when I first started working with Tomcat server and could not start the server manually. But goodness gracious I configured the Tomcat 5.5 server with Eclipse and it was easy starting and shutting down the server form eclipse.

But then I downloaded Tomcat 6 server and installed it on my Win XP computer by using the .exe file available at the tomcat.apache.org site (32-bit/64-bit Windows Service Installer (pgp, md5)).
While installing I set the port number 1616 rather than the default 8080 as I was using 8080 for another server. That's it... there was no problem running the tomcat server from there on.
In the build folder of the tomcat look for the "commons daemon service manager" icon named tomcat6w. Double click on it ... you will get Apache Tomcat 6 properties window where you will see the Service status if it is stopped the click on the start button. Voila... your Tomcat 6 server starts running. If the status is 'started' stop it and start it again.

The same holds good for Tomcat 5.5 server as well.

Try once I am sure it will help.
 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic