You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Martin Hewitt <ma...@gmail.com> on 2012/08/29 13:07:16 UTC

Custom user repository

Hi all, 

I've been playing around with James, and it's excellent, I've created a whole bunch of custom components and they all seem to work great.

My problem is when I come to apply my custom user repository.

After adding my entry into the usersrepository.conf file, when I restart James, it hangs on the following log line:

INFO  11:55:14,183 | james.domainlist | Set autodetect to: true
INFO  11:55:14,183 | james.domainlist | Set autodetectIP to: true

If I switch out my user repository for the default JPAUsersRepository, and restart, James passes this point without issue.

I've raised all the log levels in log4j.properties and I still can't get any indication as to what might be wrong.

My custom repository compiles without error, so I can only assume it's something happening at runtime, but I can't work out what without any log output.

Any help as to where I should be looking to get any insight into this would be greatly appreciated.

Many thanks, 

Martin
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


Re: Custom user repository

Posted by Martin Hewitt <ma...@gmail.com>.
Ah, excellent, I hadn't seen/found that, thanks very much Eric. 

Martin

Sent from my iPhone

On 29 Aug 2012, at 15:51, Eric Charles <er...@apache.org> wrote:

> See "Run James from Eclipse' section on http://james.apache.org/server/3/dev-build.html
> 
> Thx, Eric
> 
> On 29/08/2012 15:25, Martin Hewitt wrote:
>> Hi Eric,
>> 
>> Thanks for replying, through trial and error I discovered my repository was missing a jar not on the classpath.
>> 
>> I'll look into configuring my IDE for James, how would I set it up for debug mode apart from setting all the log levels to debug (which missed this particular error)?
>> 
>> Many thanks,
>> 
>> Martin
>> 
>> Sent from my iPhone
>> 
>> On 29 Aug 2012, at 14:59, Eric Charles <er...@apache.org> wrote:
>> 
>>> Hi,
>>> 
>>> Your custom user repository may be hanging for resources (external connection,...?).
>>> 
>>> Put some log in your custom repo or even better, run james in debug mode in your IDE.
>>> 
>>> Thx, Eric
>>> 
>>> On 29/08/2012 12:07, Martin Hewitt wrote:
>>>> Hi all,
>>>> 
>>>> I've been playing around with James, and it's excellent, I've created a whole bunch of custom components and they all seem to work great.
>>>> 
>>>> My problem is when I come to apply my custom user repository.
>>>> 
>>>> After adding my entry into the usersrepository.conf file, when I restart James, it hangs on the following log line:
>>>> 
>>>> INFO  11:55:14,183 | james.domainlist | Set autodetect to: true
>>>> INFO  11:55:14,183 | james.domainlist | Set autodetectIP to: true
>>>> 
>>>> If I switch out my user repository for the default JPAUsersRepository, and restart, James passes this point without issue.
>>>> 
>>>> I've raised all the log levels in log4j.properties and I still can't get any indication as to what might be wrong.
>>>> 
>>>> My custom repository compiles without error, so I can only assume it's something happening at runtime, but I can't work out what without any log output.
>>>> 
>>>> Any help as to where I should be looking to get any insight into this would be greatly appreciated.
>>>> 
>>>> Many thanks,
>>>> 
>>>> Martin
>>>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>>>> 
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Custom user repository

Posted by Eric Charles <er...@apache.org>.
See "Run James from Eclipse' section on 
http://james.apache.org/server/3/dev-build.html

Thx, Eric

