OHDSI Home | Forums | Wiki | Github

Atlas is not working

Hi all,

I need help…Our Atlas has stopped working. Tomcat stops working as I open the manager url. We didn’t change any settings. It just the server was restarted and Atlas stopped working.

This is error from the tom cat log file
29-Jun-2023 12:44:07.019 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:102)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:513)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:180)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:414)
at org.apache.catalina.startup.Catalina.await(Catalina.java:776)
at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
29-Jun-2023 12:44:07.043 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
29-Jun-2023 12:44:07.177 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
29-Jun-2023 12:44:07.246 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [WebAPI] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
29-Jun-2023 12:44:07.246 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [WebAPI] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
29-Jun-2023 12:44:07.246 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [WebAPI] registered the JDBC driver [com.amazon.redshift.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
29-Jun-2023 12:44:07.247 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [WebAPI] appears to have started a thread named [AsyncAppender-Dispatcher-Thread-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
org.apache.log4j.AsyncAppender$Dispatcher.run(AsyncAppender.java:548)
java.lang.Thread.run(Thread.java:748)
29-Jun-2023 12:44:07.248 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [WebAPI] appears to have started a thread named [taskExecutor-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
java.net.SocketInputStream.read(SocketInputStream.java:171)
java.net.SocketInputStream.read(SocketInputStream.java:141)
org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:161)
org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:128)
org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:113)
org.postgresql.core.VisibleBufferedInputStream.read(VisibleBufferedInputStream.java:73)
org.postgresql.core.PGStream.receiveChar(PGStream.java:441)
org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:505)
org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:149)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:213)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:51)
org.postgresql.jdbc.PgConnection.(PgConnection.java:225)
org.postgresql.Driver.makeConnection(Driver.java:465)
org.postgresql.Driver.connect(Driver.java:264)
java.sql.DriverManager.getConnection(DriverManager.java:664)
java.sql.DriverManager.getConnection(DriverManager.java:208)
org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:153)
org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:144)
org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:196)
org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:159)
org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35)
org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:106)
org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:136)
org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getConnectionForTransactionManagement(LogicalConnectionManagedImpl.java:254)
org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.begin(LogicalConnectionManagedImpl.java:262)
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JdbcResourceLocalTransactionCoordinatorImpl.java:236)
org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:86)
org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:189)
org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:380)
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:463)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:277)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy242.add(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
com.sun.proxy.$Proxy242.add(Unknown Source)
org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:144)
org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:392)
org.springframework.batch.core.job.SimpleJob.doExecute(SimpleJob.java:135)
org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)
org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

java.lang.Thread.run(Thread.java:748)
29-Jun-2023 12:44:07.249 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [WebAPI] appears to have started a thread named [taskExecutor-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)

