Problems Upgrading Acegi Plugin from 0.2 to 0.3

View: New views
12 Messages — Rating Filter:   Alert me  

Problems Upgrading Acegi Plugin from 0.2 to 0.3

by krogers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, after a lot of experimentation and investigation I have given up trying to resolve the issue I have been having after upgrading my project's Acegi Plugin to 0.3, in the hope that posting on here will expedite its resolution!

I have followed the steps outlined in the documentation for upgrading from 0.2 to 0.3, but when I try to start up I get the following Exception:

Error executing script RunApp: (class: org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl, method: super$2$getMessageSourceAccessor signature: ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal use of nonvirtual function call
java.lang.VerifyError: (class: org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl, method: super$2$getMessageSourceAccessor signature: ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal use of nonvirtual function call

I am using Grails 1.0.2 and have tried (many times) cleaning via grails clean & clearing out the contents of the .grails folder. I haven't included the full stack trace as it didn't show much interesting but can attach it if needed.

Cheers,
Kris

Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

getMessageSourceAccessor() is a method a few classes deep in the hierarchy in
a Spring class. Have you changed any of your Spring jars? Also, which version
of Java are you running?

Burt

On Friday 02 May 2008 2:06:57 am krogers wrote:

> Well, after a lot of experimentation and investigation I have given up
> trying to resolve the issue I have been having after upgrading my project's
> Acegi Plugin to 0.3, in the hope that posting on here will expedite its
> resolution!
>
> I have followed the steps outlined in the documentation for upgrading from
> 0.2 to 0.3, but when I try to start up I get the following Exception:
>
> Error executing script RunApp: (class:
> org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl, method:
> super$2$getMessageSourceAccessor signature:
> ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal use
> of nonvirtual function call
> java.lang.VerifyError: (class:
> org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl, method:
> super$2$getMessageSourceAccessor signature:
> ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal use
> of nonvirtual function call
>
> I am using Grails 1.0.2 and have tried (many times) cleaning via grails
> clean & clearing out the contents of the .grails folder. I haven't included
> the full stack trace as it didn't show much interesting but can attach it
> if needed.
>
> Cheers,
> Kris



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by krogers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yep I saw that when investigating the problem, its definitely not something that I am calling... I haven't changed my Spring jars at all, just using the ones that are packaged with Grails. I'm running Java 6.

Cheers,
Kris

burtbeckwith wrote:
getMessageSourceAccessor() is a method a few classes deep in the hierarchy in
a Spring class. Have you changed any of your Spring jars? Also, which version
of Java are you running?

Burt

Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by krogers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, there was one upgrading step that I took as recommended that was the instigating difference between when I was running 0.2 & 0.3 version of the plugin. Since the plugin now had java classes that referenced groovy classes I needed to actually turn on generation of class files for the eclipse groovy plugin and use the output as a classes folder in eclipse. Funny thing is, I thought my groovy plugin was up to date, after regularly upgrading all my plugins, but 1.5 is considered a different plugin altogether than 1.0, which I was running, so it was never going to upgrade automatically. Since the groovy jars are bundled with the plugin, its easy to see why I was getting problems & after upgrading everything is working fine.

Cheers,
Kris

Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by tran duc trung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've just upgraded to acegi-0.3 but it does not work. The class RedirectUtils can not be found in LogoutFilterFactoryBean.

Trung

2008/5/2 Burt Beckwith <burt@...>:
getMessageSourceAccessor() is a method a few classes deep in the hierarchy in
a Spring class. Have you changed any of your Spring jars? Also, which version
of Java are you running?

Burt

On Friday 02 May 2008 2:06:57 am krogers wrote:
> Well, after a lot of experimentation and investigation I have given up
> trying to resolve the issue I have been having after upgrading my project's
> Acegi Plugin to 0.3, in the hope that posting on here will expedite its
> resolution!
>
> I have followed the steps outlined in the documentation for upgrading from
> 0.2 to 0.3, but when I try to start up I get the following Exception:
>
> Error executing script RunApp: (class:
> org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl, method:
> super$2$getMessageSourceAccessor signature:
> ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal use
> of nonvirtual function call
> java.lang.VerifyError: (class:
> org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl, method:
> super$2$getMessageSourceAccessor signature:
> ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal use
> of nonvirtual function call
>
> I am using Grails 1.0.2 and have tried (many times) cleaning via grails
> clean & clearing out the contents of the .grails folder. I haven't included
> the full stack trace as it didn't show much interesting but can attach it
> if needed.
>
> Cheers,
> Kris



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you talking about Eclipse using the plugin or is it also a real problem on
the commandline?

Make sure that you're compiling Groovy to some directory other than the root
dir (e.g. bin-groovy) and that it's in your classpath.

I've noticed that whenever I change the classpath in a project that uses a
plugin where Java classes call Groovy classes that I have to right-click some
or all of the Groovy classes and call 'Compile Groovy File', and
RedirectUtils is one of those for me. The plugin doesn't handle this very
well.

btw - this is only loosely related to the email you're replying to - it should
be its own thread.

Burt

On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:

> Hi,
>
> I've just upgraded to acegi-0.3 but it does not work. The class
> RedirectUtils can not be found in LogoutFilterFactoryBean.
>
> Trung
>
> 2008/5/2 Burt Beckwith <burt@...>:
> > getMessageSourceAccessor() is a method a few classes deep in the
> > hierarchy in
> > a Spring class. Have you changed any of your Spring jars? Also, which
> > version
> > of Java are you running?
> >
> > Burt
> >
> > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > Well, after a lot of experimentation and investigation I have given up
> > > trying to resolve the issue I have been having after upgrading my
> >
> > project's
> >
> > > Acegi Plugin to 0.3, in the hope that posting on here will expedite its
> > > resolution!
> > >
> > > I have followed the steps outlined in the documentation for upgrading
> >
> > from
> >
> > > 0.2 to 0.3, but when I try to start up I get the following Exception:
> > >
> > > Error executing script RunApp: (class:
> > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > method: super$2$getMessageSourceAccessor signature:
> > > ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal
> >
> > use
> >
> > > of nonvirtual function call
> > > java.lang.VerifyError: (class:
> > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > method: super$2$getMessageSourceAccessor signature:
> > > ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal
> >
> > use
> >
> > > of nonvirtual function call
> > >
> > > I am using Grails 1.0.2 and have tried (many times) cleaning via grails
> > > clean & clearing out the contents of the .grails folder. I haven't
> >
> > included
> >
> > > the full stack trace as it didn't show much interesting but can attach
> > > it if needed.
> > >
> > > Cheers,
> > > Kris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by tran duc trung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i did not see any import of RedirectUtils in LogoutFilterFactoryBean class. I tried to import the class in spring-security and it seems to work now.

Trung


2008/5/20 Burt Beckwith <burt@...>:
Are you talking about Eclipse using the plugin or is it also a real problem on
the commandline?

Make sure that you're compiling Groovy to some directory other than the root
dir (e.g. bin-groovy) and that it's in your classpath.

I've noticed that whenever I change the classpath in a project that uses a
plugin where Java classes call Groovy classes that I have to right-click some
or all of the Groovy classes and call 'Compile Groovy File', and
RedirectUtils is one of those for me. The plugin doesn't handle this very
well.

btw - this is only loosely related to the email you're replying to - it should
be its own thread.

Burt

On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:
> Hi,
>
> I've just upgraded to acegi-0.3 but it does not work. The class
> RedirectUtils can not be found in LogoutFilterFactoryBean.
>
> Trung
>
> 2008/5/2 Burt Beckwith <burt@...>:
> > getMessageSourceAccessor() is a method a few classes deep in the
> > hierarchy in
> > a Spring class. Have you changed any of your Spring jars? Also, which
> > version
> > of Java are you running?
> >
> > Burt
> >
> > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > Well, after a lot of experimentation and investigation I have given up
> > > trying to resolve the issue I have been having after upgrading my
> >
> > project's
> >
> > > Acegi Plugin to 0.3, in the hope that posting on here will expedite its
> > > resolution!
> > >
> > > I have followed the steps outlined in the documentation for upgrading
> >
> > from
> >
> > > 0.2 to 0.3, but when I try to start up I get the following Exception:
> > >
> > > Error executing script RunApp: (class:
> > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > method: super$2$getMessageSourceAccessor signature:
> > > ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal
> >
> > use
> >
> > > of nonvirtual function call
> > > java.lang.VerifyError: (class:
> > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > method: super$2$getMessageSourceAccessor signature:
> > > ()Lorg/springframework/context/support/MessageSourceAccessor;) Illegal
> >
> > use
> >
> > > of nonvirtual function call
> > >
> > > I am using Grails 1.0.2 and have tried (many times) cleaning via grails
> > > clean & clearing out the contents of the .grails folder. I haven't
> >
> > included
> >
> > > the full stack trace as it didn't show much interesting but can attach
> > > it if needed.
> > >
> > > Cheers,
> > > Kris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's no import because they're in the same package.

Burt

On Tuesday 20 May 2008 11:26:45 am tran duc trung wrote:

> i did not see any import of RedirectUtils in LogoutFilterFactoryBean class.
> I tried to import the class in spring-security and it seems to work now.
>
> Trung
>
> 2008/5/20 Burt Beckwith <burt@...>:
> > Are you talking about Eclipse using the plugin or is it also a real
> > problem on
> > the commandline?
> >
> > Make sure that you're compiling Groovy to some directory other than the
> > root
> > dir (e.g. bin-groovy) and that it's in your classpath.
> >
> > I've noticed that whenever I change the classpath in a project that uses
> > a plugin where Java classes call Groovy classes that I have to
> > right-click some
> > or all of the Groovy classes and call 'Compile Groovy File', and
> > RedirectUtils is one of those for me. The plugin doesn't handle this very
> > well.
> >
> > btw - this is only loosely related to the email you're replying to - it
> > should
> > be its own thread.
> >
> > Burt
> >
> > On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:
> > > Hi,
> > >
> > > I've just upgraded to acegi-0.3 but it does not work. The class
> > > RedirectUtils can not be found in LogoutFilterFactoryBean.
> > >
> > > Trung
> > >
> > > 2008/5/2 Burt Beckwith <burt@...>:
> > > > getMessageSourceAccessor() is a method a few classes deep in the
> > > > hierarchy in
> > > > a Spring class. Have you changed any of your Spring jars? Also, which
> > > > version
> > > > of Java are you running?
> > > >
> > > > Burt
> > > >
> > > > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > > > Well, after a lot of experimentation and investigation I have given
> >
> > up
> >
> > > > > trying to resolve the issue I have been having after upgrading my
> > > >
> > > > project's
> > > >
> > > > > Acegi Plugin to 0.3, in the hope that posting on here will expedite
> >
> > its
> >
> > > > > resolution!
> > > > >
> > > > > I have followed the steps outlined in the documentation for
> > > > > upgrading
> > > >
> > > > from
> > > >
> > > > > 0.2 to 0.3, but when I try to start up I get the following
> > > > > Exception:
> > > > >
> > > > > Error executing script RunApp: (class:
> > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > > > method: super$2$getMessageSourceAccessor signature:
> > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> >
> > Illegal
> >
> > > > use
> > > >
> > > > > of nonvirtual function call
> > > > > java.lang.VerifyError: (class:
> > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > > > method: super$2$getMessageSourceAccessor signature:
> > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> >
> > Illegal
> >
> > > > use
> > > >
> > > > > of nonvirtual function call
> > > > >
> > > > > I am using Grails 1.0.2 and have tried (many times) cleaning via
> >
> > grails
> >
> > > > > clean & clearing out the contents of the .grails folder. I haven't
> > > >
> > > > included
> > > >
> > > > > the full stack trace as it didn't show much interesting but can
> >
> > attach
> >
> > > > > it if needed.
> > > > >
> > > > > Cheers,
> > > > > Kris
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe from this list, please visit:
> > > >
> > > >    http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by tran duc trung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i do not have this class in the package. Did i miss smth?

id do not see it from trunk either : http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/java/org/codehaus/groovy/grails/plugins/springsecurity/.

Trung

2008/5/20 Burt Beckwith <burt@...>:
There's no import because they're in the same package.

Burt

On Tuesday 20 May 2008 11:26:45 am tran duc trung wrote:
> i did not see any import of RedirectUtils in LogoutFilterFactoryBean class.
> I tried to import the class in spring-security and it seems to work now.
>
> Trung
>
> 2008/5/20 Burt Beckwith <burt@...>:
> > Are you talking about Eclipse using the plugin or is it also a real
> > problem on
> > the commandline?
> >
> > Make sure that you're compiling Groovy to some directory other than the
> > root
> > dir (e.g. bin-groovy) and that it's in your classpath.
> >
> > I've noticed that whenever I change the classpath in a project that uses
> > a plugin where Java classes call Groovy classes that I have to
> > right-click some
> > or all of the Groovy classes and call 'Compile Groovy File', and
> > RedirectUtils is one of those for me. The plugin doesn't handle this very
> > well.
> >
> > btw - this is only loosely related to the email you're replying to - it
> > should
> > be its own thread.
> >
> > Burt
> >
> > On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:
> > > Hi,
> > >
> > > I've just upgraded to acegi-0.3 but it does not work. The class
> > > RedirectUtils can not be found in LogoutFilterFactoryBean.
> > >
> > > Trung
> > >
> > > 2008/5/2 Burt Beckwith <burt@...>:
> > > > getMessageSourceAccessor() is a method a few classes deep in the
> > > > hierarchy in
> > > > a Spring class. Have you changed any of your Spring jars? Also, which
> > > > version
> > > > of Java are you running?
> > > >
> > > > Burt
> > > >
> > > > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > > > Well, after a lot of experimentation and investigation I have given
> >
> > up
> >
> > > > > trying to resolve the issue I have been having after upgrading my
> > > >
> > > > project's
> > > >
> > > > > Acegi Plugin to 0.3, in the hope that posting on here will expedite
> >
> > its
> >
> > > > > resolution!
> > > > >
> > > > > I have followed the steps outlined in the documentation for
> > > > > upgrading
> > > >
> > > > from
> > > >
> > > > > 0.2 to 0.3, but when I try to start up I get the following
> > > > > Exception:
> > > > >
> > > > > Error executing script RunApp: (class:
> > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > > > method: super$2$getMessageSourceAccessor signature:
> > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> >
> > Illegal
> >
> > > > use
> > > >
> > > > > of nonvirtual function call
> > > > > java.lang.VerifyError: (class:
> > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl,
> > > > > method: super$2$getMessageSourceAccessor signature:
> > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> >
> > Illegal
> >
> > > > use
> > > >
> > > > > of nonvirtual function call
> > > > >
> > > > > I am using Grails 1.0.2 and have tried (many times) cleaning via
> >
> > grails
> >
> > > > > clean & clearing out the contents of the .grails folder. I haven't
> > > >
> > > > included
> > > >
> > > > > the full stack trace as it didn't show much interesting but can
> >
> > attach
> >
> > > > > it if needed.
> > > > >
> > > > > Cheers,
> > > > > Kris
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe from this list, please visit:
> > > >
> > > >    http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's a Groovy class in the same package -
http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/groovy/org/codehaus/groovy/grails/plugins/springsecurity/ 
and that's the real problem. The Eclipse plugin doesn't handle dependencies
like this very well, so you sometimes need to explicitly compile a Groovy
class.

By adding an unnecessary import and saving the Java class it triggered a
compile of the Groovy class for you.

Burt

On Tuesday 20 May 2008 11:39:55 am tran duc trung wrote:

> i do not have this class in the package. Did i miss smth?
>
> id do not see it from trunk either :
> http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/java/org/code
>haus/groovy/grails/plugins/springsecurity/ .
>
> Trung
>
> 2008/5/20 Burt Beckwith <burt@...>:
> > There's no import because they're in the same package.
> >
> > Burt
> >
> > On Tuesday 20 May 2008 11:26:45 am tran duc trung wrote:
> > > i did not see any import of RedirectUtils in LogoutFilterFactoryBean
> >
> > class.
> >
> > > I tried to import the class in spring-security and it seems to work
> > > now.
> > >
> > > Trung
> > >
> > > 2008/5/20 Burt Beckwith <burt@...>:
> > > > Are you talking about Eclipse using the plugin or is it also a real
> > > > problem on
> > > > the commandline?
> > > >
> > > > Make sure that you're compiling Groovy to some directory other than
> > > > the root
> > > > dir (e.g. bin-groovy) and that it's in your classpath.
> > > >
> > > > I've noticed that whenever I change the classpath in a project that
> >
> > uses
> >
> > > > a plugin where Java classes call Groovy classes that I have to
> > > > right-click some
> > > > or all of the Groovy classes and call 'Compile Groovy File', and
> > > > RedirectUtils is one of those for me. The plugin doesn't handle this
> >
> > very
> >
> > > > well.
> > > >
> > > > btw - this is only loosely related to the email you're replying to -
> > > > it should
> > > > be its own thread.
> > > >
> > > > Burt
> > > >
> > > > On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:
> > > > > Hi,
> > > > >
> > > > > I've just upgraded to acegi-0.3 but it does not work. The class
> > > > > RedirectUtils can not be found in LogoutFilterFactoryBean.
> > > > >
> > > > > Trung
> > > > >
> > > > > 2008/5/2 Burt Beckwith <burt@...>:
> > > > > > getMessageSourceAccessor() is a method a few classes deep in the
> > > > > > hierarchy in
> > > > > > a Spring class. Have you changed any of your Spring jars? Also,
> >
> > which
> >
> > > > > > version
> > > > > > of Java are you running?
> > > > > >
> > > > > > Burt
> > > > > >
> > > > > > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > > > > > Well, after a lot of experimentation and investigation I have
> >
> > given
> >
> > > > up
> > > >
> > > > > > > trying to resolve the issue I have been having after upgrading
> > > > > > > my
> > > > > >
> > > > > > project's
> > > > > >
> > > > > > > Acegi Plugin to 0.3, in the hope that posting on here will
> >
> > expedite
> >
> > > > its
> > > >
> > > > > > > resolution!
> > > > > > >
> > > > > > > I have followed the steps outlined in the documentation for
> > > > > > > upgrading
> > > > > >
> > > > > > from
> > > > > >
> > > > > > > 0.2 to 0.3, but when I try to start up I get the following
> > > > > > > Exception:
> > > > > > >
> > > > > > > Error executing script RunApp: (class:
> > > > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl
> > > > > > >, method: super$2$getMessageSourceAccessor signature:
> > > > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> > > >
> > > > Illegal
> > > >
> > > > > > use
> > > > > >
> > > > > > > of nonvirtual function call
> > > > > > > java.lang.VerifyError: (class:
> > > > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl
> > > > > > >, method: super$2$getMessageSourceAccessor signature:
> > > > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> > > >
> > > > Illegal
> > > >
> > > > > > use
> > > > > >
> > > > > > > of nonvirtual function call
> > > > > > >
> > > > > > > I am using Grails 1.0.2 and have tried (many times) cleaning
> > > > > > > via
> > > >
> > > > grails
> > > >
> > > > > > > clean & clearing out the contents of the .grails folder. I
> >
> > haven't
> >
> > > > > > included
> > > > > >
> > > > > > > the full stack trace as it didn't show much interesting but can
> > > >
> > > > attach
> > > >
> > > > > > > it if needed.
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Kris
> >
> > ---------------------------------------------------------------------
> >
> > > > > > To unsubscribe from this list, please visit:
> > > > > >
> > > > > >    http://xircles.codehaus.org/manage_email
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe from this list, please visit:
> > > >
> > > >    http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by tran duc trung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok, so i remove the import from spring-security, re-run  the tests from command line and here's the stack trace :

....
java:757)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:167)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsS
cript(GrailsScriptRunner.groovy:206)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1094)

        at groovy.lang.ExpandoMetaClass.invokeStaticMethod(ExpandoMetaClass.java
:957)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeStaticMethod(InvokerH
elper.java:800)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeStaticMethodN
(ScriptBytecodeAdapter.java:212)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRu
nner.groovy:123)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
sStarter.java:140)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
er.java:169)
Caused by: java.lang.Error: Unresolved compilation problem:
        RedirectUtils cannot be resolved

        at org.codehaus.groovy.grails.plugins.springsecurity.LogoutFilterFactory
Bean.afterPropertiesSet(LogoutFilterFactoryBean.java:78)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257)
        ... 308 more
Error running tests: org.springframework.beans.factory.BeanCreationException: Er
ror creating bean with name 'logoutFilter': Invocation of init method failed; ne
sted exception is java.lang.Error: Unresolved compilation problem:
        RedirectUtils cannot be resolved


Sorry, i don't know how to get the whole stack trace in the console of Windowz

Trung

2008/5/20 Burt Beckwith <burt@...>:
It's a Groovy class in the same package -
http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/groovy/org/codehaus/groovy/grails/plugins/springsecurity/
and that's the real problem. The Eclipse plugin doesn't handle dependencies
like this very well, so you sometimes need to explicitly compile a Groovy
class.

By adding an unnecessary import and saving the Java class it triggered a
compile of the Groovy class for you.

Burt

On Tuesday 20 May 2008 11:39:55 am tran duc trung wrote:
> i do not have this class in the package. Did i miss smth?
>
> id do not see it from trunk either :
> http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/java/org/code
>haus/groovy/grails/plugins/springsecurity/ .
>
> Trung
>
> 2008/5/20 Burt Beckwith <burt@...>:
> > There's no import because they're in the same package.
> >
> > Burt
> >
> > On Tuesday 20 May 2008 11:26:45 am tran duc trung wrote:
> > > i did not see any import of RedirectUtils in LogoutFilterFactoryBean
> >
> > class.
> >
> > > I tried to import the class in spring-security and it seems to work
> > > now.
> > >
> > > Trung
> > >
> > > 2008/5/20 Burt Beckwith <burt@...>:
> > > > Are you talking about Eclipse using the plugin or is it also a real
> > > > problem on
> > > > the commandline?
> > > >
> > > > Make sure that you're compiling Groovy to some directory other than
> > > > the root
> > > > dir (e.g. bin-groovy) and that it's in your classpath.
> > > >
> > > > I've noticed that whenever I change the classpath in a project that
> >
> > uses
> >
> > > > a plugin where Java classes call Groovy classes that I have to
> > > > right-click some
> > > > or all of the Groovy classes and call 'Compile Groovy File', and
> > > > RedirectUtils is one of those for me. The plugin doesn't handle this
> >
> > very
> >
> > > > well.
> > > >
> > > > btw - this is only loosely related to the email you're replying to -
> > > > it should
> > > > be its own thread.
> > > >
> > > > Burt
> > > >
> > > > On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:
> > > > > Hi,
> > > > >
> > > > > I've just upgraded to acegi-0.3 but it does not work. The class
> > > > > RedirectUtils can not be found in LogoutFilterFactoryBean.
> > > > >
> > > > > Trung
> > > > >
> > > > > 2008/5/2 Burt Beckwith <burt@...>:
> > > > > > getMessageSourceAccessor() is a method a few classes deep in the
> > > > > > hierarchy in
> > > > > > a Spring class. Have you changed any of your Spring jars? Also,
> >
> > which
> >
> > > > > > version
> > > > > > of Java are you running?
> > > > > >
> > > > > > Burt
> > > > > >
> > > > > > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > > > > > Well, after a lot of experimentation and investigation I have
> >
> > given
> >
> > > > up
> > > >
> > > > > > > trying to resolve the issue I have been having after upgrading
> > > > > > > my
> > > > > >
> > > > > > project's
> > > > > >
> > > > > > > Acegi Plugin to 0.3, in the hope that posting on here will
> >
> > expedite
> >
> > > > its
> > > >
> > > > > > > resolution!
> > > > > > >
> > > > > > > I have followed the steps outlined in the documentation for
> > > > > > > upgrading
> > > > > >
> > > > > > from
> > > > > >
> > > > > > > 0.2 to 0.3, but when I try to start up I get the following
> > > > > > > Exception:
> > > > > > >
> > > > > > > Error executing script RunApp: (class:
> > > > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl
> > > > > > >, method: super$2$getMessageSourceAccessor signature:
> > > > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> > > >
> > > > Illegal
> > > >
> > > > > > use
> > > > > >
> > > > > > > of nonvirtual function call
> > > > > > > java.lang.VerifyError: (class:
> > > > > > > org/codehaus/groovy/grails/plugins/springsecurity/GrailsDaoImpl
> > > > > > >, method: super$2$getMessageSourceAccessor signature:
> > > > > > > ()Lorg/springframework/context/support/MessageSourceAccessor;)
> > > >
> > > > Illegal
> > > >
> > > > > > use
> > > > > >
> > > > > > > of nonvirtual function call
> > > > > > >
> > > > > > > I am using Grails 1.0.2 and have tried (many times) cleaning
> > > > > > > via
> > > >
> > > > grails
> > > >
> > > > > > > clean & clearing out the contents of the .grails folder. I
> >
> > haven't
> >
> > > > > > included
> > > > > >
> > > > > > > the full stack trace as it didn't show much interesting but can
> > > >
> > > > attach
> > > >
> > > > > > > it if needed.
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Kris
> >
> > ---------------------------------------------------------------------
> >
> > > > > > To unsubscribe from this list, please visit:
> > > > > >
> > > > > >    http://xircles.codehaus.org/manage_email
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe from this list, please visit:
> > > >
> > > >    http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




RE: Problems Upgrading Acegi Plugin from 0.2 to 0.3

by Dickens, Gordon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Was there any resolution to this?  What should be done to have the class
recogized?  When I build the war, I see the compiled
LogoutFilterFactoryBean class, but still says it can't be found at
deployment time.

-----Original Message-----
From: Burt Beckwith [mailto:burt@...]
Sent: Tuesday, May 20, 2008 11:47 AM
To: user@...
Subject: Re: [grails-user] Problems Upgrading Acegi Plugin from 0.2 to
0.3

It's a Groovy class in the same package -
http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/groovy/org
/codehaus/groovy/grails/plugins/springsecurity/
and that's the real problem. The Eclipse plugin doesn't handle
dependencies like this very well, so you sometimes need to explicitly
compile a Groovy class.

By adding an unnecessary import and saving the Java class it triggered a
compile of the Groovy class for you.

Burt

On Tuesday 20 May 2008 11:39:55 am tran duc trung wrote:

> i do not have this class in the package. Did i miss smth?
>
> id do not see it from trunk either :
>
>http://svn.codehaus.org/grails-plugins/grails-acegi/trunk/src/java/org/
>code haus/groovy/grails/plugins/springsecurity/ .
>
> Trung
>
> 2008/5/20 Burt Beckwith <burt@...>:
> > There's no import because they're in the same package.
> >
> > Burt
> >
> > On Tuesday 20 May 2008 11:26:45 am tran duc trung wrote:
> > > i did not see any import of RedirectUtils in
> > > LogoutFilterFactoryBean
> >
> > class.
> >
> > > I tried to import the class in spring-security and it seems to
> > > work now.
> > >
> > > Trung
> > >
> > > 2008/5/20 Burt Beckwith <burt@...>:
> > > > Are you talking about Eclipse using the plugin or is it also a
> > > > real problem on the commandline?
> > > >
> > > > Make sure that you're compiling Groovy to some directory other
> > > > than the root dir (e.g. bin-groovy) and that it's in your
> > > > classpath.
> > > >
> > > > I've noticed that whenever I change the classpath in a project
> > > > that
> >
> > uses
> >
> > > > a plugin where Java classes call Groovy classes that I have to
> > > > right-click some or all of the Groovy classes and call 'Compile
> > > > Groovy File', and RedirectUtils is one of those for me. The
> > > > plugin doesn't handle this
> >
> > very
> >
> > > > well.
> > > >
> > > > btw - this is only loosely related to the email you're replying
> > > > to - it should be its own thread.
> > > >
> > > > Burt
> > > >
> > > > On Tuesday 20 May 2008 11:05:30 am tran duc trung wrote:
> > > > > Hi,
> > > > >
> > > > > I've just upgraded to acegi-0.3 but it does not work. The
> > > > > class RedirectUtils can not be found in
LogoutFilterFactoryBean.
> > > > >
> > > > > Trung
> > > > >
> > > > > 2008/5/2 Burt Beckwith <burt@...>:
> > > > > > getMessageSourceAccessor() is a method a few classes deep in

> > > > > > the hierarchy in a Spring class. Have you changed any of
> > > > > > your Spring jars? Also,
> >
> > which
> >
> > > > > > version
> > > > > > of Java are you running?
> > > > > >
> > > > > > Burt
> > > > > >
> > > > > > On Friday 02 May 2008 2:06:57 am krogers wrote:
> > > > > > > Well, after a lot of experimentation and investigation I
> > > > > > > have
> >
> > given
> >
> > > > up
> > > >
> > > > > > > trying to resolve the issue I have been having after
> > > > > > > upgrading my
> > > > > >
> > > > > > project's
> > > > > >
> > > > > > > Acegi Plugin to 0.3, in the hope that posting on here will
> >
> > expedite
> >
> > > > its
> > > >
> > > > > > > resolution!
> > > > > > >
> > > > > > > I have followed the steps outlined in the documentation
> > > > > > > for upgrading
> > > > > >
> > > > > > from
> > > > > >
> > > > > > > 0.2 to 0.3, but when I try to start up I get the following
> > > > > > > Exception:
> > > > > > >
> > > > > > > Error executing script RunApp: (class:
> > > > > > >
> > > > > > >org/codehaus/groovy/grails/plugins/springsecurity/GrailsDao
> > > > > > >Impl , method: super$2$getMessageSourceAccessor signature:
> > > > > > >
> > > > > > >()Lorg/springframework/context/support/MessageSourceAccesso
> > > > > > >r;)
> > > >
> > > > Illegal
> > > >
> > > > > > use
> > > > > >
> > > > > > > of nonvirtual function call
> > > > > > > java.lang.VerifyError: (class:
> > > > > > >
> > > > > > >org/codehaus/groovy/grails/plugins/springsecurity/GrailsDao
> > > > > > >Impl , method: super$2$getMessageSourceAccessor signature:
> > > > > > >
> > > > > > >()Lorg/springframework/context/support/MessageSourceAccesso
> > > > > > >r;)
> > > >
> > > > Illegal
> > > >
> > > > > > use
> > > > > >
> > > > > > > of nonvirtual function call
> > > > > > >
> > > > > > > I am using Grails 1.0.2 and have tried (many times)
> > > > > > > cleaning via
> > > >
> > > > grails
> > > >
> > > > > > > clean & clearing out the contents of the .grails folder. I
> >
> > haven't
> >
> > > > > > included
> > > > > >
> > > > > > > the full stack trace as it didn't show much interesting
> > > > > > > but can
> > > >
> > > > attach
> > > >
> > > > > > > it if needed.
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Kris
> >
> > --------------------------------------------------------------------
> > -
> >
> > > > > > To unsubscribe from this list, please visit:
> > > > > >
> > > > > >    http://xircles.codehaus.org/manage_email
> > > >
> > > > ----------------------------------------------------------------
> > > > ----- To unsubscribe from this list, please visit:
> > > >
> > > >    http://xircles.codehaus.org/manage_email
> >
> > --------------------------------------------------------------------
> > - To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email