我在黑马上下的关于网上书店源码,只把src和webroot复制到myeclipse中,不过数据没有完全复制,因为有报错,运行之后可以进入首页和浏览图书,但是注册出现如下错误:HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
cn.itcast.servlet.BaseServlet.service(BaseServlet.java:60)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
cn.itcast.filter.EncodingFilter.doFilter(EncodingFilter.java:30)
root cause
java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
cn.itcast.servlet.BaseServlet.service(BaseServlet.java:44)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
cn.itcast.filter.EncodingFilter.doFilter(EncodingFilter.java:30)
root cause
java.lang.RuntimeException: javax.mail.AuthenticationFailedException: failed to connect
cn.itcast.goods.user.service.UserService.regist(UserService.java:169)
cn.itcast.goods.user.web.servlet.UserServlet.regist(UserServlet.java:134)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
cn.itcast.servlet.BaseServlet.service(BaseServlet.java:44)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
cn.itcast.filter.EncodingFilter.doFilter(EncodingFilter.java:30)
root cause
javax.mail.AuthenticationFailedException: failed to connect
javax.mail.Service.connect(Service.java:322)
javax.mail.Service.connect(Service.java:172)
javax.mail.Service.connect(Service.java:121)
javax.mail.Transport.send0(Transport.java:190)
javax.mail.Transport.send(Transport.java:120)
cn.itcast.mail.MailUtils.send(MailUtils.java:91)
cn.itcast.goods.user.service.UserService.regist(UserService.java:167)
cn.itcast.goods.user.web.servlet.UserServlet.regist(UserServlet.java:134)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
cn.itcast.servlet.BaseServlet.service(BaseServlet.java:44)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
cn.itcast.filter.EncodingFilter.doFilter(EncodingFilter.java:30)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
求高手解决 |
|