Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
On 2017-10-02 14:34, Nikita Timofeev wrote: > You should change direct binding of sniffer to more convenient extension API: > > ServerModule.contributeAdapterDetectors(binder).add(new > DataloyOracleSniffer()); > > But that's not what causing your problems. > > On Mon, Oct 2, 2017 at 3:28 P

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
You should change direct binding of sniffer to more convenient extension API: ServerModule.contributeAdapterDetectors(binder).add(new DataloyOracleSniffer()); But that's not what causing your problems. On Mon, Oct 2, 2017 at 3:28 PM, a...@dataloy.com wrote: > > > On 2017-10-02 13:59, Nikita Tim

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
On 2017-10-02 13:59, Nikita Timofeev wrote: > Correct way to do this in 4.0: > > runtime = ServerRuntime.builder().addConfig(CONFIG).addModule(new > DataloyOracleModule()).build(); > > On Mon, Oct 2, 2017 at 2:54 PM, a...@dataloy.com wrote: > > > > > > On 2017-10-02 13:40, Nikita Timofeev w

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
Looks like you have some problems with dependencies (and that's probably why you have v.3.1B2 in logs). Line numbers in stack trace doesn't match with 4.0.B1 neither. On Mon, Oct 2, 2017 at 3:21 PM, a...@dataloy.com wrote: > > > On 2017-10-02 14:08, "a...@dataloy.com" wrote: >> >> >> On 2017-10-0

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
On 2017-10-02 14:08, "a...@dataloy.com" wrote: > > > On 2017-10-02 13:59, Nikita Timofeev wrote: > > Correct way to do this in 4.0: > > > > runtime = ServerRuntime.builder().addConfig(CONFIG).addModule(new > > DataloyOracleModule()).build(); > > > > On Mon, Oct 2, 2017 at 2:54 PM, a...@dat

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
On 2017-10-02 13:59, Nikita Timofeev wrote: > Correct way to do this in 4.0: > > runtime = ServerRuntime.builder().addConfig(CONFIG).addModule(new > DataloyOracleModule()).build(); > > On Mon, Oct 2, 2017 at 2:54 PM, a...@dataloy.com wrote: > > > > > > On 2017-10-02 13:40, Nikita Timofeev w

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
Correct way to do this in 4.0: runtime = ServerRuntime.builder().addConfig(CONFIG).addModule(new DataloyOracleModule()).build(); On Mon, Oct 2, 2017 at 2:54 PM, a...@dataloy.com wrote: > > > On 2017-10-02 13:40, Nikita Timofeev wrote: >> How do you create ServerRuntime? Do you use new >> Server

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
On 2017-10-02 13:40, Nikita Timofeev wrote: > How do you create ServerRuntime? Do you use new > ServerRuntime.builder() method or directly create it? > > On Mon, Oct 2, 2017 at 2:20 PM, a...@dataloy.com wrote: > > I got this exception at deploy time (Ia m using 4.0 but in the log refers > >

Re: Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread Nikita Timofeev
How do you create ServerRuntime? Do you use new ServerRuntime.builder() method or directly create it? On Mon, Oct 2, 2017 at 2:20 PM, a...@dataloy.com wrote: > I got this exception at deploy time (Ia m using 4.0 but in the log refers to > 3.1B2, I do not know why): > > Caused by: javax.ejb.EJBEx

Cayenne 4 DI container has no binding for key BindingKey

2017-10-02 Thread a...@dataloy.com
I got this exception at deploy time (Ia m using 4.0 but in the log refers to 3.1B2, I do not know why): Caused by: javax.ejb.EJBException: org.apache.cayenne.CayenneRuntimeException: [v.3.1B2 Feb 05 2013 20:19:35] Error creating instance of class com.dataloy.platform.DataloyOracleAdapter of typ