29-Jun-2023 12:44:07.255 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3176772d]) and a value of type [java.util.Stack] (value [[JobExecution: id=511, version=1, startTime=Thu Jun 29 11:43:27 UTC 2023, endTime=null, lastUpdated=Thu Jun 29 11:43:28 UTC 2023, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=511, version=0, Job=[warming AURUM_CDM cache]], jobParameters=[{jobName=warming AURUM_CDM cache, time=1688039005439, jobAuthor=anonymous}]]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.256 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3176772d]) and a value of type [java.util.Stack] (value [[JobExecution: id=512, version=1, startTime=Thu Jun 29 11:43:31 UTC 2023, endTime=null, lastUpdated=Thu Jun 29 11:43:32 UTC 2023, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=512, version=0, Job=[warming AURUM_CDM_50Practices cache]], jobParameters=[{jobName=warming AURUM_CDM_50Practices cache, time=1688039009395, jobAuthor=anonymous}]]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.256 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3176772d]) and a value of type [java.util.Stack] (value [[JobExecution: id=513, version=1, startTime=Thu Jun 29 11:43:36 UTC 2023, endTime=null, lastUpdated=Thu Jun 29 11:43:38 UTC 2023, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=513, version=0, Job=[warming AURUM_CDM_MAY_2022 cache]], jobParameters=[{jobName=warming AURUM_CDM_MAY_2022 cache, time=1688039014034, jobAuthor=anonymous}]]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.256 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3176772d]) and a value of type [java.util.Stack] (value [[JobExecution: id=514, version=1, startTime=Thu Jun 29 11:43:41 UTC 2023, endTime=null, lastUpdated=Thu Jun 29 11:43:43 UTC 2023, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=514, version=0, Job=[warming AURUM_HES_APC_CDM cache]], jobParameters=[{jobName=warming AURUM_HES_APC_CDM cache, time=1688039019481, jobAuthor=anonymous}]]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.257 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@295a7adc]) and a value of type [java.util.Stack] (value [[StepExecution: id=1058, version=2, name=warming AURUM_HES_APC_CDM cache dashboard, status=COMPLETED, exitStatus=COMPLETED, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=1, rollbackCount=0, exitDescription=]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.257 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3176772d]) and a value of type [java.util.Stack] (value [[JobExecution: id=515, version=1, startTime=Thu Jun 29 11:43:47 UTC 2023, endTime=null, lastUpdated=Thu Jun 29 11:43:50 UTC 2023, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=515, version=0, Job=[warming AURUM_HES_APC_CDM_MAY_2022 cache]], jobParameters=[{jobName=warming AURUM_HES_APC_CDM_MAY_2022 cache, time=1688039024707, jobAuthor=anonymous}]]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.257 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@295a7adc]) and a value of type [java.util.Stack] (value [[StepExecution: id=1059, version=1, name=warming AURUM_HES_APC_CDM_MAY_2022 cache dashboard, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.257 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current AOP method invocation]) and a value of type [org.springframework.aop.framework.ReflectiveMethodInvocation] (value [ReflectiveMethodInvocation: public abstract java.util.List org.ohdsi.webapi.tag.repository.TagRepository.findConceptSetTagInfo(); target is of class [com.cosium.spring.data.jpa.entity.graph.repository.support.EntityGraphSimpleJpaRepository]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.258 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current AOP method invocation]) and a value of type [org.springframework.aop.framework.ReflectiveMethodInvocation] (value [ReflectiveMethodInvocation: public abstract java.util.List org.ohdsi.webapi.tag.repository.TagRepository.findConceptSetTagInfo(); target is of class [com.cosium.spring.data.jpa.entity.graph.repository.support.EntityGraphSimpleJpaRepository]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.258 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Thread local holding the current repository]) and a value of type [com.cosium.spring.data.jpa.entity.graph.repository.support.RepositoryMethodEntityGraphExtractor.JpaEntityGraphMethodInterceptor] (value [com.cosium.spring.data.jpa.entity.graph.repository.support.RepositoryMethodEntityGraphExtractor$JpaEntityGraphMethodInterceptor@1fbede]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.260 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks Unable to determine string representation of value of type [org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo]
java.lang.NullPointerException
at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.toString(TransactionAspectSupport.java:661)
at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks(WebappClassLoaderBase.java:2088)
at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalsForLeaks(WebappClassLoaderBase.java:2014)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1680)
at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1605)
at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:455)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5505)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
29-Jun-2023 12:44:07.261 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [WebAPI] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Current aspect-driven transaction]) and a value of type [org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo] (value [Unknown]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
29-Jun-2023 12:44:07.308 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
29-Jun-2023 12:44:07.314 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]
29-Jun-2023 12:44:07.540 INFO [taskExecutor-2] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.apache.log4j.spi.ThrowableInformation]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.apache.log4j.spi.ThrowableInformation]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1435)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1423)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1262)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1223)
at org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:216)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:335)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread “taskExecutor-2” java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:168)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread “taskExecutor-4” java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:168)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
29-Jun-2023 12:44:08.152 INFO [taskScheduler-5] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.springframework.dao.support.ChainedPersistenceExceptionTranslator]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.springframework.dao.support.ChainedPersistenceExceptionTranslator]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1435)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1423)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1262)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1223)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:164)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:145)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at com.cosium.spring.data.jpa.entity.graph.repository.support.RepositoryMethodEntityGraphExtractor$JpaEntityGraphMethodInterceptor.doInvoke(RepositoryMethodEntityGraphExtractor.java:157)
at com.cosium.spring.data.jpa.entity.graph.repository.support.RepositoryMethodEntityGraphExtractor$JpaEntityGraphMethodInterceptor.invoke(RepositoryMethodEntityGraphExtractor.java:109)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:140)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$ExposeRepositoryInvocationInterceptor.invoke(CrudMethodMetadataPostProcessor.java:347)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy230.findConceptSetTagInfo(Unknown Source)
at org.ohdsi.webapi.tag.TagService.processTagInfo(TagService.java:199)
at org.ohdsi.webapi.tag.TagService.lambda$refreshTagStatistics$2(TagService.java:178)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.ohdsi.webapi.tag.TagService.refreshTagStatistics(TagService.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread “taskExecutor-5” java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:168)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread “taskExecutor-3” java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:168)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread “taskExecutor-1” java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:168)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

