Rees,
If you patch your local copy to use FlexibleLocation instead of UtilURL
and it solves the problem, then please create a Jira issue and supply a
patch so we can get it fixed.
-Adrian
Rees Watkins wrote:
Hello
Yes - my store is setup exactly like the demo store. I get emails when a product is
purchased and for "forgot password" etc.
Registration email template is specified like this in demo store and my store:
component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
The registration email is generated by a call to "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends up in prepareNotification NotificationServices.java which attempts to resolve the email template using
URL templateUrl = UtilURL.fromResource(templateName);
All other email templates are resolved using a ComponentLocationResolver.
I believe this is why the emails are not generated and why I get the error
message below. I have spend some time on this and have made no progress. Any
ideas would be fantastic.
Cheers
Rees
________________________________
From: BJ Freeman <[email protected]>
To: [email protected]
Sent: Thursday, 18 June, 2009 15:41:43
Subject: Re: customer registration email problem
do you have the emails defined in the productstore>emails
Rees Watkins sent the following on 6/18/2009 2:38 AM:
Hi
I am unable to get ofbiz to send an email on customer registration on my
ecommerce site. I get the error below. It does not seem to be able to find the
email template; even though it is in the location specified. I have set the
store emails up using the demo site as a guide. I have tried to register as a
customer on the ofbiz demo ecommerce site, but I do not get a registration
confirmation email either. Any help will be gratefully received.
Kind regards
Rees
Problem getting the template URL:
component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
not found
prepareNotification failed: Problem finding template; see logs
Invalid email body; null is not allowed
Error in Service [sendGenericNotificationEmail]: Invalid email body; null is
not allowed