incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Holeczek <>
Subject Re: teaching mailing to JSPWiki
Date Wed, 23 Jan 2008 23:35:41 GMT
Now that I've posted the bug part of the solution to JIRA JSPWIKI-102,
the rest follows here.

My configuration now is:

conf/server.xml in section GlobalNamingResources:
    <Resource name="mail/Session" auth="Container"
              description="globale Mailresource für meinen Tomcat-Server zum Verschicken
über 1und1" />
If anything goes wrong, you may want to add a line mail.debug="true"
to this section.
As you see, I'm using an SMTP mail server that requires authentication
and supports TLS. The problem with this configuration is that it won't
work if only the mail.user/password are set. These aren't
automatically used for authentication, so authentication fails (an
AuthenticationFailedException is thrown).
Therefore, you have to set username/password to the same values (or
values that authenticate you properly).
I got this information from here:

Next you have to link this global resource into JSPWiki's Context.
I did this via webapps/<jspwiki>/META-INF/context.xml (Tomcat 6), but
there are several possibilities to do this. Additionally, these differ
in different versions.
<Context path="/jspwiki" debug="false">

        <ResourceLink name="mail/Session"
                type="javax.mail.Session" />


Then you'll have to uncomment the following section in JSPWiki's
web.xml descriptor:
     <description>Resource reference to a container-managed JNDI JavaMail factory for
sending e-mails.</description>

If your mail factory's resource name differs from "mail/Session",
you'll have to set this name in

As Dave already mentioned, depending on your configuration you may
have to delete JSPWiki's activation.jar and mail.jar.
activation.jar isn't needed if your servlet container runs with Java
1.6+. mail.jar isn't needed if it's already contained in the servlet
container's library path.

Dave, please give it another try with these hints. I'm quite sure it
will work :-)
Then, we can publish this on some wiki page.
Janne, where to put it?


View raw message