Re: Strong dependency of OFBiz build on JCenter

2019-03-26 Thread Swapnil M Mane
Thank you so much Jacopo, Taher, Nicolas for your kind inputs.
+1 for adding more repositories (maven seems good to me).


- Best Regards,
Swapnil M Mane,
www.hotwax.co





On Sat, Mar 23, 2019 at 9:34 PM Taher Alkhateeb 
wrote:

> Ahh I get it now.
>
> In that case the challenge might be making sure the naming and transitive
> dependencies are equivalent on both sides.
>
> Maybe another solution is to create two files, one for maven and the other
> for jcenter each with its own unique set of dependencies that can be tested
> and ensured correct behavior. This way differences in names or transitive
> dependencies are not an issue.
>
> On Sat, Mar 23, 2019, 5:09 PM Jacopo Cappellato <
> jacopo.cappell...@hotwaxsystems.com> wrote:
>
> > Just to clarify, I was suggesting that we could add more repositories,
> not
> > replace Jcenter with another one: the redundancy would mitigate the risk
> of
> > unavailability.
> >
> > Jacopo
> >
> > On Fri, Mar 22, 2019 at 6:07 PM Taher Alkhateeb <
> > slidingfilame...@gmail.com>
> > wrote:
> >
> > > Whatever repository you choose, there is always the risk of going down.
> > >
> > > To mitigate this risk, you can (after deploying the system) use the -
> > > -offline flag when running gradle. Alternatively you can simply run the
> > > java - jar command.
> > >
> > > On Fri, Mar 22, 2019, 10:41 AM Swapnil M Mane <
> > > swapnil.m...@hotwaxsystems.com> wrote:
> > >
> > > > Hello team,
> > > >
> > > > Yesterday JCenter was down for some time, due to which I was unable
> to
> > > > start the OFBiz server (because the build was failed).
> > > > Status of JCenter can be found at [1].
> > > >
> > > > This is a severe issue because it may be possible during any
> production
> > > > deployment, JCenter is down. Do we have any solution for the issue?
> > > > Please let me know if I am missing anything.
> > > >
> > > > [1] https://status.bintray.com/
> > > >
> > > > Here is stacktrace of build failure.
> > > > ==
> > > > *> Task :compileTestJava* FAILED
> > > >
> > > > FAILURE: Build failed with an exception.
> > > >
> > > > * What went wrong:
> > > > Execution failed for task ':compileTestJava'.
> > > > > Could not resolve all files for configuration
> > ':testCompileClasspath'.
> > > >> Could not resolve org.mockito:mockito-core:2.+.
> > > >  Required by:
> > > >  project :
> > > >   > Failed to list versions for org.mockito:mockito-core.
> > > >  > Unable to load Maven meta-data from
> > > >
> > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml
> > > > <
> > > >
> > >
> >
> https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml=D=hangouts=1553323118761000=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg
> > > > >
> > > > .
> > > > > Could not HEAD '
> > > >
> > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml
> > > > <
> > > >
> > >
> >
> https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml=D=hangouts=1553323118761000=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg
> > > > >
> > > > '.
> > > >> jcenter.bintray.com
> > > >   > Failed to list versions for org.mockito:mockito-core.
> > > >  > Unable to load Maven meta-data from
> > > >
> > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml
> > > > <
> > > >
> > >
> >
> https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml=D=hangouts=1553323118761000=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg
> > > > >
> > > > .
> > > > > Could not HEAD '
> > > >
> > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml
> > > > <
> > > >
> > >
> >
> https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml=D=hangouts=1553323118761000=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg
> > > > >
> > > > '.
> > > >> jcenter.bintray.com
> > > >
> > > > * Try:
> > > > Run with *--stacktrace* option to get the stack trace. Run with
> > *--info*
> > > or
> > > > *--debug* option to get more log output. Run with *--scan* to get
> full
> > > > insights.
> > > >
> > > > * Get more help at *https://help.gradle.org
> > > > <
> > > >
> > >
> >
> https://www.google.com/url?q=https://help.gradle.org=D=hangouts=1553323118761000=AFQjCNF7cVissA1Dr2SsZDCnovsUYDUE7Q
> > > > >*
> > > >
> > > > *BUILD FAILED* in 1m 14s
> > > > ==
> > > >
> > > > - Best Regards,
> > > > Swapnil M Mane,
> > > > www.hotwax.co
> > > >
> > >
> >
>


Re: svn commit: r1855798 - /ofbiz/ofbiz-framework/trunk/build.gradle

2019-03-26 Thread Scott Gray
I think minor refactors (lots or few is irrelevant) shouldn't need a jira
ticket and aren't worth mentioning in a blog post.  Anything that requires
discussion and/or changes the behavior of the application, the API or
documentation should go through jira.

Regards
Scott

On Thu, 21 Mar 2019 at 10:19, Mathieu Lirzin  wrote:

