-
1. Re: NoClassDefFoundError HeirarchicalLoaderRepository3
fabiocsilva Dec 10, 2006 11:02 PM (in response to wallayta)I had problem the same. I will test my problem of the granularity(other topic) with the instrumentor of the BEA
-
2. Re: NoClassDefFoundError HeirarchicalLoaderRepository3
wallayta Dec 12, 2006 9:01 AM (in response to wallayta)When I try to have AOP load-time in jdk-1.4 manner with installed jrockit-1.5 I also get an error about HeirarchicalLoaderRepository3, not a NoClassDefFoundError by a java.lang.ClassCircularityError.
I really don't understand why. -
3. Re: NoClassDefFoundError HeirarchicalLoaderRepository3
flavia.rainone.old Dec 13, 2006 8:10 AM (in response to wallayta)If you want to do load-time with jrockit, you just can't do that in the jdk1.4 manner.
You need to use the native classloader hooks of jrockit.
http://labs.jboss.com/portal/jbossaop/docs/1.5.0.GA/docs/aspect-framework/reference/en/html/running.html#d0e3208
But, since you installed JRockit 1.5, you can also go for the load time instrumentations in the jdk1.5 manner. -
4. Re: NoClassDefFoundError HeirarchicalLoaderRepository3
wallayta Dec 14, 2006 8:50 AM (in response to wallayta)"flavia.rainone" wrote:
If you want to do load-time with jrockit, you just can't do that in the jdk1.4 manner.
You need to use the native classloader hooks of jrockit.
http://labs.jboss.com/portal/jbossaop/docs/1.5.0.GA/docs/aspect-framework/reference/en/html/running.html#d0e3208
But, since you installed JRockit 1.5, you can also go for the load time instrumentations in the jdk1.5 manner.
First, thank you for posting an your message.
When I posted the first message about this problem I've configured AOP load-time in JDK1.5 plain manner, and I get the specified exception stack trace. I've also tried with the jrockit specific jrockit-pluggable-instrumentor.jar from lib-50 (and modification about MBean code to use AspectManagerService rather than AspectManagerServiceJDK5).
I'd like to precise that when I use load-time for a standalone Java app I've no problem, It's only with JBossAS that I get the error. -
5. Re: NoClassDefFoundError HeirarchicalLoaderRepository3
flavia.rainone Dec 21, 2006 11:28 PM (in response to wallayta)I couldn't reproduce this error on my machine.
Are you running "all" or "default" jboss as configuration?
Besides, could you please confirm that you've followed all these steps (http://labs.jboss.com/portal/jbossaop/docs/1.5.0.GA/docs/aspect-framework/reference/en/html/running.html#d0e3174):
1.Copy the jboss-aop-jdk15.deployer file to server/<config-name>/deploy directory
2.Edit jboss-aop-jdk15.deployer/META-INF/jboss-service.xml so that:
mbean code is org.jboss.aop.deploymentAspectManagerService
EnableLoadTimeWeaving is set to true
3.Edit run.sh to increment JAVA_OPTS and JBOSS_CLASSPATH environment variables like this:JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME \ -Xmanagement:class=org.jboss.aop.hook.JRockitPluggableClassPreProcessor" JBOSS_CLASSPATH="$JBOSS_CLASSPATH:jrockit-pluggable-instrumentor.jar"