>From where is the ServletContext.class loaded? Is it from
<TOMCAT_HOME>/lib/servlet-api.jar or from another jar-library on the
classpath? My guess is that you have multiple jars  containing the
ServletContext.class and not all of these are related to the same
servlet-api version and thus not supporting the getClassLoader() method.
You might be loading the wrong SevletContext class file.



-----Original Message-----
From: Mohan T <moha...@ramco.com.INVALID>
Sent: woensdag 23 juni 2021 11:35
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Urgent Help

Hi,

While starting tomcat, I am getting this error .

Neither the console is starting nor the application is working .

It is tomcat 8.5.35 on linux

Please help

Mohan

23-Jun-2021 14:42:09.857 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web
application archive
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war]
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/admin]]
       at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:758)
       at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
       at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
       at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
       at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
       at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       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)

23-Jun-2021 14:42:09.864 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web
application archive
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war] has
finished in [608] ms
23-Jun-2021 14:42:09.880 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/audit.war]
23-Jun-2021 14:42:09.927 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/audit]]
       at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
       at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:754)
       at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
       at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
       at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
       at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
       at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       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)
Caused by: java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
       at
org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJar
Scanner.java:246)
       at
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.jav
a:229)
       at
org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(Conte
xtConfig.java:1892)
       at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:112
0)
       at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.jav
a:769)
       at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.jav
a:299)
       at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.ja
va:94)
       at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.jav
a:5154)
       at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                ... 10 more
DISCLAIMER: This communication contains information which is confidential
and the copyright of Ramco Systems Ltd, its subsidiaries or a third party
("Ramco"). This email may also contain legally privileged information.
Confidentiality and legal privilege attached to this communication are not
waived or lost by reason of mistaken delivery to you.This email is
intended to be read or used by the addressee only. If you are not the
intended recipient, any use, distribution, disclosure or copying of this
email is strictly prohibited without the express written approval of
Ramco. Please delete and destroy all copies and email Ramco at
le...@ramco.com immediately. Any views expressed in this communication are
those of the individual sender, except where the sender specifically
states them to be the views of Ramco. Except as required by law, Ramco
does not represent, warrant and/or guarantee that the integrity of this
communication has been maintained nor that the communication is free of
errors, virus, interception or interference. If you do not wish to receive
such communications, please forward this communication to
market...@ramco.com and express your wish not to receive such
communications henceforth.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to