java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener

将myeclipse的web项目导入IDEA中报错

原因: 在myeclipse中是基于JAX-WS的项目,导入IDEA中就缺包

解决办法:将下图中的相关jar包导入即可

具体对应在myeclipse中的位置 可查看jar的位置

工程上右键-》properties-》java build path -》 add libraries -》 选myeclipse libraries -》next 拉到最后选择最后两个库(jax-ws runtime 和 jax-ws api)。

猜你喜欢

转载自blog.csdn.net/shubingzhuoxue/article/details/81317111
今日推荐