You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Michael Delaney <md...@upromise.com> on 2008/09/25 03:40:46 UTC

Archiva setup

All,

 

  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
unpacked Archiva to /app/archiva, I have also created the file
/app/archiva/conf/security.properties in which I am specifying some SMTP
settings. These settings should enable me to be able to send email (user
notification) but I am not able to do so. I looked through the logs in
/app/archiva/logs (the stdouterr, require, audit ... etc) but I don't
see it trying to send any mail.  Is there a way for me to verify this
file is being loaded propertly? Such as a way to enable more verbose
logging?

 

> Mike D

 


RE: Archiva setup

Posted by Michael Delaney <md...@upromise.com>.
I am also getting the following exception in the stderrout log

60823 [btpool0-3] WARN com.opensymphony.xwork.util.OgnlUtil - Caught
OgnlException while setting property 'principal' on type
'com.opensymphony.webwo    rk.dispatcher.ServletActionRedirectResult'.
125 ognl.NoSuchPropertyException:
com.opensymphony.webwork.dispatcher.ServletActionRedirectResult.principa
l
126     at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
127     at
com.opensymphony.xwork.util.OgnlValueStack$ObjectAccessor.setProperty(Og
nlValueStack.java:67)
128     at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
129     at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
130     at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
131     at ognl.SimpleNode.setValue(SimpleNode.java:246)
132     at ognl.Ognl.setValue(Ognl.java:476)
133     at
com.opensymphony.xwork.util.OgnlUtil.setValue(OgnlUtil.java:188)
134     at
com.opensymphony.xwork.util.OgnlUtil.internalSetProperty(OgnlUtil.java:3
62)
135     at
com.opensymphony.xwork.util.OgnlUtil.setProperties(OgnlUtil.java:78)
136     at
com.opensymphony.xwork.util.OgnlUtil.setProperties(OgnlUtil.java:51)
137     at
com.opensymphony.xwork.ObjectFactory.buildResult(ObjectFactory.java:186)
138     at
com.opensymphony.xwork.DefaultActionInvocation.createResult(DefaultActio
nInvocation.java:173)
139     at
com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActi
onInvocation.java:310)
140     at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:208)
141     at
org.codehaus.plexus.redback.xwork.interceptor.SecureActionInterceptor.in
tercept(SecureActionInterceptor.java:159)
142     at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:190)
143     at
org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforcementIntercept
or.intercept(PolicyEnforcementInterceptor.java:149)
144     at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:190)

-----Original Message-----
From: Michael Delaney [mailto:mdelaney@upromise.com] 
Sent: Wednesday, September 24, 2008 9:41 PM
To: users@archiva.apache.org
Subject: Archiva setup

All,

 

  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
unpacked Archiva to /app/archiva, I have also created the file
/app/archiva/conf/security.properties in which I am specifying some SMTP
settings. These settings should enable me to be able to send email (user
notification) but I am not able to do so. I looked through the logs in
/app/archiva/logs (the stdouterr, require, audit ... etc) but I don't
see it trying to send any mail.  Is there a way for me to verify this
file is being loaded propertly? Such as a way to enable more verbose
logging?

 

> Mike D

 


Re: Archiva setup

Posted by Brett Porter <br...@gmail.com>.
You're right, same problem here. This seems to be a bug in the logging.

- Brett