> Hello Michael,
>
> Michael Brohl  writes:
>
> > don't we have Jira's for all these changes?
> >
> > If yes, please provide the issue number within the commit message so
> > that we have them in the monthly blog post/dev details.
> >
> > If no, we should have them, at least in the future.
>
> Sorry if the process I followed was not the right one.
>
> I must confess that the policy regarding how refactoring (done by
> committers) must be handled in term of JIRA creation, is not clear to
> me.  The block “When to create a Jira issue” on OFBiz wiki [1] is not
> helping much in that regard.  Maybe there is an implicit consensus in
> that regard that I am not aware of?
>
> My reasoning for not creating a JIRA was that those commits are pure
> refactoring meaning they are implementation details that don't change
> the observable behavior of the build and they are not part of a global
> plan.  Basically those cleanups happened by looking around while working
> on OFBIZ-10866 [2] but are unrelated to the endeavour of that task.
>
> What would you recommend in that scenario?
>
> > If these changes affect the documentation, the README.md should also
> > be edited to reflect them and stay in sync with the code.
>
> Sure I agree that's an important guideline to follow.
>
> Thanks.
>
> [1]
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Contributors+Best+Practices
> [2] https://issues.apache.org/jira/browse/OFBIZ-10866
>
> --
> Mathieu Lirzin
> GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37
>


Re: buildbot failure in on ofbizTrunkFrameworkPlugins

2019-03-26 Thread Jacques Le Roux

The errors are inconsistent in both Buildbot and locally, I consider as not an 
issue

Jacques

Le 25/03/2019 à 19:43, build...@apache.org a écrit :

The Buildbot has detected a new failure on builder ofbizTrunkFrameworkPlugins 
while building . Full details are available at:
 https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/745

Buildbot URL: https://ci.apache.org/

Buildslave for this Build: silvanus_ubuntu

Build Reason: downstream
Build Source Stamp: [branch ofbiz/ofbiz-framework/trunk] 1856212
Blamelist: jleroux

BUILD FAILED: failed shell_4

Sincerely,
  -The Buildbot






Re: Send E-Mails

2019-03-26 Thread Jacques Le Roux

Yep

Jacques

Le 26/03/2019 à 09:37, Gil Portenseigne a écrit :

What I understand is that to keep granted right after the migration if
our confluence id is différent from our apache id, we must fill in a
INFRA Jira to make the switch ?


Le 09:23 - mardi 26 mars, Jacques Le Roux a écrit :

Makes sense Pierre,

Please Gil checks https://issues.apache.org/jira/browse/INFRA-18028

HTH

Jacques

Le 26/03/2019 à 09:16, Pierre Smits a écrit :

Hi Gil,

Does this maybe have something to do with recent migration by INFRA to have
ApacheIds (LDAP)+password being usable as login credentials? I can't edit
either.

Best regards,

Pierre Smits

*Apache Trafodion , Vice President*
*Apache Directory , PMC Member*
Apache Incubator , committer
*Apache OFBiz ,  10 years a contributor without
privileges*
Apache Steve , committer


On Tue, Mar 26, 2019 at 8:56 AM Gil Portenseigne <
gil.portensei...@nereide.fr> wrote:


Hello there,

Do somes actions have been taken on documenting the existence of
SystemProperty ?

I like the idea of migrating documentation into embedded one.

I just wanted to add a note into https://s.apache.org/BPJ5 that alert
about SystemProperty, but i seem to miss the modification permission...
can someone grant me access ?

Thanks

Gil


Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :

Actually, I think whatever need to be documented is best placed in our
embedded documentation. We should probably consider freezing all new
documentation in any place that is not the embedded documentation and try
to migrate everything to it. So email setting docs could be placed
somewhere in our user manual.

On Fri, May 11, 2018, 11:51 AM Jacques Le Roux <

jacques.le.r...@les7arts.com>

wrote:


Hi Rishi,


Le 09/05/2018 ą 11:12, Rishi Solanki a écrit :

Community, I think we should mention the SystemProperty where

required in

Production Setup Guide or may be we can add version of production

setup

guide which will tells user upto which release this production setup

guide

will work. I know we discuss this kind of effort in past for all the
documents and we agree on some point. But this is quicker to manage
Production Setup Guide, if we agree then I can do it.

Yes good idea, a simple information for concerned versions in the

current

Production Setup Guide fits with me

Jacques

I'm fine with either change the existing one or maintain the

version. But

first we should have one which works always with latest. Thanks!


Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co

On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de <

i...@agentur-m3.de>

wrote:


Hello,

here is a problem with my e-mail base-configuration.

I configured email according to the setup guide:



https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+

Production+Setup+Guide#ApacheOFBizTechnicalProduction
SetupGuide-EmailServerSettings


Unfortunately no email seems to be sent from server
(the send email button in partymgr works fine now (thanks to

Jacques!),

but no email reaches client). No error message, no error in log.

