You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Alex O'Ree <sp...@gmail.com> on 2013/03/01 04:11:07 UTC

Adding a new configuration property to juddv3.properties

I'm working on a mod to fix the expiration of tokens problem. It's
working but I want the setting to be configurable. I.e. duration of
time from which to expire tokens.

Is the current configuration setup still using juddiv3.properties?

I'm calling the following code to load the value of the new property
int minutes=AppConfig.getConfiguration().getInt("juddi.authenticate.Expiration");

and this throwing the following

Feb 28, 2013 9:59:48 PM org.apache.juddi.api.impl.UDDISecurityImpl getAuthToken
WARNING: The authentication token expiration setting is missing or
invalid, will default to 15 minutes. See juddiv3.prop
erties file
java.util.NoSuchElementException: 'juddi.authenticate.Expiration'
doesn't map to an existing object
        at org.apache.commons.configuration.AbstractConfiguration.getInt(AbstractConfiguration.java:813)
        at org.apache.juddi.api.impl.UDDISecurityImpl.getAuthToken(UDDISecurityImpl.java:139)
        at org.apache.juddi.api.impl.UDDISecurityImpl.getAuthToken(UDDISecurityImpl.java:111)
        at org.apache.juddi.v3.tck.TckSecurity.getAuthToken(TckSecurity.java:33)

Re: Adding a new configuration property to juddv3.properties

Posted by Kurt Stam <ku...@gmail.com>.
Glad you found it.

On Mar 1, 2013, at 7:10, "Alex O'Ree" <sp...@gmail.com> wrote:

> Never mind, I figured it out. I was editing the wrong properties file. doh
> 
> On Thu, Feb 28, 2013 at 10:11 PM, Alex O'Ree <sp...@gmail.com> wrote:
>> I'm working on a mod to fix the expiration of tokens problem. It's
>> working but I want the setting to be configurable. I.e. duration of
>> time from which to expire tokens.
>> 
>> Is the current configuration setup still using juddiv3.properties?
>> 
>> I'm calling the following code to load the value of the new property
>> int minutes=AppConfig.getConfiguration().getInt("juddi.authenticate.Expiration");
>> 
>> and this throwing the following
>> 
>> Feb 28, 2013 9:59:48 PM org.apache.juddi.api.impl.UDDISecurityImpl getAuthToken
>> WARNING: The authentication token expiration setting is missing or
>> invalid, will default to 15 minutes. See juddiv3.prop
>> erties file
>> java.util.NoSuchElementException: 'juddi.authenticate.Expiration'
>> doesn't map to an existing object
>>        at org.apache.commons.configuration.AbstractConfiguration.getInt(AbstractConfiguration.java:813)
>>        at org.apache.juddi.api.impl.UDDISecurityImpl.getAuthToken(UDDISecurityImpl.java:139)
>>        at org.apache.juddi.api.impl.UDDISecurityImpl.getAuthToken(UDDISecurityImpl.java:111)
>>        at org.apache.juddi.v3.tck.TckSecurity.getAuthToken(TckSecurity.java:33)

Re: Adding a new configuration property to juddv3.properties

Posted by Alex O'Ree <sp...@gmail.com>.
Never mind, I figured it out. I was editing the wrong properties file. doh

On Thu, Feb 28, 2013 at 10:11 PM, Alex O'Ree <sp...@gmail.com> wrote:
> I'm working on a mod to fix the expiration of tokens problem. It's
> working but I want the setting to be configurable. I.e. duration of
> time from which to expire tokens.
>
> Is the current configuration setup still using juddiv3.properties?
>
> I'm calling the following code to load the value of the new property
> int minutes=AppConfig.getConfiguration().getInt("juddi.authenticate.Expiration");
>
> and this throwing the following
>
> Feb 28, 2013 9:59:48 PM org.apache.juddi.api.impl.UDDISecurityImpl getAuthToken
> WARNING: The authentication token expiration setting is missing or
> invalid, will default to 15 minutes. See juddiv3.prop
> erties file
> java.util.NoSuchElementException: 'juddi.authenticate.Expiration'
> doesn't map to an existing object
>         at org.apache.commons.configuration.AbstractConfiguration.getInt(AbstractConfiguration.java:813)
>         at org.apache.juddi.api.impl.UDDISecurityImpl.getAuthToken(UDDISecurityImpl.java:139)
>         at org.apache.juddi.api.impl.UDDISecurityImpl.getAuthToken(UDDISecurityImpl.java:111)
>         at org.apache.juddi.v3.tck.TckSecurity.getAuthToken(TckSecurity.java:33)