2008/9/30 Michael Delaney <md...@upromise.com>:
> I up'ed the log level for every entry in WEB-INF/classes/log4j.xml to
> debug and updated the SMTP host, in $ARCHIVA_BASE/conf/jetty.xml) to be
> 'badhostnamethingy' and yet still no exception in any file (located in
> $ARCHIVA_BASE/logs).
>
> I searched the archives for how to configure this but found nothing that
> helped me out.
>
> Does it matter that I am in standalone mode?
>
> -----Original Message-----
> From: Brett Porter [mailto:brett.porter@gmail.com]
> Sent: Friday, September 26, 2008 9:34 AM
> To: users@archiva.apache.org
> Subject: Re: Archiva setup
>
> 2008/9/26 Michael Delaney <md...@upromise.com>:
>> Bug files against the security.properties issue =
>> http://jira.codehaus.org/browse/MRM-956
>
> Thanks!
>
>>
>> In regards to the exception logging, I couldn't find in the
>> documentation, any please where it said how to enable those messages.
> Do
>> you think it would be appropriate for me to file a bug to get that
> added
>> to the documentation?
>
> Yes, please - we've answered the question a few times so you can find
> it in the archives, but we should certainly add it to the official
> docs.
>
>>
>> -----Original Message-----
>> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria
> Odea
>> Ching
>> Sent: Thursday, September 25, 2008 9:05 PM
>> To: users@archiva.apache.org
>> Subject: Re: Archiva setup
>>
>> On Fri, Sep 26, 2008 at 4:10 AM, Michael Delaney
>> <md...@upromise.com>wrote:
>>
>>>
>>> I was unable to get email to be sent via Archiva using the
>>> security.properties file (located in $ARCHIVA_BASE/conf). The ONLY
> way
>> I
>>> was able to get this to work was by updating the jetty.xml file
>> (located
>>> in $ARCHIVA_BASE/conf) with the updated smtp host information. From
>> what
>>> I read, you should be able to set any SMTP related values in the
>>> security.properties. This doesn't seem to be the case. Some email
>>> settings could be specified in the security.properties file but it
>>> doesn't seem consistant.
>>
>>
>> Hmm, the migration to the jetty bundle seems to have modified the
>> behavior.
>> Could you file a jira for this please so we could track this issue? :)
>>
>>
>>>
>>>
>>> I have included a sample file that I was using, with zero success.
>>>
>>> We also noticed that if there are exceptions being throw from
> Archiva,
>>> which I assume there are when the email setting are configured
>> properly,
>>> we aren't seeming them in ANY logs (archiva, stderrout, wrapper ...
>>> etc).
>>
>>
>> (Sorry I forgot to add this in my previous reply) You might need to
>> change
>> the log level to DEBUG in WEB-INF/classes/log4j.xml for the error to
>> show
>> up..
>>
>>
>>>
>>>
>>> Also when looking at the security.properties (located at
>>>
>>
> http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/
>>>
>>
> main/resources/org/codehaus/plexus/redback/config-defaults.properties<ht
>>
> tp://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/ma
>> in/resources/org/codehaus/plexus/redback/config-defaults.properties>)
>>> I
>>> see that there is a property named 'email.jndiSessionName' what is
> its
>>> purpose? I was trying to decode its purpose but I couldn't come to a
>>> good conclusion.
>>
>>
>> The email.jndiSessionName is the name of the JNDI session to be looked
>> up
>> and used by redback's mail sender. This is the equivalent of the
>> <Arg>mail/Session</Arg> configured in the jetty descriptor.
>>
>>
>> Thanks,
>> Deng
>>
>>
>>>
>>>
>>> -----Original Message-----
>>> From: Michael Delaney [mailto:mdelaney@upromise.com]
>>> Sent: Thursday, September 25, 2008 8:33 AM
>>> To: users@archiva.apache.org
>>> Subject: RE: Archiva setup
>>>
>>> Deng,
>>>
>>> I went created the user via the registration process. I also
> attempted
>>> to resend the validation mail via the 'User Management' page on
>> Archiva.
>>>
>>>
>>> -----Original Message-----
>>> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria
>> Odea
>>> Ching
>>> Sent: Wednesday, September 24, 2008 10:11 PM
>>> To: users@archiva.apache.org
>>> Subject: Re: Archiva setup
>>>
>>> Hi Michael,
>>>
>>> Since Redback 1.1, validation mails are no longer sent for users
>> created
>>> by
>>> a User/System admin. It is now only sent if the user went through the
>>> registration process.
>>> Hmm, did you try re-sending the validation mail?
>>>
>>> Thanks,
>>> Deng
>>>
>>> On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
>>> <md...@upromise.com>wrote:
>>>
>>> > All,
>>> >
>>> >
>>> >
>>> >  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I
> have
>>> > unpacked Archiva to /app/archiva, I have also created the file
>>> > /app/archiva/conf/security.properties in which I am specifying some
>>> SMTP
>>> > settings. These settings should enable me to be able to send email
>>> (user
>>> > notification) but I am not able to do so. I looked through the logs
>> in
>>> > /app/archiva/logs (the stdouterr, require, audit ... etc) but I
>> don't
>>> > see it trying to send any mail.  Is there a way for me to verify
>> this
>>> > file is being loaded propertly? Such as a way to enable more
> verbose
>>> > logging?
>>> >
>>> >
>>> >
>>> > > Mike D
>>> >
>>> >
>>> >
>>> >
>>>
>>
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

