cancel
Showing results for 
Search instead for 
Did you mean: 

Error starting virtual tomcat server

ajay7
Champ in-the-making
Champ in-the-making
Hi All,


I am getting the below exception when i start the virtual-tomcat server present in the alfresco-jboss server?
can anybody help?
pasting the stack trace below:-




Jun 30, 2008 12:02:41 PM org.apache.catalina.core.AprLifecycleListener lifecycle
Event
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Program Files\Java
\jdk1.5.0_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0
_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_
jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program
Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0
_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_
jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program
Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0
_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_
jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program
Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0
_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_
jboss\bin;C:\Program Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program
Files\Java\jdk1.5.0_08/bin;E:\Alfresco_jboss\bin;C:\Program Files\PHP\;C:\Progr
am Files\Java\jdk1.5.0_08\bin;C:\Program Files\Java\jdk1.5.0_11;E:\oracle\ora92\
bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MySQL\M
ySQL Server 5.0\bin;C:\Program Files\Darwin Streaming Server;D:\tools\apache-ant
-1.7.0\bin;D:\tools\apache-maven-2.0.8\bin;E:\alfresco_source\alfresco-community
-sdk-2.9.0B\bin;
Jun 30, 2008 12:02:41 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8180
        at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:297)
        at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.j
ava:138)
        at org.apache.catalina.connector.Connector.initialize(Connector.java:101
6)
        at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:580)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:791)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
        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:585)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Jun 30, 2008 12:02:41 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.net.BindExcept
ion: Address already in use: JVM_Bind:8180
        at org.apache.catalina.connector.Connector.initialize(Connector.java:101
😎
        at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:580)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:791)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
        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:585)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Jun 30, 2008 12:02:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 968 ms
