Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 74869 invoked from network); 23 Jan 2008 16:12:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2008 16:12:34 -0000 Received: (qmail 30087 invoked by uid 500); 23 Jan 2008 16:12:24 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 30079 invoked by uid 500); 23 Jan 2008 16:12:24 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 30070 invoked by uid 99); 23 Jan 2008 16:12:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 08:12:24 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dave.wolf@gmail.com designates 64.233.178.244 as permitted sender) Received: from [64.233.178.244] (HELO hs-out-2122.google.com) (64.233.178.244) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 16:11:56 +0000 Received: by hs-out-2122.google.com with SMTP id n78so3102427hsc.12 for ; Wed, 23 Jan 2008 08:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=rTrkhNF44jvBighClN72np3skBsj7AUnEr7YUjvywFg=; b=emMAL7XxqoxeNedAHrQe2sgLLwCuCQwa0GuchnWxaINdIeFC4pSts21TzlUdmQjyaxVn3zGxekbSen2fDqKUFsOQRPDZ3USiFL5t/gCangB3iQoxi3yZJlcrAiP2U+o4pz1YnjdIc+Z2XGFi6eYJYiJzn4OBGVGSFtXzgrlRNyI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=WGfPqbcm3vBiWngy0dt7j6M9/XyCv4UjYvWM2ZE+6Vrc+drwrcLpj8F0VLzIOjb3f9TqDmUN573xH+jsAQeq/izJMcI2q+SzIIoF0XK32W4TG1H07zgpFP8+evQu2/GydXrt6Lk1ncIZ0G/6MrTKXCNgNkyvXDEwgYr+JfvlMy0= Received: by 10.114.209.1 with SMTP id h1mr962457wag.115.1201104720052; Wed, 23 Jan 2008 08:12:00 -0800 (PST) Received: by 10.114.37.8 with HTTP; Wed, 23 Jan 2008 08:12:00 -0800 (PST) Message-ID: Date: Wed, 23 Jan 2008 09:12:00 -0700 From: "Dave Wolf" To: jspwiki-user@incubator.apache.org Subject: Re: teaching mailing to JSPWiki In-Reply-To: <354838721.20080123124122@holeczek.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33060_21256460.1201104720035" References: <354838721.20080123124122@holeczek.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_33060_21256460.1201104720035 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Florian, I've run into the same problem, but I've been assured by Janne that it works. I've taken a similar approach as you have, but have not yet had success. Janne, would it be possible for you to expand on the documentation for setting up mail? Some examples of the configuration files would be great. Florian, btw, JRE 1.6 provides the activation jar, so you likely should remove it from /lib and remove it from JSPWiki/WEB-INF/lib to prevent classpath issues, if you're using JRE 1.6. Regards, Dave On Jan 23, 2008 4:41 AM, Florian Holeczek wrote: > Hi all, > > I'm trying to teach mailing to my local JSPWiki on Tomcat 6. Since I'm > using Apache Roller, too, I'd like to configure a global Mail > resource. > My JSPWiki is running with custom authentication via the > CookieAuthModule. > > I added the following code to Tomcat's server.xml > section: > --- > type="javax.mail.Session" > mail.user="someuser@holeczek.de" > mail.password="secret" > mail.smtp.host="smtp.1und1.de" > mail.smtp.starttls.enable="true" > mail.smtp.auth="true" > debug="true" > description="some desc." /> > --- > > Then I added this jspwiki.xml to Catalina/localhost to map the global > resource to JSPWiki's Context: > --- > > name="mail/Session" > global="mail/Session" > type="javax.mail.Session" > /> > > --- > > The next thing was modifying JSPWiki's web.xml: > --- > > Resource reference to a application-managed JNDI JavaMail > factory for sending e-mails. > mail/Session > javax.mail.Session > Application > > --- > > Well, mailing isn't working :-( I'm not sure if this log entry is > related to this issue: > 23.01.2008 12:16:28 org.apache.catalina.core.ApplicationContext log > INFO: No jspwiki.propertyfile defined for this context, using default from > /WEB-INF/jspwiki.properties > > JSPWiki's log tells me that it falls back to its own settings. BTW, > when commenting out all custom mail settings, the log simply contains > a NullPointerException at this place. > > I'm new to all this JNDI, JEE a.s.o. stuff and maybe I'm doing a basic > mistake? > > Would appreciate any help! > > Regards, > Florian > > -- Dave Wolf H: 303-377-9537 M: 303-956-9106 "Our lives begin to end the day we become silent about things that matter." --Dr. Martin Luther King Jr. ------=_Part_33060_21256460.1201104720035--