RE: Archiva setup

Posted by Michael Delaney <md...@upromise.com>.
I up'ed the log level for every entry in WEB-INF/classes/log4j.xml to
debug and updated the SMTP host, in $ARCHIVA_BASE/conf/jetty.xml) to be
'badhostnamethingy' and yet still no exception in any file (located in
$ARCHIVA_BASE/logs).

I searched the archives for how to configure this but found nothing that
helped me out. 

Does it matter that I am in standalone mode?

-----Original Message-----
From: Brett Porter [mailto:brett.porter@gmail.com] 
Sent: Friday, September 26, 2008 9:34 AM
To: users@archiva.apache.org
Subject: Re: Archiva setup

2008/9/26 Michael Delaney <md...@upromise.com>:
> Bug files against the security.properties issue =
> http://jira.codehaus.org/browse/MRM-956

Thanks!

>
> In regards to the exception logging, I couldn't find in the
> documentation, any please where it said how to enable those messages.
Do
> you think it would be appropriate for me to file a bug to get that
added
> to the documentation?

Yes, please - we've answered the question a few times so you can find
it in the archives, but we should certainly add it to the official
docs.

>
> -----Original Message-----
> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria
Odea
> Ching
> Sent: Thursday, September 25, 2008 9:05 PM
> To: users@archiva.apache.org
> Subject: Re: Archiva setup
>
> On Fri, Sep 26, 2008 at 4:10 AM, Michael Delaney
> <md...@upromise.com>wrote:
>
>>
>> I was unable to get email to be sent via Archiva using the
>> security.properties file (located in $ARCHIVA_BASE/conf). The ONLY
way
> I
>> was able to get this to work was by updating the jetty.xml file
> (located
>> in $ARCHIVA_BASE/conf) with the updated smtp host information. From
> what
>> I read, you should be able to set any SMTP related values in the
>> security.properties. This doesn't seem to be the case. Some email
>> settings could be specified in the security.properties file but it
>> doesn't seem consistant.
>
>
> Hmm, the migration to the jetty bundle seems to have modified the
> behavior.
> Could you file a jira for this please so we could track this issue? :)
>
>
>>
>>
>> I have included a sample file that I was using, with zero success.
>>
>> We also noticed that if there are exceptions being throw from
Archiva,
>> which I assume there are when the email setting are configured
> properly,
>> we aren't seeming them in ANY logs (archiva, stderrout, wrapper ...
>> etc).
>
>
> (Sorry I forgot to add this in my previous reply) You might need to
> change
> the log level to DEBUG in WEB-INF/classes/log4j.xml for the error to
> show
> up..
>
>
>>
>>
>> Also when looking at the security.properties (located at
>>
>
http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/
>>
>
main/resources/org/codehaus/plexus/redback/config-defaults.properties<ht
>
tp://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/ma
> in/resources/org/codehaus/plexus/redback/config-defaults.properties>)
>> I
>> see that there is a property named 'email.jndiSessionName' what is
its
>> purpose? I was trying to decode its purpose but I couldn't come to a
>> good conclusion.
>
>
> The email.jndiSessionName is the name of the JNDI session to be looked
> up
> and used by redback's mail sender. This is the equivalent of the
> <Arg>mail/Session</Arg> configured in the jetty descriptor.
>
>
> Thanks,
> Deng
>
>
>>
>>
>> -----Original Message-----
>> From: Michael Delaney [mailto:mdelaney@upromise.com]
>> Sent: Thursday, September 25, 2008 8:33 AM
>> To: users@archiva.apache.org
>> Subject: RE: Archiva setup
>>
>> Deng,
>>
>> I went created the user via the registration process. I also
attempted
>> to resend the validation mail via the 'User Management' page on
> Archiva.
>>
>>
>> -----Original Message-----
>> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria
> Odea
>> Ching
>> Sent: Wednesday, September 24, 2008 10:11 PM
>> To: users@archiva.apache.org
>> Subject: Re: Archiva setup
>>
>> Hi Michael,
>>
>> Since Redback 1.1, validation mails are no longer sent for users
> created
>> by
>> a User/System admin. It is now only sent if the user went through the
>> registration process.
>> Hmm, did you try re-sending the validation mail?
>>
>> Thanks,
>> Deng
>>
>> On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
>> <md...@upromise.com>wrote:
>>
>> > All,
>> >
>> >
>> >
>> >  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I
have
>> > unpacked Archiva to /app/archiva, I have also created the file
>> > /app/archiva/conf/security.properties in which I am specifying some
>> SMTP
>> > settings. These settings should enable me to be able to send email
>> (user
>> > notification) but I am not able to do so. I looked through the logs
> in
>> > /app/archiva/logs (the stdouterr, require, audit ... etc) but I
> don't
>> > see it trying to send any mail.  Is there a way for me to verify
> this
>> > file is being loaded propertly? Such as a way to enable more
verbose
>> > logging?
>> >
>> >
>> >
>> > > Mike D
>> >
>> >
>> >
>> >
>>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

