multi tenant single db issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

multi tenant single db issue

Luca Farsetti
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?

Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

lucastex
Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?


Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?



Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?




Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?





Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?






Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?







Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

lucastex
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?








Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread

Caused by ClassNotFoundException: grails.plugin.multitenant.core.annotation.MultiTenant

->> 156 | findClass in org.codehaus.groovy.tools.RootLoader

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   306 | loadClass in java.lang.ClassLoader

|   128 | loadClass in org.codehaus.groovy.tools.RootLoader

|   247 | loadClass in java.lang.ClassLoader

|   303 | innerRun in java.util.concurrent.FutureTask$Sync

|   138 | run      in java.util.concurrent.FutureTask

|   895 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker

|   918 | run      in     ''

^   680 | run . .  in java.lang.Thread


the message it's clear, but i don't understand why i have it.


Some suggestion?









Reply | Threaded
Open this post in threaded view
|

multi tenant single db issue

Steve Ronderos-2
Hi Luca,

We are working on this improvement. I'll see if I have some time tonight to release the new version that contains that pull request https://github.com/multi-tenant/grails-multi-tenant-single-db/issues/27

Steve

On Wednesday, April 17, 2013, Luca Farsetti wrote:
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303<

Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Steve Ronderos-2
Luca,

Good news, I've got the changes you (and others) have requested integrated and tested.  I'm ready to make a 0.8.3 release as soon as I get access to the release repository.  In the mean time, if you wouldn't mind helping out the testing process, I've merged all of the changes into the master github repo (https://github.com/multi-tenant/grails-multi-tenant-single-db).  You should be able to download the source and run 'grails maven-install' set the version in your app to 0.8.3-SNAPSHOT.

You should then be able to add the configuration to your Config.groovy
multiTenant.resolveTenantBeforeLogin=true
Let me know how it goes!
Steve


On Wed, Apr 17, 2013 at 6:16 PM, Steve Ronderos <[hidden email]> wrote:
Hi Luca,

We are working on this improvement. I'll see if I have some time tonight to release the new version that contains that pull request https://github.com/multi-tenant/grails-multi-tenant-single-db/issues/27

Steve


On Wednesday, April 17, 2013, Luca Farsetti wrote:
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303<


Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
Hi Steve, thank you for you job and for your reply. I have tried to install 0.8.3-SNAPSHOP as you describe above, but i have an issue during plugin installation and i'm not able to understand how to solve it (i have never used relase plugin before)

Compile error during compilation with javac.

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:14: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:33: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    public void setEventBroker(EventBroker broker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:18: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:22: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.core.log.TenantMDC

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:3: package grails.plugin.hibernatehijacker.hibernate.events does not exist

import grails.plugin.hibernatehijacker.hibernate.events.HibernateEventPropertyUpdater;

                                                       ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:37: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    private HibernateEventPropertyUpdater hibernateEventPropertyUpdater;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:170: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    public void setHibernateEventPropertyUpdater(HibernateEventPropertyUpdater updater) {

                                                 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:5: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventConsumer;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:25: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:61: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    public void setEventBroker(EventBroker eventBroker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:74: cannot find symbol

symbol: class EventConsumer

class HawkEventProxy implements EventConsumer {

                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:76: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    EventBroker eventBroker;

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:79: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public HawkEventProxy(EventBroker eventBroker, String eventName) {

                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:85: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public void consume(Event event) {

                        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:3: package grails.plugin.hibernatehijacker.hibernate does not exist

import grails.plugin.hibernatehijacker.hibernate.HibernateConfigPostProcessor;

                                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:24: cannot find symbol

symbol: class HibernateConfigPostProcessor

public class TenantHibernateFilterConfigurator implements HibernateConfigPostProcessor {

                                                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:22: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:30: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void newHibernateSessionCreated(Event event) {

                                           ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:37: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:21: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.core.log.TenantMDC

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:29: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming("hibernate.sessionCreated")

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:36: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:47: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.created");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:52: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.deleted");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:57: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.updated");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:84: method does not override or implement a method from a supertype

    @Override

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:30: method does not override or implement a method from a supertype

    @Override

    ^





2013/4/18 Steve Ronderos <[hidden email]>
Luca,

Good news, I've got the changes you (and others) have requested integrated and tested.  I'm ready to make a 0.8.3 release as soon as I get access to the release repository.  In the mean time, if you wouldn't mind helping out the testing process, I've merged all of the changes into the master github repo (https://github.com/multi-tenant/grails-multi-tenant-single-db).  You should be able to download the source and run 'grails maven-install' set the version in your app to 0.8.3-SNAPSHOT.

You should then be able to add the configuration to your Config.groovy
multiTenant.resolveTenantBeforeLogin=true
Let me know how it goes!
Steve


On Wed, Apr 17, 2013 at 6:16 PM, Steve Ronderos <[hidden email]> wrote:
Hi Luca,

We are working on this improvement. I'll see if I have some time tonight to release the new version that contains that pull request https://github.com/multi-tenant/grails-multi-tenant-single-db/issues/27

Steve


On Wednesday, April 17, 2013, Luca Farsetti wrote:
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303<



Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
SOLVED! Simply declare plugin dependencies explicitly for hawk.eventing and hibernate-hijacking.

Thank you so much


2013/4/18 Luca Farsetti <[hidden email]>
Hi Steve, thank you for you job and for your reply. I have tried to install 0.8.3-SNAPSHOP as you describe above, but i have an issue during plugin installation and i'm not able to understand how to solve it (i have never used relase plugin before)

Compile error during compilation with javac.

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:14: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:33: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    public void setEventBroker(EventBroker broker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:18: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:22: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.core.log.TenantMDC

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:3: package grails.plugin.hibernatehijacker.hibernate.events does not exist

import grails.plugin.hibernatehijacker.hibernate.events.HibernateEventPropertyUpdater;

                                                       ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:37: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    private HibernateEventPropertyUpdater hibernateEventPropertyUpdater;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:170: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    public void setHibernateEventPropertyUpdater(HibernateEventPropertyUpdater updater) {

                                                 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:5: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventConsumer;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:25: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:61: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    public void setEventBroker(EventBroker eventBroker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:74: cannot find symbol

symbol: class EventConsumer

class HawkEventProxy implements EventConsumer {

                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:76: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    EventBroker eventBroker;

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:79: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public HawkEventProxy(EventBroker eventBroker, String eventName) {

                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:85: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public void consume(Event event) {

                        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:3: package grails.plugin.hibernatehijacker.hibernate does not exist

import grails.plugin.hibernatehijacker.hibernate.HibernateConfigPostProcessor;

                                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:24: cannot find symbol

symbol: class HibernateConfigPostProcessor

public class TenantHibernateFilterConfigurator implements HibernateConfigPostProcessor {

                                                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:22: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:30: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void newHibernateSessionCreated(Event event) {

                                           ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:37: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:21: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.core.log.TenantMDC

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:29: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming("hibernate.sessionCreated")

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:36: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:47: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.created");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:52: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.deleted");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:57: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.updated");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:84: method does not override or implement a method from a supertype

    @Override

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:30: method does not override or implement a method from a supertype

    @Override

    ^





2013/4/18 Steve Ronderos <[hidden email]>
Luca,

Good news, I've got the changes you (and others) have requested integrated and tested.  I'm ready to make a 0.8.3 release as soon as I get access to the release repository.  In the mean time, if you wouldn't mind helping out the testing process, I've merged all of the changes into the master github repo (https://github.com/multi-tenant/grails-multi-tenant-single-db).  You should be able to download the source and run 'grails maven-install' set the version in your app to 0.8.3-SNAPSHOT.

You should then be able to add the configuration to your Config.groovy
multiTenant.resolveTenantBeforeLogin=true
Let me know how it goes!
Steve


On Wed, Apr 17, 2013 at 6:16 PM, Steve Ronderos <[hidden email]> wrote:
Hi Luca,

We are working on this improvement. I'll see if I have some time tonight to release the new version that contains that pull request https://github.com/multi-tenant/grails-multi-tenant-single-db/issues/27

Steve


On Wednesday, April 17, 2013, Luca Farsetti wrote:
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303<




Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Steve Ronderos-2
Hmm, that is interesting.  Glad you were able to get it solved.  I should have access to release the plugin today.  Please let me know if the new filter configuration feature works out for you so that I can release with confidence.

Steve


On Thu, Apr 18, 2013 at 3:58 AM, Luca Farsetti <[hidden email]> wrote:
SOLVED! Simply declare plugin dependencies explicitly for hawk.eventing and hibernate-hijacking.

Thank you so much


2013/4/18 Luca Farsetti <[hidden email]>
Hi Steve, thank you for you job and for your reply. I have tried to install 0.8.3-SNAPSHOP as you describe above, but i have an issue during plugin installation and i'm not able to understand how to solve it (i have never used relase plugin before)

Compile error during compilation with javac.

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:14: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:33: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    public void setEventBroker(EventBroker broker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:18: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:22: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.core.log.TenantMDC

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:3: package grails.plugin.hibernatehijacker.hibernate.events does not exist

import grails.plugin.hibernatehijacker.hibernate.events.HibernateEventPropertyUpdater;

                                                       ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:37: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    private HibernateEventPropertyUpdater hibernateEventPropertyUpdater;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:170: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    public void setHibernateEventPropertyUpdater(HibernateEventPropertyUpdater updater) {

                                                 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:5: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventConsumer;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:25: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:61: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    public void setEventBroker(EventBroker eventBroker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:74: cannot find symbol

symbol: class EventConsumer

class HawkEventProxy implements EventConsumer {

                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:76: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    EventBroker eventBroker;

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:79: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public HawkEventProxy(EventBroker eventBroker, String eventName) {

                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:85: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public void consume(Event event) {

                        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:3: package grails.plugin.hibernatehijacker.hibernate does not exist

import grails.plugin.hibernatehijacker.hibernate.HibernateConfigPostProcessor;

                                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:24: cannot find symbol

symbol: class HibernateConfigPostProcessor

public class TenantHibernateFilterConfigurator implements HibernateConfigPostProcessor {

                                                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:22: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:30: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void newHibernateSessionCreated(Event event) {

                                           ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:37: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:21: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.core.log.TenantMDC

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:29: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming("hibernate.sessionCreated")

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:36: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:47: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.created");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:52: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.deleted");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:57: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.updated");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:84: method does not override or implement a method from a supertype

    @Override

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:30: method does not override or implement a method from a supertype

    @Override

    ^





2013/4/18 Steve Ronderos <[hidden email]>
Luca,

Good news, I've got the changes you (and others) have requested integrated and tested.  I'm ready to make a 0.8.3 release as soon as I get access to the release repository.  In the mean time, if you wouldn't mind helping out the testing process, I've merged all of the changes into the master github repo (https://github.com/multi-tenant/grails-multi-tenant-single-db).  You should be able to download the source and run 'grails maven-install' set the version in your app to 0.8.3-SNAPSHOT.

You should then be able to add the configuration to your Config.groovy
multiTenant.resolveTenantBeforeLogin=true
Let me know how it goes!
Steve


On Wed, Apr 17, 2013 at 6:16 PM, Steve Ronderos <[hidden email]> wrote:
Hi Luca,

We are working on this improvement. I'll see if I have some time tonight to release the new version that contains that pull request https://github.com/multi-tenant/grails-multi-tenant-single-db/issues/27

Steve


On Wednesday, April 17, 2013, Luca Farsetti wrote:
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303<





Reply | Threaded
Open this post in threaded view
|

Re: multi tenant single db issue

Luca Farsetti
already tested and it work as i expect. Another things you should test extensively it's the entire plugin without spring security core not installed. I don't know why, but i have some strange issues if i use multi tenant single db without spring security core, in particular even with the right configuration during application start plugin don't find tenant Class, but if i clean project and i start it it's work, but sometimes i have some stacktrace about filters. And if i stop the application and restart it, i have the same ClassNotFoundEception error as describe above.
If you need a more specifc description, i'll send you.
i use grails 2.1 for this project.

Thanks again for your work


2013/4/18 Steve Ronderos <[hidden email]>
Hmm, that is interesting.  Glad you were able to get it solved.  I should have access to release the plugin today.  Please let me know if the new filter configuration feature works out for you so that I can release with confidence.

Steve


On Thu, Apr 18, 2013 at 3:58 AM, Luca Farsetti <[hidden email]> wrote:
SOLVED! Simply declare plugin dependencies explicitly for hawk.eventing and hibernate-hijacking.

Thank you so much


2013/4/18 Luca Farsetti <[hidden email]>
Hi Steve, thank you for you job and for your reply. I have tried to install 0.8.3-SNAPSHOP as you describe above, but i have an issue during plugin installation and i'm not able to understand how to solve it (i have never used relase plugin before)

Compile error during compilation with javac.

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:14: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/impl/CurrentTenantThreadLocal.java:33: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.core.impl.CurrentTenantThreadLocal

    public void setEventBroker(EventBroker broker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:18: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:22: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.core.log.TenantMDC

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:3: package grails.plugin.hibernatehijacker.hibernate.events does not exist

import grails.plugin.hibernatehijacker.hibernate.events.HibernateEventPropertyUpdater;

                                                       ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:37: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    private HibernateEventPropertyUpdater hibernateEventPropertyUpdater;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventListener.java:170: cannot find symbol

symbol  : class HibernateEventPropertyUpdater

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventListener

    public void setHibernateEventPropertyUpdater(HibernateEventPropertyUpdater updater) {

                                                 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:4: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:5: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventBroker;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.EventConsumer;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:25: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    private EventBroker eventBroker;

            ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:61: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

    public void setEventBroker(EventBroker eventBroker) {

                               ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:74: cannot find symbol

symbol: class EventConsumer

class HawkEventProxy implements EventConsumer {

                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:76: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    EventBroker eventBroker;

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:79: cannot find symbol

symbol  : class EventBroker

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public HawkEventProxy(EventBroker eventBroker, String eventName) {

                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:85: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.HawkEventProxy

    public void consume(Event event) {

                        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:3: package grails.plugin.hibernatehijacker.hibernate does not exist

import grails.plugin.hibernatehijacker.hibernate.HibernateConfigPostProcessor;

                                                ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:24: cannot find symbol

symbol: class HibernateConfigPostProcessor

public class TenantHibernateFilterConfigurator implements HibernateConfigPostProcessor {

                                                          ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:6: package grails.plugins.hawkeventing does not exist

import grails.plugins.hawkeventing.Event;

                                  ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:7: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.Consuming;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:8: package grails.plugins.hawkeventing.annotation does not exist

import grails.plugins.hawkeventing.annotation.HawkEventConsumer;

                                             ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:22: cannot find symbol

symbol: class HawkEventConsumer

@HawkEventConsumer

 ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:30: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void newHibernateSessionCreated(Event event) {

                                           ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:37: cannot find symbol

symbol  : class Event

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    public void currentTenantUpdated(Event event) {

                                     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/core/log/TenantMDC.java:21: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.core.log.TenantMDC

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:29: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming("hibernate.sessionCreated")

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterEnabler.java:36: cannot find symbol

symbol  : class Consuming

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateFilterEnabler

    @Consuming(CurrentTenant.TENANT_AFTER_CHANGE_EVENT)

     ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:47: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.created");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:52: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.deleted");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:57: cannot find symbol

symbol  : class EventConsumer

location: class grails.plugin.multitenant.singledb.hibernate.TenantHibernateEventProxy

        EventConsumer proxy = new HawkEventProxy(eventBroker, "tenant.updated");

        ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateEventProxy.java:84: method does not override or implement a method from a supertype

    @Override

    ^

/Users/luca/.grails/2.1.0/projects/TEST-TenancySnapshop/plugins/multi-tenant-single-db-0.8.3-SNAPSHOT/src/java/grails/plugin/multitenant/singledb/hibernate/TenantHibernateFilterConfigurator.java:30: method does not override or implement a method from a supertype

    @Override

    ^





2013/4/18 Steve Ronderos <[hidden email]>
Luca,

Good news, I've got the changes you (and others) have requested integrated and tested.  I'm ready to make a 0.8.3 release as soon as I get access to the release repository.  In the mean time, if you wouldn't mind helping out the testing process, I've merged all of the changes into the master github repo (https://github.com/multi-tenant/grails-multi-tenant-single-db).  You should be able to download the source and run 'grails maven-install' set the version in your app to 0.8.3-SNAPSHOT.

You should then be able to add the configuration to your Config.groovy
multiTenant.resolveTenantBeforeLogin=true
Let me know how it goes!
Steve


On Wed, Apr 17, 2013 at 6:16 PM, Steve Ronderos <[hidden email]> wrote:
Hi Luca,

We are working on this improvement. I'll see if I have some time tonight to release the new version that contains that pull request https://github.com/multi-tenant/grails-multi-tenant-single-db/issues/27

Steve


On Wednesday, April 17, 2013, Luca Farsetti wrote:
yes, i have seen it. Now i try to make a demo application with 0.8.3 version, if i can install it


2013/4/17 Lucas F. A. Teixeira <[hidden email]>
AFAIK, People are working in this issue.
Check plugin's github issues!

[]s,



On Wed, Apr 17, 2013 at 12:28 PM, Luca Farsetti <[hidden email]> wrote:
Another issue. I have google around but i'm not sure how to solve the problem.
My user domain is mark as @Multitenant, but when i authenticate, filter chain execute first spring security filters, and after multi tenant filters. The result it's that i can login into another tenant with a non valid user. Googling around i understand that the solution it's to change filters order, but how can i do that? Or there is an alternative way to do what i wanna do?

best regards


2013/4/17 Luca Farsetti <[hidden email]>
just for information. i use grails 2.1 multi-tenant-single-db 0.8.2


2013/4/17 Luca Farsetti <[hidden email]>
well, I spoke too soon. After first application start, if i stop it and restart it i have the same error.

If i install spring.security-core plugin (just installed it, without s2-quickstart execution) all this problem disappear. 


2013/4/17 Luca Farsetti <[hidden email]>
Anyway, after a clean everything work. Sometime obvious solutions are not so obvious :D
Thank you Lucas


2013/4/17 Luca Farsetti <[hidden email]>
Well, it was a fresh project so i don't tryed, but i'll do it. 


2013/4/17 Lucas F. A. Teixeira <[hidden email]>

Tried to clean your app? 

Strange, class not found. 
After compiled your project, check if everything is in there (target)

[]s,



On Wed, Apr 17, 2013 at 7:50 AM, Luca Farsetti <[hidden email]> wrote:
Hello all, 
I have a single pet application for test multi-tenant-single-db.

After following plugin setup (mt-quickstart, setting Config.groovy, setting string/Resource.groovy), if i try to run the application i have this error:

| Error 2013-04-17 12:42:54,337 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: grails/plugin/multitenant/core/annotation/MultiTenant

Message: grails/plugin/multitenant/core/annotation/MultiTenant

   Line | Method

->> 303<