javaMail的问题# Java - 爪哇娇娃
b*d
1 楼
在linux上写了段javamail的程序,自动通过学校mail server回信(发信)。需要auth
entication.
编译通过,运行报告:
javax.servlet.ServletException: Access to default session denied
com.jspservletcookbook.EmailServlet.doPost(EmailServlet.java:47)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
为什么deny session啊?
如果不加authentication,就出IOEXception.
source code:
public class MyAuthenticator extends Authenticator {
public MyAuthenticator
entication.
编译通过,运行报告:
javax.servlet.ServletException: Access to default session denied
com.jspservletcookbook.EmailServlet.doPost(EmailServlet.java:47)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
为什么deny session啊?
如果不加authentication,就出IOEXception.
source code:
public class MyAuthenticator extends Authenticator {
public MyAuthenticator