Also I tried to register in the ecommerce system and send
an "Forgot Your Password" email, but none of the emails were sent.

To get more info about the problem, I wrote a groovy script and

copied

parts of the sendEmail-code from EmailServices.java.
The script below surprisingly works fine and sends emails!

So I don't understand, why OFBiz itself does not send mails.
Is there any further configuration necessary?



The script (which sends mails):

import javax.mail.Session;

import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.SendFailedException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.stream.StreamSource;

import org.apache.fop.apps.Fop;
import org.apache.fop.apps.MimeConstants;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.GeneralException;
import org.apache.ofbiz.base.util.HttpClient;
import org.apache.ofbiz.base.util.HttpClientException;
import org.apache.ofbiz.base.util.UtilGenerics;
import org.apache.ofbiz.base.util.UtilMisc;
import org.apache.ofbiz.base.util.UtilProperties;
import org.apache.ofbiz.base.util.UtilValidate;
import org.apache.ofbiz.base.util.collections.MapStack;
import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.GenericValue;
import 

Re: Send E-Mails

2019-03-26 Thread Gil Portenseigne
What I understand is that to keep granted right after the migration if
our confluence id is différent from our apache id, we must fill in a
INFRA Jira to make the switch ?


Le 09:23 - mardi 26 mars, Jacques Le Roux a écrit :
> Makes sense Pierre,
> 
> Please Gil checks https://issues.apache.org/jira/browse/INFRA-18028
> 
> HTH
> 
> Jacques
> 
> Le 26/03/2019 à 09:16, Pierre Smits a écrit :
> > Hi Gil,
> > 
> > Does this maybe have something to do with recent migration by INFRA to have
> > ApacheIds (LDAP)+password being usable as login credentials? I can't edit
> > either.
> > 
> > Best regards,
> > 
> > Pierre Smits
> > 
> > *Apache Trafodion , Vice President*
> > *Apache Directory , PMC Member*
> > Apache Incubator , committer
> > *Apache OFBiz ,  10 years a contributor without
> > privileges*
> > Apache Steve , committer
> > 
> > 
> > On Tue, Mar 26, 2019 at 8:56 AM Gil Portenseigne <
> > gil.portensei...@nereide.fr> wrote:
> > 
> > > Hello there,
> > > 
> > > Do somes actions have been taken on documenting the existence of
> > > SystemProperty ?
> > > 
> > > I like the idea of migrating documentation into embedded one.
> > > 
> > > I just wanted to add a note into https://s.apache.org/BPJ5 that alert
> > > about SystemProperty, but i seem to miss the modification permission...
> > > can someone grant me access ?
> > > 
> > > Thanks
> > > 
> > > Gil
> > > 
> > > 
> > > Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :
> > > > Actually, I think whatever need to be documented is best placed in our
> > > > embedded documentation. We should probably consider freezing all new
> > > > documentation in any place that is not the embedded documentation and 
> > > > try
> > > > to migrate everything to it. So email setting docs could be placed
> > > > somewhere in our user manual.
> > > > 
> > > > On Fri, May 11, 2018, 11:51 AM Jacques Le Roux <
> > > jacques.le.r...@les7arts.com>
> > > > wrote:
> > > > 
> > > > > Hi Rishi,
> > > > > 
> > > > > 
> > > > > Le 09/05/2018 ą 11:12, Rishi Solanki a écrit :
> > > > > > Community, I think we should mention the SystemProperty where
> > > required in
> > > > > > Production Setup Guide or may be we can add version of production
> > > setup
> > > > > > guide which will tells user upto which release this production setup
> > > > > guide
> > > > > > will work. I know we discuss this kind of effort in past for all the
> > > > > > documents and we agree on some point. But this is quicker to manage
> > > > > > Production Setup Guide, if we agree then I can do it.
> > > > > Yes good idea, a simple information for concerned versions in the
> > > current
> > > > > Production Setup Guide fits with me
> > > > > 
> > > > > Jacques
> > > > > > I'm fine with either change the existing one or maintain the
> > > version. But
> > > > > > first we should have one which works always with latest. Thanks!
> > > > > > 
> > > > > > 
> > > > > > Rishi Solanki
> > > > > > Sr Manager, Enterprise Software Development
> > > > > > HotWax Systems Pvt. Ltd.
> > > > > > Direct: +91-9893287847
> > > > > > http://www.hotwaxsystems.com
> > > > > > www.hotwax.co
> > > > > > 
> > > > > > On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de <
> > > i...@agentur-m3.de>
> > > > > > wrote:
> > > > > > 
> > > > > > > Hello,
> > > > > > > 
> > > > > > > here is a problem with my e-mail base-configuration.
> > > > > > > 
> > > > > > > I configured email according to the setup guide:
> > > > > > > 
> > > > > > > 
> > > https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+
> > > > > > > Production+Setup+Guide#ApacheOFBizTechnicalProduction
> > > > > > > SetupGuide-EmailServerSettings
> > > > > > > 
> > > > > > > 
> > > > > > > Unfortunately no email seems to be sent from server
> > > > > > > (the send email button in partymgr works fine now (thanks to
> > > Jacques!),
> > > > > > > but no email reaches client). No error message, no error in log.
> > > > > > > 
> > > > > > > Also I tried to register in the ecommerce system and send
> > > > > > > an "Forgot Your Password" email, but none of the emails were sent.
> > > > > > > 
> > > > > > > To get more info about the problem, I wrote a groovy script and
> > > copied
> > > > > > > parts of the sendEmail-code from EmailServices.java.
> > > > > > > The script below surprisingly works fine and sends emails!
> > > > > > > 
> > > > > > > So I don't understand, why OFBiz itself does not send mails.
> > > > > > > Is there any further configuration necessary?
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > The script (which sends mails):
> > > > > > > 
> > > > > > > import javax.mail.Session;
> > > > > > > 
> > > > > > > import javax.activation.DataHandler;
> > > > > > > import javax.activation.DataSource;
> > > > > > > import javax.mail.Message;
> > > > > > > import javax.mail.MessagingException;
> > > > 