Re: Archiva setup

Posted by Brett Porter <br...@gmail.com>.
2008/9/26 Michael Delaney <md...@upromise.com>:
> Bug files against the security.properties issue =
> http://jira.codehaus.org/browse/MRM-956

Thanks!

>
> In regards to the exception logging, I couldn't find in the
> documentation, any please where it said how to enable those messages. Do
> you think it would be appropriate for me to file a bug to get that added
> to the documentation?

Yes, please - we've answered the question a few times so you can find
it in the archives, but we should certainly add it to the official
docs.

>
> -----Original Message-----
> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria Odea
> Ching
> Sent: Thursday, September 25, 2008 9:05 PM
> To: users@archiva.apache.org
> Subject: Re: Archiva setup
>
> On Fri, Sep 26, 2008 at 4:10 AM, Michael Delaney
> <md...@upromise.com>wrote:
>
>>
>> I was unable to get email to be sent via Archiva using the
>> security.properties file (located in $ARCHIVA_BASE/conf). The ONLY way
> I
>> was able to get this to work was by updating the jetty.xml file
> (located
>> in $ARCHIVA_BASE/conf) with the updated smtp host information. From
> what
>> I read, you should be able to set any SMTP related values in the
>> security.properties. This doesn't seem to be the case. Some email
>> settings could be specified in the security.properties file but it
>> doesn't seem consistant.
>
>
> Hmm, the migration to the jetty bundle seems to have modified the
> behavior.
> Could you file a jira for this please so we could track this issue? :)
>
>
>>
>>
>> I have included a sample file that I was using, with zero success.
>>
>> We also noticed that if there are exceptions being throw from Archiva,
>> which I assume there are when the email setting are configured
> properly,
>> we aren't seeming them in ANY logs (archiva, stderrout, wrapper ...
>> etc).
>
>
> (Sorry I forgot to add this in my previous reply) You might need to
> change
> the log level to DEBUG in WEB-INF/classes/log4j.xml for the error to
> show
> up..
>
>
>>
>>
>> Also when looking at the security.properties (located at
>>
> http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/
>>
> main/resources/org/codehaus/plexus/redback/config-defaults.properties<ht
> tp://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/ma
> in/resources/org/codehaus/plexus/redback/config-defaults.properties>)
>> I
>> see that there is a property named 'email.jndiSessionName' what is its
>> purpose? I was trying to decode its purpose but I couldn't come to a
>> good conclusion.
>
>
> The email.jndiSessionName is the name of the JNDI session to be looked
> up
> and used by redback's mail sender. This is the equivalent of the
> <Arg>mail/Session</Arg> configured in the jetty descriptor.
>
>
> Thanks,
> Deng
>
>
>>
>>
>> -----Original Message-----
>> From: Michael Delaney [mailto:mdelaney@upromise.com]
>> Sent: Thursday, September 25, 2008 8:33 AM
>> To: users@archiva.apache.org
>> Subject: RE: Archiva setup
>>
>> Deng,
>>
>> I went created the user via the registration process. I also attempted
>> to resend the validation mail via the 'User Management' page on
> Archiva.
>>
>>
>> -----Original Message-----
>> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria
> Odea
>> Ching
>> Sent: Wednesday, September 24, 2008 10:11 PM
>> To: users@archiva.apache.org
>> Subject: Re: Archiva setup
>>
>> Hi Michael,
>>
>> Since Redback 1.1, validation mails are no longer sent for users
> created
>> by
>> a User/System admin. It is now only sent if the user went through the
>> registration process.
>> Hmm, did you try re-sending the validation mail?
>>
>> Thanks,
>> Deng
>>
>> On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
>> <md...@upromise.com>wrote:
>>
>> > All,
>> >
>> >
>> >
>> >  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
>> > unpacked Archiva to /app/archiva, I have also created the file
>> > /app/archiva/conf/security.properties in which I am specifying some
>> SMTP
>> > settings. These settings should enable me to be able to send email
>> (user
>> > notification) but I am not able to do so. I looked through the logs
> in
>> > /app/archiva/logs (the stdouterr, require, audit ... etc) but I
> don't
>> > see it trying to send any mail.  Is there a way for me to verify
> this
>> > file is being loaded propertly? Such as a way to enable more verbose
>> > logging?
>> >
>> >
>> >
>> > > Mike D
>> >
>> >
>> >
>> >
>>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

