commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haibin Wang <wanghaibin2...@gmail.com>
Subject what should I do to use commons-email in Servlet
Date Mon, 24 Oct 2005 20:22:30 GMT
Hi, everyone!

I used the commons-email in Servlet. When I run the servlet, it has such
exception:

java.security.AccessControlException: access denied
(java.util.PropertyPermission * read,write)
	java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
	java.security.AccessController.checkPermission(AccessController.java:427)
	java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1252)
	java.lang.System.getProperties(System.java:560)
	org.apache.commons.mail.Email.getMailSession(Email.java:355)
	org.apache.commons.mail.Email.buildMimeMessage(Email.java:748)
	org.apache.commons.mail.Email.send(Email.java:897)
	RequestProcessServlet.doPost(RequestProcessServlet.java:88)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

What Should I do to correct the errors?

Thanks you very much!

Haibin Wang



--
Haibin Wang, Ph.D.
Winship Cancer Institute
1365 Clifton Rd. Room B4112

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message