Re: Send E-Mails

2019-03-26 Thread Gil Portenseigne
Thanks Jacques :)


Le 09:21 - mardi 26 mars, Jacques Le Roux a écrit :
> Hi Gil,
> 
> Let me check
> 
> Jacques
> 
> Le 26/03/2019 à 08:56, Gil Portenseigne a écrit :
> > Hello there,
> > 
> > Do somes actions have been taken on documenting the existence of
> > SystemProperty ?
> > 
> > I like the idea of migrating documentation into embedded one.
> > 
> > I just wanted to add a note into https://s.apache.org/BPJ5 that alert
> > about SystemProperty, but i seem to miss the modification permission...
> > can someone grant me access ?
> > 
> > Thanks
> > 
> > Gil
> > 
> > 
> > Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :
> > > Actually, I think whatever need to be documented is best placed in our
> > > embedded documentation. We should probably consider freezing all new
> > > documentation in any place that is not the embedded documentation and try
> > > to migrate everything to it. So email setting docs could be placed
> > > somewhere in our user manual.
> > > 
> > > On Fri, May 11, 2018, 11:51 AM Jacques Le Roux 
> > > 
> > > wrote:
> > > 
> > > > Hi Rishi,
> > > > 
> > > > 
> > > > Le 09/05/2018 à 11:12, Rishi Solanki a écrit :
> > > > > Community, I think we should mention the SystemProperty where 
> > > > > required in
> > > > > Production Setup Guide or may be we can add version of production 
> > > > > setup
> > > > > guide which will tells user upto which release this production setup
> > > > guide
> > > > > will work. I know we discuss this kind of effort in past for all the
> > > > > documents and we agree on some point. But this is quicker to manage
> > > > > Production Setup Guide, if we agree then I can do it.
> > > > Yes good idea, a simple information for concerned versions in the 
> > > > current
> > > > Production Setup Guide fits with me
> > > > 
> > > > Jacques
> > > > > I'm fine with either change the existing one or maintain the version. 
> > > > > But
> > > > > first we should have one which works always with latest. Thanks!
> > > > > 
> > > > > 
> > > > > Rishi Solanki
> > > > > Sr Manager, Enterprise Software Development
> > > > > HotWax Systems Pvt. Ltd.
> > > > > Direct: +91-9893287847
> > > > > http://www.hotwaxsystems.com
> > > > > www.hotwax.co
> > > > > 
> > > > > On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de 
> > > > > 
> > > > > wrote:
> > > > > 
> > > > > > Hello,
> > > > > > 
> > > > > > here is a problem with my e-mail base-configuration.
> > > > > > 
> > > > > > I configured email according to the setup guide:
> > > > > > 
> > > > > > 
> > > > https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+
> > > > > > Production+Setup+Guide#ApacheOFBizTechnicalProduction
> > > > > > SetupGuide-EmailServerSettings
> > > > > > 
> > > > > > 
> > > > > > Unfortunately no email seems to be sent from server
> > > > > > (the send email button in partymgr works fine now (thanks to 
> > > > > > Jacques!),
> > > > > > but no email reaches client). No error message, no error in log.
> > > > > > 
> > > > > > Also I tried to register in the ecommerce system and send
> > > > > > an "Forgot Your Password" email, but none of the emails were sent.
> > > > > > 
> > > > > > To get more info about the problem, I wrote a groovy script and 
> > > > > > copied
> > > > > > parts of the sendEmail-code from EmailServices.java.
> > > > > > The script below surprisingly works fine and sends emails!
> > > > > > 
> > > > > > So I don't understand, why OFBiz itself does not send mails.
> > > > > > Is there any further configuration necessary?
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > The script (which sends mails):
> > > > > > 
> > > > > > import javax.mail.Session;
> > > > > > 
> > > > > > import javax.activation.DataHandler;
> > > > > > import javax.activation.DataSource;
> > > > > > import javax.mail.Message;
> > > > > > import javax.mail.MessagingException;
> > > > > > import javax.mail.SendFailedException;
> > > > > > import javax.mail.Session;
> > > > > > import javax.mail.Transport;
> > > > > > import javax.mail.internet.InternetAddress;
> > > > > > import javax.mail.internet.MimeBodyPart;
> > > > > > import javax.mail.internet.MimeMessage;
> > > > > > import javax.mail.internet.MimeMultipart;
> > > > > > import javax.xml.parsers.ParserConfigurationException;
> > > > > > import javax.xml.transform.stream.StreamSource;
> > > > > > 
> > > > > > import org.apache.fop.apps.Fop;
> > > > > > import org.apache.fop.apps.MimeConstants;
> > > > > > import org.apache.ofbiz.base.util.Debug;
> > > > > > import org.apache.ofbiz.base.util.GeneralException;
> > > > > > import org.apache.ofbiz.base.util.HttpClient;
> > > > > > import org.apache.ofbiz.base.util.HttpClientException;
> > > > > > import org.apache.ofbiz.base.util.UtilGenerics;
> > > > > > import org.apache.ofbiz.base.util.UtilMisc;
> > > > > > import org.apache.ofbiz.base.util.UtilProperties;
> > > > > > import org.apache.ofbiz.base.util.UtilValidate;
> > > > > > import 