RE: Archiva setup

Posted by Michael Delaney <md...@upromise.com>.
Bug files against the security.properties issue =
http://jira.codehaus.org/browse/MRM-956

In regards to the exception logging, I couldn't find in the
documentation, any please where it said how to enable those messages. Do
you think it would be appropriate for me to file a bug to get that added
to the documentation?

-----Original Message-----
From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria Odea
Ching
Sent: Thursday, September 25, 2008 9:05 PM
To: users@archiva.apache.org
Subject: Re: Archiva setup

On Fri, Sep 26, 2008 at 4:10 AM, Michael Delaney
<md...@upromise.com>wrote:

>
> I was unable to get email to be sent via Archiva using the
> security.properties file (located in $ARCHIVA_BASE/conf). The ONLY way
I
> was able to get this to work was by updating the jetty.xml file
(located
> in $ARCHIVA_BASE/conf) with the updated smtp host information. From
what
> I read, you should be able to set any SMTP related values in the
> security.properties. This doesn't seem to be the case. Some email
> settings could be specified in the security.properties file but it
> doesn't seem consistant.


Hmm, the migration to the jetty bundle seems to have modified the
behavior.
Could you file a jira for this please so we could track this issue? :)


>
>
> I have included a sample file that I was using, with zero success.
>
> We also noticed that if there are exceptions being throw from Archiva,
> which I assume there are when the email setting are configured
properly,
> we aren't seeming them in ANY logs (archiva, stderrout, wrapper ...
> etc).


(Sorry I forgot to add this in my previous reply) You might need to
change
the log level to DEBUG in WEB-INF/classes/log4j.xml for the error to
show
up..


>
>
> Also when looking at the security.properties (located at
>
http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/
>
main/resources/org/codehaus/plexus/redback/config-defaults.properties<ht
tp://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/ma
in/resources/org/codehaus/plexus/redback/config-defaults.properties>)
> I
> see that there is a property named 'email.jndiSessionName' what is its
> purpose? I was trying to decode its purpose but I couldn't come to a
> good conclusion.


The email.jndiSessionName is the name of the JNDI session to be looked
up
and used by redback's mail sender. This is the equivalent of the
<Arg>mail/Session</Arg> configured in the jetty descriptor.


Thanks,
Deng


>
>
> -----Original Message-----
> From: Michael Delaney [mailto:mdelaney@upromise.com]
> Sent: Thursday, September 25, 2008 8:33 AM
> To: users@archiva.apache.org
> Subject: RE: Archiva setup
>
> Deng,
>
> I went created the user via the registration process. I also attempted
> to resend the validation mail via the 'User Management' page on
Archiva.
>
>
> -----Original Message-----
> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria
Odea
> Ching
> Sent: Wednesday, September 24, 2008 10:11 PM
> To: users@archiva.apache.org
> Subject: Re: Archiva setup
>
> Hi Michael,
>
> Since Redback 1.1, validation mails are no longer sent for users
created
> by
> a User/System admin. It is now only sent if the user went through the
> registration process.
> Hmm, did you try re-sending the validation mail?
>
> Thanks,
> Deng
>
> On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
> <md...@upromise.com>wrote:
>
> > All,
> >
> >
> >
> >  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
> > unpacked Archiva to /app/archiva, I have also created the file
> > /app/archiva/conf/security.properties in which I am specifying some
> SMTP
> > settings. These settings should enable me to be able to send email
> (user
> > notification) but I am not able to do so. I looked through the logs
in
> > /app/archiva/logs (the stdouterr, require, audit ... etc) but I
don't
> > see it trying to send any mail.  Is there a way for me to verify
this
> > file is being loaded propertly? Such as a way to enable more verbose
> > logging?
> >
> >
> >
> > > Mike D
> >
> >
> >
> >
>

