Re: [aspectwerkz-user] NoClassDefFoundError on applicatoin init
Alexandre Vasseur <[email protected]> Tue, 17 May 2005 10:11:25 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
-verbose:class may help On 5/17/05, Mattias J <[email protected]> wrote: > Alexandre Vasseur wrote: > >Can you confirm that you are using 2.0 ? > > Yes > > Alexandre Vasseur wrote: > >This is rather surprising ... since AspectWerkzPreProcessor is packed in > >aspectwerkz-2.0.jar just as the other AW classes that appear in your > >stacktrace. > > Hmmm. That's right. I first assumed they were in aspectwerkz-jdk5-2.0.jar. > > > Alexandre Vasseur wrote: > >The AW jars must be along this class (ie in the app server classpath if > >this class belongs there). > > I forgot to mention aspectwerkz-2.0.jar and aspectwerkz-jdk5-2.0.jar are > both in my webapps lib dir. And as I said: everything works fine, both with > class and other adviced classes. > > > Alexandre Vasseur wrote: > >-Daspectwerkz.transform.verbose=true may help you perhaps. > > This is the very flag that is being checked on line 369 in > SystemDefinitionContainer, and setting it to true didn't make any difference. > > > Alexandru Popescu wrote: > >It seems like a CL problem. > > Agree. > > > Alexandru Popescu wrote: > >Isn't it possible to debug your application to see what is really goin' > >on? (start Resin in debug mode, hook a remote debug session with your IDE > >and set a breakpoint for > >uncaught NoClassDefFoundError or maybe put directly a breakpoint in > >SystemDefinitionContainer.dump). > > Tried that, but was unable to get anything useful. When clicking "Step > into" on the failing line, the debugger does not follow but I am > immediately brought back to the calling method. > How would I find out the classloader in use in this static method? > > I know there is a JVM parameter to dump all the classloadings, but I cannot > remember the syntax of it. Could anyone remind me? > > /Mattias J > >