问题描述
HTTPStatus500-Servletexecutionthrewanexception--------------------------------------------------------------------------------typeExceptionreportmessageServletexecutionthrewanexceptiondescriptionTheserverencounteredaninternalerrorthatpreventeditfromfulfillingthisrequest.exceptionjavax.servlet.ServletException:Servletexecutionthrewanexceptionch2.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:77)rootcausejava.lang.NoClassDefFoundError:javax/mail/NoSuchProviderExceptionch2.service.UserService.addUser(UserService.java:40)ch2.servlet.Register.doGet(Register.java:69)ch2.servlet.Register.doPost(Register.java:81)javax.servlet.http.HttpServlet.service(HttpServlet.java:646)javax.servlet.http.HttpServlet.service(HttpServlet.java:727)ch2.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:77)rootcausejava.lang.ClassNotFoundException:javax.mail.NoSuchProviderExceptionorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)ch2.service.UserService.addUser(UserService.java:40)ch2.servlet.Register.doGet(Register.java:69)ch2.servlet.Register.doPost(Register.java:81)javax.servlet.http.HttpServlet.service(HttpServlet.java:646)javax.servlet.http.HttpServlet.service(HttpServlet.java:727)ch2.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:77)noteThefullstacktraceoftherootcauseisavailableintheApacheTomcat/7.0.56logs.--------------------------------------------------------------------------------ApacheTomcat/7.0.56
解决方案
解决方案二:
java.lang.ClassNotFoundException:javax.mail.NoSuchProviderException少jar包
解决方案三:
少什么JAVA包呢
解决方案四:
javamail相关的jar包
解决方案五:
能说的具体点吗?JAVAmail的包我已经有了,是不是放的位置不对,麻烦你能说的仔细点,谢谢。
解决方案六:
是否加了activation.jar,如果有,很可能是mail.jar冲突了,