Re: Archiva setup

Posted by Maria Odea Ching <oc...@apache.org>.
On Fri, Sep 26, 2008 at 4:10 AM, Michael Delaney <md...@upromise.com>wrote:

>
> I was unable to get email to be sent via Archiva using the
> security.properties file (located in $ARCHIVA_BASE/conf). The ONLY way I
> was able to get this to work was by updating the jetty.xml file (located
> in $ARCHIVA_BASE/conf) with the updated smtp host information. From what
> I read, you should be able to set any SMTP related values in the
> security.properties. This doesn't seem to be the case. Some email
> settings could be specified in the security.properties file but it
> doesn't seem consistant.


Hmm, the migration to the jetty bundle seems to have modified the behavior.
Could you file a jira for this please so we could track this issue? :)


>
>
> I have included a sample file that I was using, with zero success.
>
> We also noticed that if there are exceptions being throw from Archiva,
> which I assume there are when the email setting are configured properly,
> we aren't seeming them in ANY logs (archiva, stderrout, wrapper ...
> etc).


(Sorry I forgot to add this in my previous reply) You might need to change
the log level to DEBUG in WEB-INF/classes/log4j.xml for the error to show
up..


>
>
> Also when looking at the security.properties (located at
> http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/
> main/resources/org/codehaus/plexus/redback/config-defaults.properties<http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/main/resources/org/codehaus/plexus/redback/config-defaults.properties>)
> I
> see that there is a property named 'email.jndiSessionName' what is its
> purpose? I was trying to decode its purpose but I couldn't come to a
> good conclusion.


The email.jndiSessionName is the name of the JNDI session to be looked up
and used by redback's mail sender. This is the equivalent of the
<Arg>mail/Session</Arg> configured in the jetty descriptor.


Thanks,
Deng


>
>
> -----Original Message-----
> From: Michael Delaney [mailto:mdelaney@upromise.com]
> Sent: Thursday, September 25, 2008 8:33 AM
> To: users@archiva.apache.org
> Subject: RE: Archiva setup
>
> Deng,
>
> I went created the user via the registration process. I also attempted
> to resend the validation mail via the 'User Management' page on Archiva.
>
>
> -----Original Message-----
> From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria Odea
> Ching
> Sent: Wednesday, September 24, 2008 10:11 PM
> To: users@archiva.apache.org
> Subject: Re: Archiva setup
>
> Hi Michael,
>
> Since Redback 1.1, validation mails are no longer sent for users created
> by
> a User/System admin. It is now only sent if the user went through the
> registration process.
> Hmm, did you try re-sending the validation mail?
>
> Thanks,
> Deng
>
> On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
> <md...@upromise.com>wrote:
>
> > All,
> >
> >
> >
> >  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
> > unpacked Archiva to /app/archiva, I have also created the file
> > /app/archiva/conf/security.properties in which I am specifying some
> SMTP
> > settings. These settings should enable me to be able to send email
> (user
> > notification) but I am not able to do so. I looked through the logs in
> > /app/archiva/logs (the stdouterr, require, audit ... etc) but I don't
> > see it trying to send any mail.  Is there a way for me to verify this
> > file is being loaded propertly? Such as a way to enable more verbose
> > logging?
> >
> >
> >
> > > Mike D
> >
> >
> >
> >
>

RE: Archiva setup

Posted by Michael Delaney <md...@upromise.com>.
I was unable to get email to be sent via Archiva using the
security.properties file (located in $ARCHIVA_BASE/conf). The ONLY way I
was able to get this to work was by updating the jetty.xml file (located
in $ARCHIVA_BASE/conf) with the updated smtp host information. From what
I read, you should be able to set any SMTP related values in the
security.properties. This doesn't seem to be the case. Some email
settings could be specified in the security.properties file but it
doesn't seem consistant.