Re: Send E-Mails

2019-03-26 Thread Jacques Le Roux

Makes sense Pierre,

Please Gil checks https://issues.apache.org/jira/browse/INFRA-18028

HTH

Jacques

Le 26/03/2019 à 09:16, Pierre Smits a écrit :

Hi Gil,

Does this maybe have something to do with recent migration by INFRA to have
ApacheIds (LDAP)+password being usable as login credentials? I can't edit
either.

Best regards,

Pierre Smits

*Apache Trafodion , Vice President*
*Apache Directory , PMC Member*
Apache Incubator , committer
*Apache OFBiz ,  10 years a contributor without
privileges*
Apache Steve , committer


On Tue, Mar 26, 2019 at 8:56 AM Gil Portenseigne <
gil.portensei...@nereide.fr> wrote:


Hello there,

Do somes actions have been taken on documenting the existence of
SystemProperty ?

I like the idea of migrating documentation into embedded one.

I just wanted to add a note into https://s.apache.org/BPJ5 that alert
about SystemProperty, but i seem to miss the modification permission...
can someone grant me access ?

Thanks

Gil


Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :

Actually, I think whatever need to be documented is best placed in our
embedded documentation. We should probably consider freezing all new
documentation in any place that is not the embedded documentation and try
to migrate everything to it. So email setting docs could be placed
somewhere in our user manual.

On Fri, May 11, 2018, 11:51 AM Jacques Le Roux <

jacques.le.r...@les7arts.com>

wrote:


Hi Rishi,


Le 09/05/2018 ą 11:12, Rishi Solanki a écrit :

Community, I think we should mention the SystemProperty where

required in

Production Setup Guide or may be we can add version of production

setup

guide which will tells user upto which release this production setup

guide

will work. I know we discuss this kind of effort in past for all the
documents and we agree on some point. But this is quicker to manage
Production Setup Guide, if we agree then I can do it.

Yes good idea, a simple information for concerned versions in the

current

Production Setup Guide fits with me

Jacques

I'm fine with either change the existing one or maintain the

version. But

first we should have one which works always with latest. Thanks!


Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co

On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de <

i...@agentur-m3.de>

wrote:


Hello,

here is a problem with my e-mail base-configuration.

I configured email according to the setup guide:



https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+

Production+Setup+Guide#ApacheOFBizTechnicalProduction
SetupGuide-EmailServerSettings


Unfortunately no email seems to be sent from server
(the send email button in partymgr works fine now (thanks to

Jacques!),

but no email reaches client). No error message, no error in log.

Also I tried to register in the ecommerce system and send
an "Forgot Your Password" email, but none of the emails were sent.

To get more info about the problem, I wrote a groovy script and

copied

parts of the sendEmail-code from EmailServices.java.
The script below surprisingly works fine and sends emails!

So I don't understand, why OFBiz itself does not send mails.
Is there any further configuration necessary?



The script (which sends mails):

import javax.mail.Session;

import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.SendFailedException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.stream.StreamSource;