On 29/08/2012 15:25, Martin Hewitt wrote:
> Hi Eric,
>
> Thanks for replying, through trial and error I discovered my repository was missing a jar not on the classpath.
>
> I'll look into configuring my IDE for James, how would I set it up for debug mode apart from setting all the log levels to debug (which missed this particular error)?
>
> Many thanks,
>
> Martin
>
> Sent from my iPhone
>
> On 29 Aug 2012, at 14:59, Eric Charles <er...@apache.org> wrote:
>
>> Hi,
>>
>> Your custom user repository may be hanging for resources (external connection,...?).
>>
>> Put some log in your custom repo or even better, run james in debug mode in your IDE.
>>
>> Thx, Eric
>>
>> On 29/08/2012 12:07, Martin Hewitt wrote:
>>> Hi all,
>>>
>>> I've been playing around with James, and it's excellent, I've created a whole bunch of custom components and they all seem to work great.
>>>
>>> My problem is when I come to apply my custom user repository.
>>>
>>> After adding my entry into the usersrepository.conf file, when I restart James, it hangs on the following log line:
>>>
>>> INFO  11:55:14,183 | james.domainlist | Set autodetect to: true
>>> INFO  11:55:14,183 | james.domainlist | Set autodetectIP to: true
>>>
>>> If I switch out my user repository for the default JPAUsersRepository, and restart, James passes this point without issue.
>>>
>>> I've raised all the log levels in log4j.properties and I still can't get any indication as to what might be wrong.
>>>
>>> My custom repository compiles without error, so I can only assume it's something happening at runtime, but I can't work out what without any log output.
>>>
>>> Any help as to where I should be looking to get any insight into this would be greatly appreciated.
>>>
>>> Many thanks,
>>>
>>> Martin
>>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Custom user repository

Posted by Martin Hewitt <ma...@gmail.com>.
Hi Eric,

Thanks for replying, through trial and error I discovered my repository was missing a jar not on the classpath. 

I'll look into configuring my IDE for James, how would I set it up for debug mode apart from setting all the log levels to debug (which missed this particular error)?

Many thanks,

Martin

Sent from my iPhone

On 29 Aug 2012, at 14:59, Eric Charles <er...@apache.org> wrote:

> Hi,
> 
> Your custom user repository may be hanging for resources (external connection,...?).
> 
> Put some log in your custom repo or even better, run james in debug mode in your IDE.
> 
> Thx, Eric
> 
> On 29/08/2012 12:07, Martin Hewitt wrote:
>> Hi all,
>> 
>> I've been playing around with James, and it's excellent, I've created a whole bunch of custom components and they all seem to work great.
>> 
>> My problem is when I come to apply my custom user repository.
>> 
>> After adding my entry into the usersrepository.conf file, when I restart James, it hangs on the following log line:
>> 
>> INFO  11:55:14,183 | james.domainlist | Set autodetect to: true
>> INFO  11:55:14,183 | james.domainlist | Set autodetectIP to: true
>> 
>> If I switch out my user repository for the default JPAUsersRepository, and restart, James passes this point without issue.
>> 
>> I've raised all the log levels in log4j.properties and I still can't get any indication as to what might be wrong.
>> 
>> My custom repository compiles without error, so I can only assume it's something happening at runtime, but I can't work out what without any log output.
>> 
>> Any help as to where I should be looking to get any insight into this would be greatly appreciated.
>> 
>> Many thanks,
>> 
>> Martin
>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Custom user repository

Posted by Eric Charles <er...@apache.org>.
Hi,

Your custom user repository may be hanging for resources (external 
connection,...?).

Put some log in your custom repo or even better, run james in debug mode 
in your IDE.

Thx, Eric

On 29/08/2012 12:07, Martin Hewitt wrote:
> Hi all,
>
> I've been playing around with James, and it's excellent, I've created a whole bunch of custom components and they all seem to work great.
>
> My problem is when I come to apply my custom user repository.
>
> After adding my entry into the usersrepository.conf file, when I restart James, it hangs on the following log line:
>
> INFO  11:55:14,183 | james.domainlist | Set autodetect to: true
> INFO  11:55:14,183 | james.domainlist | Set autodetectIP to: true
>
> If I switch out my user repository for the default JPAUsersRepository, and restart, James passes this point without issue.
>
> I've raised all the log levels in log4j.properties and I still can't get any indication as to what might be wrong.
>
> My custom repository compiles without error, so I can only assume it's something happening at runtime, but I can't work out what without any log output.
>
> Any help as to where I should be looking to get any insight into this would be greatly appreciated.
>
> Many thanks,
>
> Martin
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org