Poll

Which programming language do you prefer?
 
Feed Your Need!

About Me

My name is Romeo Dumitrescu

I am a Software Developer for Macadamian Technologies

Downloads

No Documents

Who's Online

We have 5 guests online
VMware Server 503 Service unavailable PDF Print E-mail
User Rating: / 4
PoorBest 
Other - Work Related
Written by Romeo Dumitrescu
  
Wednesday, 25 March 2009 07:25

I often get this error while running VMware server on Vista. Usually this is due to Tomcat encountering an error while starting. You can see the error in catalina.<date>.log file in C:\ProgramData\VMware\VMware Server\tomcat-logs.
The most common problem is Tomcat not being able to bind to a port. The bind exception looks like this:

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:642)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
    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)

Port 8005 is used by many server applications and it’s the usual cause for the bind exception. This can be easily fixed by editing the Tomcat server config file.

The config file is located at C:\Program Files\VMware\VMware Server\tomcat\conf\server.xml

Just look for a block like:

<!-- Note:  A "Server" is not itself a "Container", so you may not
  define subcomponents such as "Valves" at this level. 
  Documentation at /docs/config/server.html  -->
 <Server port="8005" shutdown="SHUTDOWN"> 
<!--APR library loader. Documentation at /docs/apr.html –>

Just change the port to something else. I usually use 8025 (no particular reason, but that port is not widely used by applications).

After this change, you have to restart the tomcat service (Run->"C:\Program Files\VMware\VMware Server\tomcat\bin\tomcat6w.exe" //ES//VMwareServerWebAccess).

The same goes for the other ports.

Comments
Add New Search
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch::(:shock::X:side:
:):P:unsure::woohoo::huh::whistle:;):s:!::?::idea::arrow:
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."