import org.apache.fop.apps.Fop;
import org.apache.fop.apps.MimeConstants;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.GeneralException;
import org.apache.ofbiz.base.util.HttpClient;
import org.apache.ofbiz.base.util.HttpClientException;
import org.apache.ofbiz.base.util.UtilGenerics;
import org.apache.ofbiz.base.util.UtilMisc;
import org.apache.ofbiz.base.util.UtilProperties;
import org.apache.ofbiz.base.util.UtilValidate;
import org.apache.ofbiz.base.util.collections.MapStack;
import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.GenericValue;
import org.apache.ofbiz.entity.util.EntityUtilProperties;
import org.apache.ofbiz.service.DispatchContext;
import org.apache.ofbiz.service.GenericServiceException;
import org.apache.ofbiz.service.LocalDispatcher;
import org.apache.ofbiz.service.ServiceUtil;
import org.apache.ofbiz.service.mail.MimeMessageWrapper;
import 

Re: Send E-Mails

2019-03-26 Thread Jacques Le Roux

Hi Gil,

Let me check

Jacques

Le 26/03/2019 à 08:56, Gil Portenseigne a écrit :

Hello there,

Do somes actions have been taken on documenting the existence of
SystemProperty ?

I like the idea of migrating documentation into embedded one.

I just wanted to add a note into https://s.apache.org/BPJ5 that alert
about SystemProperty, but i seem to miss the modification permission...
can someone grant me access ?

Thanks

Gil


Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :

Actually, I think whatever need to be documented is best placed in our
embedded documentation. We should probably consider freezing all new
documentation in any place that is not the embedded documentation and try
to migrate everything to it. So email setting docs could be placed
somewhere in our user manual.

On Fri, May 11, 2018, 11:51 AM Jacques Le Roux 
wrote:


Hi Rishi,


Le 09/05/2018 à 11:12, Rishi Solanki a écrit :

Community, I think we should mention the SystemProperty where required in
Production Setup Guide or may be we can add version of production setup
guide which will tells user upto which release this production setup

guide

will work. I know we discuss this kind of effort in past for all the
documents and we agree on some point. But this is quicker to manage
Production Setup Guide, if we agree then I can do it.

Yes good idea, a simple information for concerned versions in the current
Production Setup Guide fits with me

Jacques

I'm fine with either change the existing one or maintain the version. But
first we should have one which works always with latest. Thanks!


Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co

On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de 
wrote:


Hello,

here is a problem with my e-mail base-configuration.

I configured email according to the setup guide:



https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+

Production+Setup+Guide#ApacheOFBizTechnicalProduction
SetupGuide-EmailServerSettings


Unfortunately no email seems to be sent from server
(the send email button in partymgr works fine now (thanks to Jacques!),
but no email reaches client). No error message, no error in log.

Also I tried to register in the ecommerce system and send
an "Forgot Your Password" email, but none of the emails were sent.

To get more info about the problem, I wrote a groovy script and copied
parts of the sendEmail-code from EmailServices.java.
The script below surprisingly works fine and sends emails!

So I don't understand, why OFBiz itself does not send mails.
Is there any further configuration necessary?



The script (which sends mails):

import javax.mail.Session;

import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.SendFailedException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.stream.StreamSource;

import org.apache.fop.apps.Fop;
import org.apache.fop.apps.MimeConstants;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.GeneralException;
import org.apache.ofbiz.base.util.HttpClient;
import org.apache.ofbiz.base.util.HttpClientException;
import org.apache.ofbiz.base.util.UtilGenerics;
import org.apache.ofbiz.base.util.UtilMisc;
import org.apache.ofbiz.base.util.UtilProperties;
import org.apache.ofbiz.base.util.UtilValidate;
import org.apache.ofbiz.base.util.collections.MapStack;
import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.GenericValue;
import org.apache.ofbiz.entity.util.EntityUtilProperties;
import org.apache.ofbiz.service.DispatchContext;
import org.apache.ofbiz.service.GenericServiceException;
import org.apache.ofbiz.service.LocalDispatcher;
import org.apache.ofbiz.service.ServiceUtil;
import org.apache.ofbiz.service.mail.MimeMessageWrapper;
import org.apache.ofbiz.webapp.view.ApacheFopWorker;
import org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer;
import org.apache.ofbiz.widget.renderer.ScreenRenderer;
import org.apache.ofbiz.widget.renderer.ScreenStringRenderer;
import org.xml.sax.SAXException;

