Skip to content
Advertisement

javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable

I am facing a problem while deploying a war on to tomcat instance,

Tomcat version details,

JavaScript

POM Dependency :

JavaScript

I have created a war using maven plugin and tried to deploy on tomcat 7. I was able to deploy but unable to start the webapp. When I find the logs for it, it gave below stacktrace,

JavaScript

Any help would be appreciated. Thank you.


Edit :

It runs fine when I run the application using STS

Advertisement

Answer

The problem is identified to be confusion over the websocket jars of tomcat and my application jars. I have removed it from the war file and it started working,

I used maven plug in to remove the jars as below,

JavaScript

The jars which were creating problem are,

enter image description here

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement