On Tue, Apr 30, 2013 at 12:24 PM, Charles <[email protected]> wrote:

> I tried to assign an environment variable to a property i.e.
> xxx.xxx.db.username = ${env.USERNAME} and got the error
>
> a binding to @Named(xxx) was already configured at Rocoto.configure
>

Whenever I've seen the "a binding to @Named(xxx) was already configured"
message, it has been because I've called a method that binds lots of things
in one shot, like bindEnvironmentVariables, with individual bindProperty
calls, and there's been a duplicate.

I can't see how that would be the case here, but look for duplicates in
property files (if you're using them).

--tim

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to