[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
hello. using jboss-3.2.6 and jboss-aop_1.0.0-FINAL i'm trying to to intercept a call to the protected method in the superclass from the concrete class, so here is my call bind pointcut=call( * com.com1.com2.BaseClass-method1(..)) advice name=method aspect=MyAspect/ /bind first of this

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
Hello, thank you for the reply, I tried instanceof and typedef(Base.class) with no success. (what is the best setup (jboss-aop.xml) whould you recommend for the following scenario) here the set up: public class Base { protected void method1() {} } public class

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
Hello are you using jboss-common.jar and concurrent.jar that come with 3.2.6 or you are using it from aop-1.1.1 because jboss-common.jar files are different? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871301#3871301 Reply to the post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
all I did was copied jar files from jboss-32-install dir (4 files) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871302#3871302 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871302

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
I'm sorry for writing in a separate window, but yes I did follow the instructions to setup jboss-service.xml and etc. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871304#3871304 Reply to the post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
here is what I get running with 1.1.1 005-03-23 11:04:42,843 DEBUG [net.sf.hibernate.engine.CacheSynchronization] transaction after completion callback, status: 4 2005-03-23 11:04:42,843 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction completion 2005-03-23 11:04:42,843 ERROR

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
absolutely, I did all of the menitoned steps! so I guess I don't need to care about the jboss-common.jar, correct? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871318#3871318 Reply to the post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
Hi 1.1.1 and 1.1.0 don't work with 3.2.6, when you use Aspect and it's trying to load a class from one of the aop jar files that class calls a method on a super class from jboss package and this method doesn't exists, also you can not use VM or CLASS scope because RepositoryClassLoader.class

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
Hi, I'll try to do it at some point, but I was able to get going with 1.1.1, the problem was that in was picking up the older version of jboss-aop.jar in the eclipse plugin, but still when running, I get IllegalAccessError, it almost seems like byte code some how gets out of sync:

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
I tried it, I'm pretty sure now, that the jboss-aop.jar used for compiling and at run time is the same. Again, it only happens when the interceptor needs to invokeNext on a protected method. it works for private and public View the original post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: IllegalAccessError when intercepting using

2005-03-23 Thread mikeg123
well, it is wierd, I could understand it if it only worked for public, but the fact that it works for private as well makes it interesting. I don't know if it helps or not but the protected method is called from a SessionBean on it's MyBase class View the original post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - aop introduction and point cut parameters question

2005-03-24 Thread mikeg123
Hello, I have couple of desgn questions: 1. will force the class to implement the interface and will generate a method if one is not implemented by the class. Is there a way just to force the class (or make sure) to implement the interface, but fail if the class doesn't provide method

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - aop introduction and point cut parameters question

2005-03-24 Thread mikeg123
Hello, I have couple of desgn questions: 1. introduction will force the class to implement the interface and will generate a method if one is not implemented by the class. Is there a way just to force the class (or make sure) to implement the interface, but fail if the class doesn't provide

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: aop introduction and point cut parameters question

2005-03-24 Thread mikeg123
Thanks, 1. it would not really work in my case because I have a bunch of Hibernate Data objects and I want them to have something like toMyString() method, so that in my Aspect at runtime I can cast param to that interface and get a nice description, so it's more of a way to force developers

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: aop introduction and point cut parameters question

2005-03-24 Thread mikeg123
Great! thanks. one other question: Can you intercept a field withing a specific method: this doesn't compile: bind pointcut=set($instanceof{com.my.mytypes.*} $instanceof{com.my.SomeClass}-add(java.lang.String)) (or do I need to use within I want to intercept write to the field within the add

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - AOP Security Context

2005-03-28 Thread mikeg123
If I intercept calls to ejb methods, is there a way to get access to a principal object to get user name or user role that called the ejb? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871785#3871785 Reply to the post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP Security Context

2005-03-28 Thread mikeg123
Hi, I'm sorry I meant inside of my Aspect class. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871790#3871790 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871790 ---

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP Security Context

2005-03-28 Thread mikeg123
an addition to the previous: and the reason for that is because I'm doing auditing of ejb methods in my aspect class (writing which ejb method was called into the log file) and I need to know which user called the ejb method that I'm auditing. Thanks Michael. View the original post

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - AspectDeployer is calling method that doesn't exist

2005-03-31 Thread mikeg123
HI NEED HELP. using JBoss 3.2.6 and jboss-aop_1.1.1 aop.deployment.AspectDeployer has this: public AspectDeployer() { setSuffixes(new String[]{aop, aop.xml}); setRelativeOrder(RELATIVE_ORDER_100); } setSuffixes - method is not defined in AspectDeployer or in

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AspectDeployer is calling method that doesn't exist

2005-03-31 Thread mikeg123
setRelativeOrder(RELATIVE_ORDER_100); is not defined anywhere either. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3872264#3872264 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872264

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AspectDeployer is calling method that doesn't exist

2005-03-31 Thread mikeg123
SO WHAT SHOULD I DO??? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3872267#3872267 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872267 --- This SF.net email is

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AspectDeployer is calling method that doesn't exist

2005-03-31 Thread mikeg123
ok, thanks, I guess I'll just try to rebuild one file. by the way you also might want to look at the fact that PER_VM and PER_CLASS doesn't work, one of the Pool classes is looking for a class that is not there either. Thanks Michael View the original post :

[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AspectDeployer is calling method that doesn't exist

2005-04-04 Thread mikeg123
Here is the stack trace if start with PER_CLASS or PER_VM (sounds like packaging issue): Unexpected Error in method: public abstract com.crossbeamsys.nms.task.TaskManagerLocal com.crossbeamsys.nms.task.TaskManagerLocalHome.create() throws javax.ejb.CreateException