I have included a sample file that I was using, with zero success.

We also noticed that if there are exceptions being throw from Archiva,
which I assume there are when the email setting are configured properly,
we aren't seeming them in ANY logs (archiva, stderrout, wrapper ...
etc).

Also when looking at the security.properties (located at
http://svn.codehaus.org/redback/redback/trunk/redback-configuration/src/
main/resources/org/codehaus/plexus/redback/config-defaults.properties) I
see that there is a property named 'email.jndiSessionName' what is its
purpose? I was trying to decode its purpose but I couldn't come to a
good conclusion.

-----Original Message-----
From: Michael Delaney [mailto:mdelaney@upromise.com] 
Sent: Thursday, September 25, 2008 8:33 AM
To: users@archiva.apache.org
Subject: RE: Archiva setup

Deng,

I went created the user via the registration process. I also attempted
to resend the validation mail via the 'User Management' page on Archiva.


-----Original Message-----
From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria Odea
Ching
Sent: Wednesday, September 24, 2008 10:11 PM
To: users@archiva.apache.org
Subject: Re: Archiva setup

Hi Michael,

Since Redback 1.1, validation mails are no longer sent for users created
by
a User/System admin. It is now only sent if the user went through the
registration process.
Hmm, did you try re-sending the validation mail?

Thanks,
Deng

On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
<md...@upromise.com>wrote:

> All,
>
>
>
>  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
> unpacked Archiva to /app/archiva, I have also created the file
> /app/archiva/conf/security.properties in which I am specifying some
SMTP
> settings. These settings should enable me to be able to send email
(user
> notification) but I am not able to do so. I looked through the logs in
> /app/archiva/logs (the stdouterr, require, audit ... etc) but I don't
> see it trying to send any mail.  Is there a way for me to verify this
> file is being loaded propertly? Such as a way to enable more verbose
> logging?
>
>
>
> > Mike D
>
>
>
>

RE: Archiva setup

Posted by Michael Delaney <md...@upromise.com>.
Deng,

I went created the user via the registration process. I also attempted
to resend the validation mail via the 'User Management' page on Archiva.


-----Original Message-----
From: oching@exist.com [mailto:oching@exist.com] On Behalf Of Maria Odea
Ching
Sent: Wednesday, September 24, 2008 10:11 PM
To: users@archiva.apache.org
Subject: Re: Archiva setup

Hi Michael,

Since Redback 1.1, validation mails are no longer sent for users created
by
a User/System admin. It is now only sent if the user went through the
registration process.
Hmm, did you try re-sending the validation mail?

Thanks,
Deng

On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney
<md...@upromise.com>wrote:

> All,
>
>
>
>  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
> unpacked Archiva to /app/archiva, I have also created the file
> /app/archiva/conf/security.properties in which I am specifying some
SMTP
> settings. These settings should enable me to be able to send email
(user
> notification) but I am not able to do so. I looked through the logs in
> /app/archiva/logs (the stdouterr, require, audit ... etc) but I don't
> see it trying to send any mail.  Is there a way for me to verify this
> file is being loaded propertly? Such as a way to enable more verbose
> logging?
>
>
>
> > Mike D
>
>
>
>

Re: Archiva setup

Posted by Maria Odea Ching <oc...@apache.org>.
Hi Michael,

Since Redback 1.1, validation mails are no longer sent for users created by
a User/System admin. It is now only sent if the user went through the
registration process.
Hmm, did you try re-sending the validation mail?

Thanks,
Deng

On Thu, Sep 25, 2008 at 9:40 AM, Michael Delaney <md...@upromise.com>wrote:

> All,
>
>
>
>  I am trying to configure Archiva 1.1.2 on a Solaris X86 box. I have
> unpacked Archiva to /app/archiva, I have also created the file
> /app/archiva/conf/security.properties in which I am specifying some SMTP
> settings. These settings should enable me to be able to send email (user
> notification) but I am not able to do so. I looked through the logs in
> /app/archiva/logs (the stdouterr, require, audit ... etc) but I don't
> see it trying to send any mail.  Is there a way for me to verify this
> file is being loaded propertly? Such as a way to enable more verbose
> logging?
>
>
>
> > Mike D
>
>
>
>