Jun 30, 2008 12:02:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2008 12:02:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Jun 30, 2008 12:02:41 PM org.springframework.beans.factory.xml.XmlBeanDefinition
Reader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:E:/Alfresco_jboss/virtual-tomc
at/conf/alfresco-virtserver-context.xml]
Jun 30, 2008 12:02:41 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Jun 30, 2008 12:02:41 PM org.springframework.context.support.AbstractRefreshable
ApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.
FileSystemXmlApplicationContext;hashCode=25200832]: org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory defining beans [virtserver-properties,a
uthenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemote
Transport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServer
MBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegi
stry,cacheControlInfo]; root of BeanFactory hierarchy
Jun 30, 2008 12:02:41 PM org.springframework.context.support.AbstractApplication
Context refresh
INFO: 15 beans defined in application context [org.springframework.context.suppo
rt.FileSystemXmlApplicationContext;hashCode=25200832]
Jun 30, 2008 12:02:41 PM org.springframework.core.io.support.PropertiesLoaderSup
port loadProperties
INFO: Loading properties file from URL [file:E:/Alfresco_jboss/virtual-tomcat/co
nf/alfresco-shared.properties]
Jun 30, 2008 12:02:41 PM org.springframework.core.io.support.PropertiesLoaderSup
port loadProperties
INFO: Loading properties file from URL [file:E:/Alfresco_jboss/virtual-tomcat/co
nf/alfresco-virtserver.properties]
Jun 30, 2008 12:02:41 PM org.springframework.context.support.AbstractApplication
Context initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [o
rg.springframework.context.support.DelegatingMessageSource@13bd574]
Jun 30, 2008 12:02:41 PM org.springframework.context.support.AbstractApplication
Context initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
lticaster': using default [org.springframework.context.event.SimpleApplicationEv
entMulticaster@6f50a8]
Jun 30, 2008 12:02:41 PM org.springframework.beans.factory.support.DefaultListab
leBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
.support.DefaultListableBeanFactory defining beans [virtserver-properties,authen
ticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTrans
port,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBean
Server,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,
cacheControlInfo]; root of BeanFactory hierarchy]
Jun 30, 2008 12:02:41 PM org.springframework.remoting.rmi.RmiClientInterceptor p
repare
INFO: RMI stub [rmi://localhost:1313/authentication] is an RMI invoker
Jun 30, 2008 12:02:41 PM org.springframework.aop.framework.DefaultAopProxyFactor
y <clinit>
INFO: CGLIB2 not available: proxyTargetClass feature disabled
Jun 30, 2008 12:02:41 PM org.springframework.remoting.rmi.RmiClientInterceptor p
repare
INFO: RMI stub [rmi://localhost:1313/avm] is an RMI invoker
Jun 30, 2008 12:02:42 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean
getRegistry
INFO: Looking for RMI registry at port '50501'
Jun 30, 2008 12:02:42 PM org.springframework.beans.factory.support.AbstractBeanF
actory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.suppor
t.DefaultListableBeanFactory defining beans [virtserver-properties,authenticatio
nService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,av
mRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,
virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheCo
ntrolInfo]; root of BeanFactory hierarchy}
Jun 30, 2008 12:02:42 PM org.alfresco.jndi.AVMFileDirContext InitAVMRemote
WARNING: Retrying JNDI connection….
Jun 30, 2008 12:02:47 PM org.springframework.beans.factory.xml.XmlBeanDefinition
Reader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:E:/Alfresco_jboss/virtual-tomc
at/conf/alfresco-virtserver-context.xml]
Jun 30, 2008 12:02:47 PM org.springframework.context.support.AbstractRefreshable
ApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.
FileSystemXmlApplicationContext;hashCode=24417480]: org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory defining beans [virtserver-properties,a
uthenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemote
Transport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServer
MBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegi
stry,cacheControlInfo]; root of BeanFactory hierarchy
Jun 30, 2008 12:02:47 PM org.springframework.context.support.AbstractApplication
Context refresh
INFO: 15 beans defined in application context [org.springframework.context.suppo
rt.FileSystemXmlApplicationContext;hashCode=24417480]
Jun 30, 2008 12:02:47 PM org.springframework.core.io.support.PropertiesLoaderSup
port loadProperties
INFO: Loading properties file from URL [file:E:/Alfresco_jboss/virtual-tomcat/co
nf/alfresco-shared.properties]
Jun 30, 2008 12:02:47 PM org.springframework.core.io.support.PropertiesLoaderSup
port loadProperties
INFO: Loading properties file from URL [file:E:/Alfresco_jboss/virtual-tomcat/co
nf/alfresco-virtserver.properties]
Jun 30, 2008 12:02:47 PM org.springframework.context.support.AbstractApplication
Context initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [o
rg.springframework.context.support.DelegatingMessageSource@5d9084]
Jun 30, 2008 12:02:47 PM org.springframework.context.support.AbstractApplication
Context initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
lticaster': using default [org.springframework.context.event.SimpleApplicationEv
entMulticaster@bad8a8]
Jun 30, 2008 12:02:47 PM org.springframework.beans.factory.support.DefaultListab
leBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
.support.DefaultListableBeanFactory defining beans [virtserver-properties,authen
ticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTrans
port,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBean
Server,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,
cacheControlInfo]; root of BeanFactory hierarchy]
Jun 30, 2008 12:02:47 PM org.springframework.remoting.rmi.RmiClientInterceptor p
repare
INFO: RMI stub [rmi://localhost:1313/authentication] is an RMI invoker
Jun 30, 2008 12:02:47 PM org.springframework.remoting.rmi.RmiClientInterceptor p
repare
INFO: RMI stub [rmi://localhost:1313/avm] is an RMI invoker
Jun 30, 2008 12:02:47 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean
getRegistry
INFO: Looking for RMI registry at port '50501'
Jun 30, 2008 12:02:48 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean
getRegistry
WARNING: Could not detect RMI registry - creating new one
Jun 30, 2008 12:02:48 PM org.springframework.jmx.support.ConnectorServerFactoryB
ean afterPropertiesSet
INFO: JMX connector server started: javax.management.remote.rmi.RMIConnectorServ
er@1af33d6
java.lang.reflect.InvocationTargetException
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.IncompatibleClassChangeError
        at org.alfresco.jndi.AVMFileDirContext.InitAVMRemote(AVMFileDirContext.j
ava:277)
        at org.alfresco.catalina.host.AVMHost.init(AVMHost.java:319)
        at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:494)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        … 6 more
1 REPLY 1

pmonks
Star Contributor
Star Contributor
The error message:

java.net.BindException: Address already in use: JVM_Bind:8180
is the giveaway.  It's telling you that you already have another process listening on port 8180 (which is, by default, the port that the virtualisation server attempts to listen on).

Because you're on Windows, trying to find out which process that is is a little tricky.  I personally use a freeware tool called "CurrPorts" (http://www.nirsoft.net/utils/cports.html) to troubleshoot this kind of thing on Windows.

Cheers,
Peter