Intellj中配置完tomcat启动index.jsp时,还是Artifact WEB:war exploded: Error during artifact deployment.

配置完环境变量和IntellJ的配置后(详情点击:[安装tomcat](https://www.cnblogs.com/Knowledge-has-no-limit/p/7240585.html 配置idea中的tomcat) 点击启动,会出现

org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [com.sun.xml.ws.transport.http.servlet.WSServletContextListener]
 java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener


Artifact WEB:war exploded: Error during artifact deployment. See server log for details.

解决方案如下:
1、将原有web.xml删了
2、将web.xml中的如下代码注释掉
com.sun.xml.ws.transport.http.servlet.WSServletContextListener

Intellj中配置完tomcat启动index.jsp时,还是Artifact WEB:war exploded: Error during artifact deployment._第1张图片至于为什么,我也不太懂,有大神看到可以留言告诉我一下

你可能感兴趣的:(Intellj中配置完tomcat启动index.jsp时,还是Artifact WEB:war exploded: Error during artifact deployment.)