We have checked our ports and there is nothing else pointing to 8080

Any help will really appreciated!

Many Thanks

Some more logs

2023-06-29 12:43:27.361 INFO taskExecutor-1 org.springframework.batch.core.launch.support.SimpleJobLauncher - - Job: [SimpleJob: [name=warming AURUM_CDM cache]] launched with the following parameters: [{jobName=warming AURUM_CDM cache, time=1688039005439, jobAuthor=anonymous}]
2023-06-29 12:43:31.486 INFO taskExecutor-2 org.springframework.batch.core.launch.support.SimpleJobLauncher - - Job: [SimpleJob: [name=warming AURUM_CDM_50Practices cache]] launched with the following parameters: [{jobName=warming AURUM_CDM_50Practices cache, time=1688039009395, jobAuthor=anonymous}]
2023-06-29 12:43:31.728 INFO taskExecutor-1 org.springframework.batch.core.job.SimpleStepHandler - - Executing step: [warming AURUM_CDM cache dashboard]
2023-06-29 12:43:36.995 INFO taskExecutor-3 org.springframework.batch.core.launch.support.SimpleJobLauncher - - Job: [SimpleJob: [name=warming AURUM_CDM_MAY_2022 cache]] launched with the following parameters: [{jobName=warming AURUM_CDM_MAY_2022 cache, time=1688039014034, jobAuthor=anonymous}]
2023-06-29 12:43:37.121 INFO taskExecutor-2 org.springframework.batch.core.job.SimpleStepHandler - - Executing step: [warming AURUM_CDM_50Practices cache dashboard]
2023-06-29 12:43:41.928 INFO taskExecutor-4 org.springframework.batch.core.launch.support.SimpleJobLauncher - - Job: [SimpleJob: [name=warming AURUM_HES_APC_CDM cache]] launched with the following parameters: [{jobName=warming AURUM_HES_APC_CDM cache, time=1688039019481, jobAuthor=anonymous}]
2023-06-29 12:43:42.140 INFO taskExecutor-3 org.springframework.batch.core.job.SimpleStepHandler - - Executing step: [warming AURUM_CDM_MAY_2022 cache dashboard]
2023-06-29 12:43:47.449 INFO taskExecutor-5 org.springframework.batch.core.launch.support.SimpleJobLauncher - - Job: [SimpleJob: [name=warming AURUM_HES_APC_CDM_MAY_2022 cache]] launched with the following parameters: [{jobName=warming AURUM_HES_APC_CDM_MAY_2022 cache, time=1688039024707, jobAuthor=anonymous}]
2023-06-29 12:43:48.428 INFO localhost-startStop-1 org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler - - Initializing ExecutorService
2023-06-29 12:43:48.509 INFO localhost-startStop-1 org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler - - Initializing ExecutorService ‘taskScheduler’
2023-06-29 12:43:48.816 INFO taskExecutor-4 org.springframework.batch.core.job.SimpleStepHandler - - Executing step: [warming AURUM_HES_APC_CDM cache dashboard]
2023-06-29 12:43:51.058 INFO localhost-startStop-1 org.springframework.aop.framework.CglibAopProxy - - Final method [protected final com.cronutils.model.time.ExecutionTime com.odysseusinc.scheduler.service.BaseJobServiceImpl.getExecutionTime(com.odysseusinc.scheduler.model.ArachneJob)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
2023-06-29 12:43:51.058 WARN localhost-startStop-1 org.springframework.aop.framework.CglibAopProxy - - Unable to proxy interface-implementing method [public final void com.odysseusinc.scheduler.service.BaseJobServiceImpl.setApplicationContext(org.springframework.context.ApplicationContext) throws org.springframework.beans.BeansException] because it is marked as final: Consider using interface-based JDK proxies instead!
2023-06-29 12:43:51.058 INFO localhost-startStop-1 org.springframework.aop.framework.CglibAopProxy - - Final method [public final void com.odysseusinc.scheduler.service.BaseJobServiceImpl.setApplicationContext(org.springframework.context.ApplicationContext) throws org.springframework.beans.BeansException] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.
2023-06-29 12:43:51.593 INFO localhost-startStop-1 org.flywaydb.core.internal.command.DbMigrate - - Current version of schema “webapi”: 2.9.0.20210812164224
2023-06-29 12:43:51.593 WARN localhost-startStop-1 org.flywaydb.core.internal.command.DbMigrate - - outOfOrder mode is active. Migration of schema “webapi” may not be reproducible.
2023-06-29 12:43:51.594 INFO localhost-startStop-1 org.flywaydb.core.internal.command.DbMigrate - - Schema “webapi” is up to date. No migration necessary.
2023-06-29 12:43:53.019 INFO localhost-startStop-1 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6dbda5db: startup date [Thu Jun 29 11:42:08 UTC 2023]; root of context hierarchy
2023-06-29 12:43:53.532 INFO localhost-startStop-1 org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - - Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2023-06-29 12:43:53.532 INFO localhost-startStop-1 org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - - Mapped URL path [/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2023-06-29 12:43:53.675 INFO localhost-startStop-1 org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2023-06-29 12:43:54.293 INFO localhost-startStop-1 org.springframework.ldap.core.support.AbstractContextSource - - Property ‘userDn’ not set - anonymous context will be used for read-write operations
2023-06-29 12:43:54.555 INFO localhost-startStop-1 org.springframework.ui.freemarker.SpringTemplateLoader - - SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6dbda5db: startup date [Thu Jun 29 11:42:08 UTC 2023]; root of context hierarchy] and template loader path [classpath:/templates/]
2023-06-29 12:43:54.555 INFO localhost-startStop-1 org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer - - ClassTemplateLoader for Spring macros added to FreeMarker configuration
2023-06-29 12:43:56.493 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Registering beans for JMX exposure on startup
2023-06-29 12:43:56.562 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Bean with name ‘taskExecutor’ has been autodetected for JMX exposure
2023-06-29 12:43:56.564 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Bean with name ‘integrationMbeanExporter’ has been autodetected for JMX exposure
2023-06-29 12:43:56.570 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Located managed bean ‘taskExecutor’: registering with JMX server as MBean [org.ohdsi.webapi.util:name=taskExecutor,type=ManagedThreadPoolTaskExecutor]
2023-06-29 12:43:56.626 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Located managed bean ‘integrationMbeanExporter’: registering with JMX server as MBean [org.springframework.integration.monitor:name=integrationMbeanExporter,type=IntegrationMBeanExporter]
2023-06-29 12:43:56.673 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Registering beans for JMX exposure on startup
2023-06-29 12:43:56.673 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Registering MessageChannel errorChannel
2023-06-29 12:43:56.680 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Located managed bean ‘org.springframework.integration:type=MessageChannel,name=errorChannel’: registering with JMX server as MBean [org.springframework.integration:type=MessageChannel,name=errorChannel]
2023-06-29 12:43:56.785 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Registering MessageChannel nullChannel
2023-06-29 12:43:56.788 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Located managed bean ‘org.springframework.integration:type=MessageChannel,name=nullChannel’: registering with JMX server as MBean [org.springframework.integration:type=MessageChannel,name=nullChannel]
2023-06-29 12:43:56.801 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Registering MessageHandler errorLogger
2023-06-29 12:43:56.803 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Located managed bean ‘org.springframework.integration:type=MessageHandler,name=errorLogger,bean=internal’: registering with JMX server as MBean [org.springframework.integration:type=MessageHandler,name=errorLogger,bean=internal]
2023-06-29 12:43:56.851 INFO localhost-startStop-1 org.springframework.context.support.DefaultLifecycleProcessor - - Starting beans in phase 0
2023-06-29 12:43:56.852 INFO localhost-startStop-1 org.springframework.integration.endpoint.EventDrivenConsumer - - Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the ‘errorChannel’ channel
2023-06-29 12:43:56.852 INFO localhost-startStop-1 org.springframework.integration.channel.PublishSubscribeChannel - - Channel ‘application:default:8080.errorChannel’ has 1 subscriber(s).
2023-06-29 12:43:56.852 INFO localhost-startStop-1 org.springframework.integration.endpoint.EventDrivenConsumer - - started _org.springframework.integration.errorLogger
2023-06-29 12:43:56.852 INFO localhost-startStop-1 org.springframework.context.support.DefaultLifecycleProcessor - - Starting beans in phase 2147483647
2023-06-29 12:43:56.895 INFO localhost-startStop-1 org.ohdsi.webapi.WebApi - - Started WebApi in 109.319 seconds (JVM running for 158.91)
2023-06-29 12:43:56.919 INFO taskScheduler-5 org.ohdsi.webapi.tag.TagService - - Starting tags statistics refreshing
2023-06-29 12:44:02.549 INFO taskExecutor-5 org.springframework.batch.core.job.SimpleStepHandler - - Executing step: [warming AURUM_HES_APC_CDM_MAY_2022 cache dashboard]
2023-06-29 12:44:04.331 INFO taskScheduler-3 org.ohdsi.webapi.executionengine.service.ScriptExecutionServiceImpl - - Invalidating execution engine based analyses
2023-06-29 12:44:07.193 INFO localhost-startStop-1 org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6dbda5db: startup date [Thu Jun 29 11:42:08 UTC 2023]; root of context hierarchy
2023-06-29 12:44:07.197 INFO localhost-startStop-1 org.springframework.context.support.DefaultLifecycleProcessor - - Stopping beans in phase 2147483647
2023-06-29 12:44:07.197 INFO localhost-startStop-1 org.springframework.context.support.DefaultLifecycleProcessor - - Stopping beans in phase 0
2023-06-29 12:44:07.199 INFO localhost-startStop-1 org.springframework.integration.endpoint.EventDrivenConsumer - - Removing {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the ‘errorChannel’ channel
2023-06-29 12:44:07.199 INFO localhost-startStop-1 org.springframework.integration.channel.PublishSubscribeChannel - - Channel ‘application:default:8080.errorChannel’ has 0 subscriber(s).
2023-06-29 12:44:07.199 INFO localhost-startStop-1 org.springframework.integration.endpoint.EventDrivenConsumer - - stopped _org.springframework.integration.errorLogger
2023-06-29 12:44:07.200 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Unregistering JMX-exposed beans on shutdown
2023-06-29 12:44:07.200 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Unregistering JMX-exposed beans
2023-06-29 12:44:07.200 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Summary on shutdown: errorChannel
2023-06-29 12:44:07.200 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Summary on shutdown: nullChannel
2023-06-29 12:44:07.200 INFO localhost-startStop-1 org.springframework.integration.monitor.IntegrationMBeanExporter - - Summary on shutdown: _org.springframework.integration.errorLogger.handler
2023-06-29 12:44:07.204 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Unregistering JMX-exposed beans on shutdown
2023-06-29 12:44:07.204 INFO localhost-startStop-1 org.springframework.jmx.export.annotation.AnnotationMBeanExporter - - Unregistering JMX-exposed beans
2023-06-29 12:44:07.205 INFO localhost-startStop-1 org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler - - Shutting down ExecutorService ‘taskScheduler’
2023-06-29 12:44:07.221 INFO localhost-startStop-1 org.ehcache.core.EhcacheManager - - Cache ‘datasources.dashboard’ removed from EhcacheManager.
2023-06-29 12:44:07.222 INFO localhost-startStop-1 org.ehcache.core.EhcacheManager - - Cache ‘datasources.domain’ removed from EhcacheManager.
2023-06-29 12:44:07.222 INFO localhost-startStop-1 org.ehcache.core.EhcacheManager - - Cache ‘datasources.dataDensity’ removed from EhcacheManager.
2023-06-29 12:44:07.223 INFO localhost-startStop-1 org.ehcache.core.EhcacheManager - - Cache ‘datasources.person’ removed from EhcacheManager.
2023-06-29 12:44:07.223 INFO localhost-startStop-1 org.ehcache.core.EhcacheManager - - Cache ‘datasources.drilldown’ removed from EhcacheManager.
2023-06-29 12:44:07.226 INFO localhost-startStop-1 org.ohdsi.webapi.util.ManagedThreadPoolTaskExecutor - - Shutting down ExecutorService ‘taskExecutor’

Can it be any caching issue??

It looks like port 8005 is already in use according to these logs: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind

Can you try another port or figure out if something is already running on that port? If you are on Windows, open up Resource Monitor and go to the Network tab to check if something is already running on that port.

That actually might be the Tomcat shutdown port according to this: eclipse - cannot start Tomcat 7 server - java.net.BindException: Address already in use - Stack Overflow

Try this:

Go to server.xml file and change

<Server port="8005" shutdown="SHUTDOWN">

to

<Server port="8006" shutdown="SHUTDOWN">

Hi @mlperkin, thanks a lot for your help. yes I tried changing the port in the server.xml file and it worked. Any idea why it happened as it was working fine and as the server was restarted it stopped working. As that port was available previously. thanks

In my case of Windows, I can see that 8005 is being used by ‘System’ in Resource Monitor. It appears to be a Windows service. I’m not sure exactly what its purpose is. It’s possible that this service was down or stopped when you first tried booting up Tomcat and there was no issue for Tomcat.

I honestly didn’t realize there was a shutdown port for Tomcat. According to this, if you don’t use the shutdown command then you should disable the shutdown port with -1.

t