def testMail() {
  sendType = "mail.smtp.host"
  sendVia = "smtp.myhost.com"
  Properties props = System.getProperties()
  props.put(sendType, sendVia)
  Session session
  session = Session.getInstance(props);
  MimeMessage mail
  mail = new MimeMessage(session);
  Transport trans = null
  sendFrom = "obfiz.example.com"
  sendTo = "m...@myserver.de"
  subject = "testMail from OFBiz"
  mp = new 

Re: Send E-Mails

2019-03-26 Thread Pierre Smits
Hi Gil,

Does this maybe have something to do with recent migration by INFRA to have
ApacheIds (LDAP)+password being usable as login credentials? I can't edit
either.

Best regards,

Pierre Smits

*Apache Trafodion , Vice President*
*Apache Directory , PMC Member*
Apache Incubator , committer
*Apache OFBiz ,  10 years a contributor without
privileges*
Apache Steve , committer


On Tue, Mar 26, 2019 at 8:56 AM Gil Portenseigne <
gil.portensei...@nereide.fr> wrote:

> Hello there,
>
> Do somes actions have been taken on documenting the existence of
> SystemProperty ?
>
> I like the idea of migrating documentation into embedded one.
>
> I just wanted to add a note into https://s.apache.org/BPJ5 that alert
> about SystemProperty, but i seem to miss the modification permission...
> can someone grant me access ?
>
> Thanks
>
> Gil
>
>
> Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :
> > Actually, I think whatever need to be documented is best placed in our
> > embedded documentation. We should probably consider freezing all new
> > documentation in any place that is not the embedded documentation and try
> > to migrate everything to it. So email setting docs could be placed
> > somewhere in our user manual.
> >
> > On Fri, May 11, 2018, 11:51 AM Jacques Le Roux <
> jacques.le.r...@les7arts.com>
> > wrote:
> >
> > > Hi Rishi,
> > >
> > >
> > > Le 09/05/2018 ą 11:12, Rishi Solanki a écrit :
> > > > Community, I think we should mention the SystemProperty where
> required in
> > > > Production Setup Guide or may be we can add version of production
> setup
> > > > guide which will tells user upto which release this production setup
> > > guide
> > > > will work. I know we discuss this kind of effort in past for all the
> > > > documents and we agree on some point. But this is quicker to manage
> > > > Production Setup Guide, if we agree then I can do it.
> > > Yes good idea, a simple information for concerned versions in the
> current
> > > Production Setup Guide fits with me
> > >
> > > Jacques
> > > >
> > > > I'm fine with either change the existing one or maintain the
> version. But
> > > > first we should have one which works always with latest. Thanks!
> > > >
> > > >
> > > > Rishi Solanki
> > > > Sr Manager, Enterprise Software Development
> > > > HotWax Systems Pvt. Ltd.
> > > > Direct: +91-9893287847
> > > > http://www.hotwaxsystems.com
> > > > www.hotwax.co
> > > >
> > > > On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de <
> i...@agentur-m3.de>
> > > > wrote:
> > > >
> > > >> Hello,
> > > >>
> > > >> here is a problem with my e-mail base-configuration.
> > > >>
> > > >> I configured email according to the setup guide:
> > > >>
> > > >>
> > >
> https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+
> > > >> Production+Setup+Guide#ApacheOFBizTechnicalProduction
> > > >> SetupGuide-EmailServerSettings
> > > >>
> > > >>
> > > >> Unfortunately no email seems to be sent from server
> > > >> (the send email button in partymgr works fine now (thanks to
> Jacques!),
> > > >> but no email reaches client). No error message, no error in log.
> > > >>
> > > >> Also I tried to register in the ecommerce system and send
> > > >> an "Forgot Your Password" email, but none of the emails were sent.
> > > >>
> > > >> To get more info about the problem, I wrote a groovy script and
> copied
> > > >> parts of the sendEmail-code from EmailServices.java.
> > > >> The script below surprisingly works fine and sends emails!
> > > >>
> > > >> So I don't understand, why OFBiz itself does not send mails.
> > > >> Is there any further configuration necessary?
> > > >>
> > > >>
> > > >>
> > > >> The script (which sends mails):
> > > >>
> > > >> import javax.mail.Session;
> > > >>
> > > >> import javax.activation.DataHandler;
> > > >> import javax.activation.DataSource;
> > > >> import javax.mail.Message;
> > > >> import javax.mail.MessagingException;
> > > >> import javax.mail.SendFailedException;
> > > >> import javax.mail.Session;
> > > >> import javax.mail.Transport;
> > > >> import javax.mail.internet.InternetAddress;
> > > >> import javax.mail.internet.MimeBodyPart;
> > > >> import javax.mail.internet.MimeMessage;
> > > >> import javax.mail.internet.MimeMultipart;
> > > >> import javax.xml.parsers.ParserConfigurationException;
> > > >> import javax.xml.transform.stream.StreamSource;
> > > >>
> > > >> import org.apache.fop.apps.Fop;
> > > >> import org.apache.fop.apps.MimeConstants;
> > > >> import org.apache.ofbiz.base.util.Debug;
> > > >> import org.apache.ofbiz.base.util.GeneralException;
> > > >> import org.apache.ofbiz.base.util.HttpClient;
> > > >> import org.apache.ofbiz.base.util.HttpClientException;
> > > >> import org.apache.ofbiz.base.util.UtilGenerics;
> > > >> import org.apache.ofbiz.base.util.UtilMisc;
> > > >> import 

Re: Send E-Mails

2019-03-26 Thread Gil Portenseigne
Hello there,

Do somes actions have been taken on documenting the existence of
SystemProperty ?

I like the idea of migrating documentation into embedded one.

I just wanted to add a note into https://s.apache.org/BPJ5 that alert
about SystemProperty, but i seem to miss the modification permission...
can someone grant me access ?

Thanks

Gil


Le 12:50 - vendredi 11 mai, Taher Alkhateeb a écrit :
> Actually, I think whatever need to be documented is best placed in our
> embedded documentation. We should probably consider freezing all new
> documentation in any place that is not the embedded documentation and try
> to migrate everything to it. So email setting docs could be placed
> somewhere in our user manual.
> 
> On Fri, May 11, 2018, 11:51 AM Jacques Le Roux 
> wrote:
> 
> > Hi Rishi,
> >
> >
> > Le 09/05/2018 à 11:12, Rishi Solanki a écrit :
> > > Community, I think we should mention the SystemProperty where required in
> > > Production Setup Guide or may be we can add version of production setup
> > > guide which will tells user upto which release this production setup
> > guide
> > > will work. I know we discuss this kind of effort in past for all the
> > > documents and we agree on some point. But this is quicker to manage
> > > Production Setup Guide, if we agree then I can do it.
> > Yes good idea, a simple information for concerned versions in the current
> > Production Setup Guide fits with me
> >
> > Jacques
> > >
> > > I'm fine with either change the existing one or maintain the version. But
> > > first we should have one which works always with latest. Thanks!
> > >
> > >
> > > Rishi Solanki
> > > Sr Manager, Enterprise Software Development
> > > HotWax Systems Pvt. Ltd.
> > > Direct: +91-9893287847
> > > http://www.hotwaxsystems.com
> > > www.hotwax.co
> > >
> > > On Wed, May 9, 2018 at 3:33 AM, i...@agentur-m3.de 
> > > wrote:
> > >
> > >> Hello,
> > >>
> > >> here is a problem with my e-mail base-configuration.
> > >>
> > >> I configured email according to the setup guide:
> > >>
> > >>
> > https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+
> > >> Production+Setup+Guide#ApacheOFBizTechnicalProduction
> > >> SetupGuide-EmailServerSettings
> > >>
> > >>
> > >> Unfortunately no email seems to be sent from server
> > >> (the send email button in partymgr works fine now (thanks to Jacques!),
> > >> but no email reaches client). No error message, no error in log.
> > >>
> > >> Also I tried to register in the ecommerce system and send
> > >> an "Forgot Your Password" email, but none of the emails were sent.
> > >>
> > >> To get more info about the problem, I wrote a groovy script and copied
> > >> parts of the sendEmail-code from EmailServices.java.
> > >> The script below surprisingly works fine and sends emails!
> > >>
> > >> So I don't understand, why OFBiz itself does not send mails.
> > >> Is there any further configuration necessary?
> > >>
> > >>
> > >>
> > >> The script (which sends mails):
> > >>
> > >> import javax.mail.Session;
> > >>
> > >> import javax.activation.DataHandler;
> > >> import javax.activation.DataSource;
> > >> import javax.mail.Message;
> > >> import javax.mail.MessagingException;
> > >> import javax.mail.SendFailedException;
> > >> import javax.mail.Session;
> > >> import javax.mail.Transport;
> > >> import javax.mail.internet.InternetAddress;
> > >> import javax.mail.internet.MimeBodyPart;
> > >> import javax.mail.internet.MimeMessage;
> > >> import javax.mail.internet.MimeMultipart;
> > >> import javax.xml.parsers.ParserConfigurationException;
> > >> import javax.xml.transform.stream.StreamSource;
> > >>
> > >> import org.apache.fop.apps.Fop;
> > >> import org.apache.fop.apps.MimeConstants;
> > >> import org.apache.ofbiz.base.util.Debug;
> > >> import org.apache.ofbiz.base.util.GeneralException;
> > >> import org.apache.ofbiz.base.util.HttpClient;
> > >> import org.apache.ofbiz.base.util.HttpClientException;
> > >> import org.apache.ofbiz.base.util.UtilGenerics;
> > >> import org.apache.ofbiz.base.util.UtilMisc;
> > >> import org.apache.ofbiz.base.util.UtilProperties;
> > >> import org.apache.ofbiz.base.util.UtilValidate;
> > >> import org.apache.ofbiz.base.util.collections.MapStack;
> > >> import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
> > >> import org.apache.ofbiz.entity.Delegator;
> > >> import org.apache.ofbiz.entity.GenericValue;
> > >> import org.apache.ofbiz.entity.util.EntityUtilProperties;
> > >> import org.apache.ofbiz.service.DispatchContext;
> > >> import org.apache.ofbiz.service.GenericServiceException;
> > >> import org.apache.ofbiz.service.LocalDispatcher;
> > >> import org.apache.ofbiz.service.ServiceUtil;
> > >> import org.apache.ofbiz.service.mail.MimeMessageWrapper;
> > >> import org.apache.ofbiz.webapp.view.ApacheFopWorker;
> > >> import org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer;
> > >> import org.apache.ofbiz.widget.renderer.ScreenRenderer;
> > >> import