Try running your servlet container with security debug turned on. Start the container and give the following options to java -Djava.security.debug=access,failure. Run the example, and then search your logs for the word denied one will be the attempt to get the default session. This should tell you permission you need to add to your security policy. Most likely your going to have to give the mail.jar (javamail jar file) permission to access the session.
Hope this helps Rich Catlett Derek Doerr wrote: >I'm trying to run the Mailer taglib with a very basic configuration: > > <mt:mail > server="smtp.mail.yahoo.com" > authenticate="true" > user="my_id" > password="my_pw" > [EMAIL PROTECTED] from="[EMAIL PROTECTED]" > subject="a test message"> > > <mt:message>this is a test</mt:message> > <mt:send/> > <p>The following errors occured<br/><br/> > <mt:error id="err"> > <jsp:getProperty name="err" property="error"/><br/> > </mt:error> > <br/>Please back up a page, fix the error and resubmit.</p> > </mt:send> > > </mt:mail> > >I keep getting the exception message: > >java.lang.SecurityException: Access to default session denied > at javax.mail.Session.getDefaultInstance(Session.java:175) > at org.apache.taglibs.mailer.MailTag.doStartTag(MailTag.java:296) > at org.apache.jsp.mail_0005fsend$jsp._jspService(mail_0005fsend$jsp.java:94) > > >I have installed the mailer.jar file in my WEB-INF/lib directory, per the >instructions. Are any other JAR files required? The configuration docs don't >reference any other JAR files. > > > > > >Regards, > >- Derek Doerr >[EMAIL PROTECTED] > >"Beer is proof that God loves us and wants us to be happy." >- Benjamin Franklin > > >--------------------------------- >Do You Yahoo!? >Yahoo! Games - play chess, backgammon, pool and more > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
