component not found when invoking notifications

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

component not found when invoking notifications

ryan-116
Hi All,

I'm having a problem getting the notification emails wired up.  When a
service invokes the notification service, it tries to load the email
from the provided templates, and can't find it via the normal
component:// URL.

"[NotificationServices.java:204:ERROR] Problem getting the template URL:
component://party/widget/partymgr/PartyEmailNotification.xml#CreatePartyNotification
not found"

I've verified that
${OFBIZ_HOME}//party/widget/partymgr/PartyEmailNotification.xml exists
and has a screen named CreatePartyNotification.
I don't see where else to look for this guy.
Is there some reason that in the context of NotificationServices the
reference to component:// urls would not be valid?

regards,
-Ryan
Reply | Threaded
Open this post in threaded view
|

Re: component not found when invoking notifications

Mridul Pathak-2
Hi Ryan,

Can you please let me know if that have you written some custom code or are
you running the OFBiz code?  If you have written anything custom, than is it
ok for you if you can share ProductStoreEmailSettings at your end, if you
have defined any custom ones?  Please let me know which process in OFBiz you
are exactly trying to run.

On Wed, Apr 2, 2008 at 4:44 AM, Ryan Sweet <[hidden email]> wrote:

> Hi All,
>
> I'm having a problem getting the notification emails wired up.  When a
> service invokes the notification service, it tries to load the email
> from the provided templates, and can't find it via the normal
> component:// URL.
>
> "[NotificationServices.java:204:ERROR] Problem getting the template URL:
>
> component://party/widget/partymgr/PartyEmailNotification.xml#CreatePartyNotification
> not found"
>
> I've verified that
> ${OFBIZ_HOME}//party/widget/partymgr/PartyEmailNotification.xml exists
> and has a screen named CreatePartyNotification.
> I don't see where else to look for this guy.
> Is there some reason that in the context of NotificationServices the
> reference to component:// urls would not be valid?
>
> regards,
> -Ryan
>



--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[hidden email]
__________________________________
Office : 509.855.4113
Mobile : +919425926892
Reply | Threaded
Open this post in threaded view
|

Re: component not found when invoking notifications

Mridul Pathak-2
Actually, the error you are getting is in prepareNotification() method of
NotificationServices class.  This method is called from sendNotification()
method of the same class which is invoked through
sendGenericNotificationMail service in services_email.xml.  Now this service
actually uses a template (ftl) to render the email body.  But the URL you
are passing renders a screen, and such a url is used in the service
sendMailFromScreen.  So this problem is not related to the component URL.This
lead me to think that you might be using wrong ProductStoreEmailSettings.

On Wed, Apr 2, 2008 at 10:19 AM, Mridul Pathak <
[hidden email]> wrote:

> Hi Ryan,
>
> Can you please let me know if that have you written some custom code or
> are you running the OFBiz code?  If you have written anything custom, than
> is it ok for you if you can share ProductStoreEmailSettings at your end, if
> you have defined any custom ones?  Please let me know which process in OFBiz
> you are exactly trying to run.
>
>
> On Wed, Apr 2, 2008 at 4:44 AM, Ryan Sweet <[hidden email]> wrote:
>
> > Hi All,
> >
> > I'm having a problem getting the notification emails wired up.  When a
> > service invokes the notification service, it tries to load the email
> > from the provided templates, and can't find it via the normal
> > component:// URL.
> >
> > "[NotificationServices.java:204:ERROR] Problem getting the template URL:
> >
> > component://party/widget/partymgr/PartyEmailNotification.xml#CreatePartyNotification
> > not found"
> >
> > I've verified that
> > ${OFBIZ_HOME}//party/widget/partymgr/PartyEmailNotification.xml exists
> > and has a screen named CreatePartyNotification.
> > I don't see where else to look for this guy.
> > Is there some reason that in the context of NotificationServices the
> > reference to component:// urls would not be valid?
> >
> > regards,
> > -Ryan
> >
>
>
>
> --
> Thanks & Regards
> Mridul Pathak
> Hotwax Media
> http://www.hotwaxmedia.com
> [hidden email]
> __________________________________
> Office : 509.855.4113
> Mobile : +919425926892




--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[hidden email]
__________________________________
Office : 509.855.4113
Mobile : +919425926892