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

前端 未结 2 1108
清歌不尽
清歌不尽 2020-12-19 06:38

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

Tomcat version details,

D:\\Kiran\\Kiran\\Softwares DH\\Webservers\\apache-tomcat-         


        
相关标签:
2条回答
  • 2020-12-19 06:57

    Search in pom.xml for

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-jetty</artifactId>
    </dependency>
    

    and remove it.

    0 讨论(0)
  • 2020-12-19 07:08

    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,

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
            <packagingExcludes>WEB-INF/lib/websocket-*.jar</packagingExcludes>
        </configuration>
    </plugin>
    

    The jars which were creating problem are,

    0 讨论(0)
提交回复
热议问题