Home  >  Forum  >  Spring
Post New Query

Error: org.apache.catalina.core.ApplicationContextFacade. getVirtualServerName



Asked on January 02, 2015
Hi All, In my spring application, I am getting below exception. Need help.


Caused by: java.lang.AbstractMethodError: org.apache.catalina.core.ApplicationContextFacade.getVirtualServerName()Ljava/lang/String;
at org.apache.tomcat.websocket.server.WsServerContainer.<init>(WsServerContainer.java:147)
at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131)
at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:47)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5479)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)



Replied on January 03, 2015
I also faced the same error.
My scenario was that I was using spring boot which was also adding embed tomcat boot jar dependency in war.
Those JARs are

tomcat-embed-core-8.0.15.jar
tomcat-embed-el-8.0.15.jar
tomcat-embed-logging-juli-8.0.15.jar
tomcat-embed-websocket-8.0.15.jar


When I run my application in tomcat 8, no error but when I run in tomcat 7, got the error as you have mentioned.
To run in tomcat 7, I deleted all the jar from Myapp/WEB-INF/lib
and working fine.



Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us