Rich, I'm running Tomcat 4.0.2. I suspect that the security changes that you reference, below, should be made to the catalina.policy file. Do you know what the change would be? Also, do you know where, in the server.xml file I would turn on security debugging? Thanks! - Derek Rich Catlett <[EMAIL PROTECTED]> wrote: 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: > > > server="smtp.mail.yahoo.com" > authenticate="true" > user="my_id" > password="my_pw" > [EMAIL PROTECTED] from="[EMAIL PROTECTED]" > subject="a test message"> > > this is a test > > The following errors occured > > > > Please back up a page, fix the error and resubmit. > > > > >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: For additional commands, e-mail: --------------------------------- Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more
