[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss aop on websphere

2004-12-16 Thread KevinConner
anonymous wrote : It looks like it is completely replacing the private native 
defineClass0 method on the classloader
It's not replacing the call, just allowing the AspectManager to transform the 
loaded bytes before calling defineClass0.

anonymous wrote : IBM's JVM has a similar defineClass0 method that also makes a 
native call
I don't have a version of WebSphere to hand but, if I remember correctly, the 
arguments are different from the Sun ClassLoader.  It should be a simple change 
to the code to make it work with their VM.

Getting loadtime transformations to work in WebSphere is a different matter.

I haven't looked at the code lately but it used to rely on the javassist 
classloading to mirror the classloading policy within the VM.  I wasn't 
convinced that this worked properly in JBoss AS and, as my idea would break the 
1.5 support I haven't yet gone ahead with it.  That and time constraints from 
work ;-)

It is now looking unlikely that I will have the time to revisit this until the 
middle of January but it may already be in hand, have been done, or be totally 
unnecessary :-).

If you want to get the classloader modifications working for the IBM VM then 
give me a shout.

Kev


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858849#3858849

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858849


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss aop on websphere

2004-12-16 Thread tomjnsn
I hadn't tried the alternate way of using loadtime, thanks for pointing that 
out.  I think that might be at least part of the solution, but now I'm running 
into visibility issues with different classes.  

I was looking over the code that creates the new java.lang.ClassLoader 
(AspectManager.getInstrumentedClassLoader()), and I'm having trouble 
understanding what it is doing.  It looks like it is completely replacing the 
private native defineClass0 method on the classloader with its own. It looks 
like it is for doing bytecode manipulation to instrument newly defined classes 
as the classloader pulls them up.  Is that correct?  The thing I guess I'm 
wondering is if it is replacing that native (JNI) method, how does that 
probably necessary native call occur?

IBM's JVM has a similar defineClass0 method that also makes a native call, but 
I'm wondering if there is a difference between the two.

It seems like since I'm running in WebSphere this is a classloader issue.  I'm 
wondering if I shouldn't be focusing on trying to get the app level classloader 
instrumented correctly instead of the system level classloader.  Any thoughts 
on that?  Were there similar issues integrating JBoss-AOP into JBoss-AS, since 
it probably is working with multiple classloaders and scopes?

If I'm able to get this running, I'm definitely more than happy to post 
whatever I find on the wiki... I just need to figure out how to get it to work 
first.

Thanks,

Tom

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858781#3858781

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858781


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-16 Thread eleitevasco
My last message was messed because of the XML stuff of my build file...
Sorry for that.


  | path id=competence.compilation.classpath
  | pathelement path=${hibernate.lib.dir}/hibernate2.jar/
  | pathelement path=${aop.lib.dir}/jboss-aop.jar/
  | pathelement path=${common.lib.dir}/log4j-1.2.9.jar/
  | pathelement path=${ejb.lib.dir}/jboss-j2ee.jar/
  | /path
  | 
  | path id=aopctask.classpath
  | fileset dir=${aop.lib.dir}/
  | /path
  | 
  | path id=aopc.classpath
  | path refid=aopctask.classpath/
  | path refid=competence.compilation.classpath/
  | /path
  | 
  | aopc compilerclasspathref=aopc.classpath verbose=true
  | classpath path=${competence.classes.dir}/
  | src path=${competence.classes.dir}/
  | aoppath path=${aop.config}/
  | /aopc
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858400#3858400

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858400


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: I'd like to controll in order of interception

2004-12-16 Thread [EMAIL PROTECTED]
Hi,

In the 1.0 release it is currently using the order of the interceptors defined 
in jboss-aop.xml, so you could try moving the binding with the traceinterceptor 
to the top:

  | ?xml version=1.0 encoding=UTF-8?
  | aop
  |bind pointcut=all(@trace)
  |interceptor class=TraceInterceptor/
  |/bind
  | 
  | 
  |bind pointcut=execution(POJO-@billable(..))
  |interceptor class=BillingInterceptor/
  |/bind
  | 
  |bind pointcut=execution(* POJO-@billable(..))
  |interceptor class=BillingInterceptor/
  |/bind
  | 
  | /aop
  | 


Apart from that I am currently in the process of  adding 'precedence' to JBoss 
AOP, it is a global relative sorting order of interceptors. Check cvs a bit 
later this week and it should be in.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858664#3858664

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858664


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-16 Thread eleitevasco
I reworked my code in such a way that the invocation for the Configuration 
class is out of the scope of the aopc compiler.

Now everything works fine.

Does anyone had any problems like this?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858523#3858523

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858523


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: I'd like to controll in order of interception

2004-12-15 Thread dolphy
Thank you for your advice, kabir.khan!
I solved that issue.
Thanks.




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858803#3858803

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858803


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Different handling of XML entities between FINAL and RC1

2004-12-14 Thread nthx
[EMAIL PROTECTED] wrote : ...
  | The include is a bug though and we'll fix as soon as we can.
  | 
  | Bill

Just remind. I haven't found that on JIRA.. or has it been already fixed

Regards,
Tomasz 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858572#3858572

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858572


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Different handling of XML entities between FINAL and RC1

2004-12-14 Thread [EMAIL PROTECTED]
thanks...added to jira.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858575#3858575

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858575


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread [EMAIL PROTECTED]
When you aopc your classes, make sure the hibernate libraries are in the 
classpath.  This exception gets thrown because you are aspectizing a class that 
references the HibernateSessionFactory and the compiler cannot find this class 
to determine whether or not any other aspects/pointcuts are triggered.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858395#3858395

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858395


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
It does not work...

there is a weird thing happening here...

I took of the references to the configuration object in my code, and every 
thing works fine. Including code that uses classes of the Hibernate jar.

I use other concrete class for the package, and it worked too.

If I only declare a variable of type Configuration and puts null to it, it 
works. It only breaks when I use some method of this class.

Is there a way to tell aopc not to search this class to compile the aspects?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858405#3858405

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858405


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
I still does not understand what paths am I supposed to put on the task...























And still does not work... 

The first two lines of the debug output:
 [aopc] [debug] jboss.aop.class.path is NULL
 [aopc] [debug] jboss.aop.search.classpath: 'null' true

A new interesting point... if I take the reference to the Configuration object 
from Hibernate, everything works fine. Very strange...

Any thoughts?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858399#3858399

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858399


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
I analysed the hibernate jar and saw that the 
sf.net.hibernate.cfg.Configuration contains inner classes.

I tried to use a class of the log4j pack (the ConsoleAppender) and it worked 
nice. And it does not have inner classes.

Any clues?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858519#3858519

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858519


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread [EMAIL PROTECTED]
It would help if you could send me an easy example that I can reproduce the 
problem.  An example with Hibernate would be fine... [EMAIL PROTECTED]

I'm sorry for your problems. 

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858536#3858536

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858536


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
ok.
I will prepare the example with Hibernate and it to you.

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858538#3858538

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858538


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread [EMAIL PROTECTED]
Add the Hiberante jars to your classpath element of the aopc target.  I.e.:


  | 
  | aopc ...
  | 
  |classpath path=${competence.classes.dir}/
  |classpath refid=aopc.classpath/
  |src path=${competence.classes.dir}/
  |aoppath path=${aop.config}/
  | /aopc
  | 
  | 

Does that work?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858404#3858404

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858404


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss aop on websphere

2004-12-09 Thread [EMAIL PROTECTED]
Did you try this?

http://docs.jboss.org/aop/aspect-framework/reference/en/html/running.html#d0e2599

You may be forced to use the precompiler as I've only tested JBoss AOP on JBoss 
application server and in standalone plain java programs.

Also,

If you get this to work, can you create a WIKI page on this here?  I'd still be 
happy to help.

http://www.jboss.org/wiki/Wiki.jsp?page=JBossAOP

THanks,

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858094#3858094

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858094


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: jboss aop on websphere

2004-12-09 Thread tomjnsn
Thanks for the response Bill, I had missed that part.

Unfortunately, there seem to be different problems from this approach.  I start 
getting things like

anonymous wrote : Faild to aspectize class 
com.ibm.etools.websphere.tools.internal.util.FileUtil.  Could not find class it 
references com.ibm.etools.rft.api.IConnectionData

Then the process just dies after a few of these.  When I do 
jboss.aop.verbose=true, it looks like the ClassLoader is considering every 
single class that it brings up and every method on it and it indicates that it 
successfully loads up the jboss-aop.xml.

I guess the question in my mind is whether or not IBM's JVM (or its root 
classloader) does some voodoo between its classloaders so that where there are 
normally scoping issues they don't have it?  From what I understand a parent 
classloader won't be able to see a child's classes.  I made sure that I was 
using the /p switch on the -Xbootclasspath so I'm pretty positive whatever 
classes it normally puts in the bootclasspath are still there.

I'm going to keep kicking it around and see if I can see anything, but if 
anyone has any insight into IBM's JVM core classes (probably the 
java.lang.ClassLoader) vs. Sun's, and/or the startup of WebSphere that might 
help I'd appreciate it.

Thanks,

Tom

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858114#3858114

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858114


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP metrics ex. doesn't work after redeploy :(

2004-12-08 Thread peter fouquet
Hi,
yesterday i had the same problem with the nullpointer exception in my example 
after redeploy my application.
Now my interceptors are not executing after redeploy my application. I must 
restart the server after each change.
I'm using jboss 4.0.1RC2 and precompile my application with the aop ant task.
Thanks for help
Peter

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857841#3857841

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857841


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP metrics ex. doesn't work after redeploy :(

2004-12-08 Thread hessman
Yes we're using jboss 4.0.0 too. 

JBoss 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857843#3857843

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857843


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP metrics ex. doesn't work after redeploy :(

2004-12-08 Thread hessman
Since post editing is disabled i have some infos to provide for better 
understanding.

We use jdk 1.5 and aop final 1.0.0. The classes are precompiled(aop'ed) and 
then copied into the deploy folder as an *.ear.

thx for help
d.hesse
 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857849#3857849

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857849


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AOP metrics ex. doesn't work after redeploy :(

2004-12-08 Thread [EMAIL PROTECTED]
I'm pretty sure we fixed all the redeployment problems in current CVS by 
redesigning how a class binds to its aspects.  I'll try to incorporate your 
scenario into the testsuite.

Thanks for your patience,

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857874#3857874

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857874


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-12-04 Thread gsteckman
Is there a CVS tag to use to get the revision of the source corresponding to 
release 1.0.0? I was going to fix a bug I found and didn't want to deal with 
any new bugs that might be in development.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857441#3857441

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857441


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Question on Invocation Type in an Interceptor.

2004-12-01 Thread [EMAIL PROTECTED]
'instanceof' springs to mind ;-)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857100#3857100

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857100


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problems with installing AOPFinal to JBoss4.0

2004-11-30 Thread maxpower25
Thanks for your reply...I just tried it out to rename the aop-deployer in the 
deployer-directory of my all-configuration of 
jboss4.0RC1but...unfortunately...it did not help...I still have the same 
problem...jboss cannot find the deployeralso my ejb3.0-things cannot be 
deployed.I will now download jboss4.1...will this help??



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856851#3856851

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856851


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problems with installing AOPFinal to JBoss4.0

2004-11-30 Thread [EMAIL PROTECTED]
maxpower25 wrote : I just tried it out to rename the aop-deployer in the 
deployer-directory of my all-configuration of jboss4.0RC1
  | 

As mentioned in one of the threads I posted a link to (ok one of them is pretty 
long :-), do not use JBoss 4.0RC1. Either use 4.0 or the latest (4.0.1RC1)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856854#3856854

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856854


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Main downloads not pointing to final

2004-11-30 Thread [EMAIL PROTECTED]
Monitor this instead :-) 

http://sourceforge.net/project/showfiles.php?group_id=22866package_id=84165

We'll get the link updated/removed shortly

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856856#3856856

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856856


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problems with installing AOPFinal to JBoss4.0

2004-11-27 Thread [EMAIL PROTECTED]
To save yourself from further problems down the line, get JBoss 4.0.1RC1 as 
that is required for EJB3

http://sourceforge.net/project/showfiles.php?group_id=22866package_id=16942release_id=280264

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856577#3856577

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856577


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problems with installing AOPFinal to JBoss4.0

2004-11-27 Thread [EMAIL PROTECTED]
Do these two threads help?

http://www.jboss.org/index.html?module=bbop=viewtopict=56624
http://www.jboss.org/index.html?module=bbop=viewtopict=56564

Once you have got the AspectManagerService working with jdk 1.5, rename the 
JBOSS/server/all/deploy/jboss-aop-jdk50.deployer directory to 
jboss-aop.deployer. I'll fix the examples for the next release of EJB3 so they 
look for jboss-aop-jdk50.deployer


Kabir


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856572#3856572

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856572


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with Jbos 4.0RC2 + Eclipse 3.1M2 + MyEclipse 3.8

2004-11-24 Thread [EMAIL PROTECTED]
1) Yes. I can't remember exactly what is already deployed in JBoss 4.0 RC2 (a 
jar or a directory). If you can't get it working with JBoss 4.0 RC 2, download 
JBoss 4.0, and follow these instructions
http://www.jboss.org/index.html?module=bbop=viewtopict=56564
http://www.jboss.org/index.html?module=bbop=viewtopict=56624

2) Please look at the packaging tutorial in
jboss-aop_1.0.0-FINAL/docs/aspect-framework/examples/injboss

Kabir

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856238#3856238

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856238


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: within vs. withincode

2004-11-24 Thread [EMAIL PROTECTED]
| Instead of execution:  method() and constructor()
| Instead of withincode: withinmethod and withinconstructor
| 
| It is easier to read.
| 
| Same goes with has and hasfield.

The problem is that you're not being clear on 'within()' usage. I need to know 
about the special cases (withinmethod or withinconstructor)  rather than using 
generic within() operator.

This is not making the language easier.

So either within() should accept all expressions (type, method, constructor, 
etc) or within() should not exist at all, and you need a specific keyword for 
all possible cases. Latter leads to C++ case of operators 'dynamic_cast', 
'static_cast', 'reinterpret_cast', 'const_cast' which I don't think is a good 
idea (there was a reason people were so eager to jump from C++ to Java).

In either case, you should not have *both* generic within() operator and 
specialized operators. In this case you're encumbering the developer to 
memorize the special cases, and not helping him. So one approach should be 
chosen, rather than trying to do both.





View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856324#3856324

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856324


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Field Interception

2004-11-23 Thread [EMAIL PROTECTED]
The Invocation is either a:

FieldGetInvocation

in that case, you can get the field value by the return of invoke.invokeNext();

or FieldSetInvocation which is when the field is written to.  Then the value 
would be:

FieldSetInvocation.getValue()

Take a look at the javadocs for all the invocation objections:



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856082#3856082

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856082


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Field Interception

2004-11-23 Thread bhakthi
Hi Bill,

Thanks a lot!
I can read the values using getValue method.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856106#3856106

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856106


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with Jbos 4.0RC2 + Eclipse 3.1M2 + MyEclipse 3.8

2004-11-23 Thread [EMAIL PROTECTED]
http://docs.jboss.org/aop/aspect-framework/reference/en/html/running.html#jboss


Does that help?



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856110#3856110

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856110


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem with Jbos 4.0RC2 + Eclipse 3.1M2 + MyEclipse 3.8

2004-11-23 Thread anderskj1
thanx for your reply. Is these assumptions right: (I read the link you 
suppplied and testet...no go)

1. I can use the supplied directory wich come with the AOP release instead of 
jar/unjar the deploy file?

2. I have this file structure

C:\jboss-4.0.0\server\default\deploy\WOC.war\(allmywebfiles)

Can I just put the jboss-aop.xml file en the root here? Im using exploded 
archives..that means i dont create my own war files.

If i set the  true
to true under 
C:\jboss-4.0.0\server\default\deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml
 Jboss 4 goes crasy and eats all memory on startup. 

Can anyone give me a quckndirty setup tutorial when the fact is that i have 
the application already deplyed and manually have to add the necesary files. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856130#3856130

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856130


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-22 Thread michaelf
Dmitry,
Please refer to JBoss documentation at

http://docs.jboss.org/aop/aspect-framework/reference/en/html/installing.html

According to the documentation, JBossAOP 1.0.0 should work with JBoss 3.2.6.

I am interesting if it is really possible to run JBossAOP 1.0.0 with JBoss 
3.2.6 or it just my mistake in installation / configuration etc.

Please note, I have performed all required steps according to the documentation 
and the AspectManager service is started without any problems.

Please help!
Best regards, 
Michael




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855862#3855862

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855862


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Installation problems

2004-11-22 Thread lboss
Thanks for your reply. Unfortunately it didn't helped, because you described 
steps, that I have already done: There is a jboss-aop.deployer directory in the 
deploy directory. I post the content:

[EMAIL PROTECTED] all]$ ls -lR deploy/jboss-aop.deployer/
  | deploy/jboss-aop.deployer/:
  | insgesamt 1472
  | -rw-rw-r--1 lschneid lschneid 4575 22. Nov 11:26 base-aop.xml
  | -rw-rw-r--1 lschneid lschneid   404417 22. Nov 11:26 javassist.jar
  | -rw-rw-r--1 lschneid lschneid   515980 22. Nov 11:26 jboss-aop.jar
  | -rw-rw-r--1 lschneid lschneid   191080 22. Nov 11:26 
jboss-aspect-library.jar
  | drwxrwxr-x2 lschneid lschneid 4096 22. Nov 11:26 META-INF
  | -rw-rw-r--1 lschneid lschneid   361155 22. Nov 11:26 trove.jar
  | 
  | deploy/jboss-aop.deployer/META-INF:
  | insgesamt 8
  | -rw-rw-r--1 lschneid lschneid 1253 22. Nov 11:26 jboss-service.xml
  | -rw-rw-r--1 lschneid lschneid  492 22. Nov 11:26 MANIFEST.MF

Any ideas?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855872#3855872

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855872


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-22 Thread KevinConner
Your config is wrong, you should be using AspectDeployer32 instead of 
AspectDeployer.

Kev


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855873#3855873

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855873


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Installation problems

2004-11-22 Thread [EMAIL PROTECTED]
Are you using JBoss 4.0 or 4.0 RC1 as in your original post? Try JBoss 4.0 if 
you haven't already, as there were changes to the deployer architecture between 
the two versions.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855880#3855880

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855880


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-22 Thread Ollihak
Hi,

I finally solved my problems now...Thank you, Kabir, for your help. It was 
somewhat tricky, although everything was available in tutorials, but some of 
them were contradictory etc.

So for those of you, who are beginners of implementing aop, here is what I did 
for implementing my first aspect:

1. Install JBoss-4.0.0 (download the zip-file from jboss.org) and JDK1.5

2. delete the jboss-aop.deployer-file from server/all/deploy

Note: I had to use the jboss-all-configuration, aop did not work with the 
default-configuration on my system.


3. Download jboss-aop_1.0.0-FINAL.zip from jboss.org and unzip it. Copy the 
whole jboss-aop-jdk50.deployer directory into your server/all/deploy directory. 
(If you are using jdk1.4 you have to copy the jboss-aop.deployer-directory)

4. Now, modify the jboss-service.xml-file in the 
jboss-aop-jdk50.deployer/META-INF directory. The only thing you have to do is 
to set the EnableTransformer-Attribute to TRUE. This will cause jboss to take 
a longer time when starting up.

Note: On my system it was not enough to simply set the same attribute to TRUE 
on the jmx-console. 

5. Start the all-configuration by the command
run -c all
on your console.

6. The packaging looks like this:

HelloWorld.ear contains:

-HelloWorld.jar // here are simple EnterpriseBeans that say HelloWorld
-Aspect.aop // this is a jar-file ending with the suffix .aop, which contains 
the aspect code
-Maybe you also add .war-files if you are implementing a servlet
-finally a META-INF/application.xml-file

My application.xml-file looks like this:

?xml version='1.0'  encoding='UTF-8'?
  | !DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE 
Application 1.2//EN'
  |  
'http://java.sun.com/j2ee/dtds/application_1_2.dtd'
  | 
  | application
  | display-nameAOP in JBoss example/display-name
  | module
  | ejbHelloWorld.jar/ejb
  | /module
  | module
  | javaAspect.aop/java
  | /module
  | /application
  | 

Just for completeness, the HelloWorld.jar contains:
- HelloWorld.class  //Remote Interface
- HelloWorldBean.class // Your enterprise bean
- HelloWorldHome.class // Home-Interface
- META-INF/ejb-jar.xml  // deployment-descriptor for the beans

and my Aspect.aop-file contains:
- aspect.class // Aspect code as described in the tutorials
- META-INF/jboss-aop.xml  // AOP-Deployment-descriptor

Note:
Make sure that, when trying to set an aspect on a bean-class or just one method 
of a bean-class for example, the -tag - or other tags in your 
jboss-aop.xml-file - must describe the whole package-structure of your code, to 
find the correct class.

7. Copy this .ear-file to the server/all/deploy-directory to deploy it on the 
server

8. Run your client

Of course, there are different methods to make it work, but this on fit for me.
I hope it might help you...

OLLI



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855902#3855902

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855902


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-22 Thread michaelf
Kevin
Thank you very much!!!

The JBoss group should update their documentation regarding JBoss 3.2.6 as 
following

  | 
  | Edit server/config-name/conf/jboss-service.xml
  | 
  | Add in the beginning of the file 
  | (after classpath codebase=lib archives=*/ ) 
  | the following configuration:
  | 
  | 
  | mbean code=org.jboss.aop.deployment.AspectManagerService32
  |  name=jboss.aop:service=AspectManager
  |  attribute name=EnableTransformerfalse/attribute
  |  !-- only relevant when EnableTransformer is true --
  |  attribute name=SuppressTransformationErrorstrue/attribute
  |  !-- only relevant when Enabletransformer is true.  Optimization 
is optional
  |  only just in case there is a bug in it --
  |  attribute name=Optimizedtrue/attribute
  |  attribute name=Verbosetrue/attribute
  |  /mbean
  | 
  |  mbean code=org.jboss.aop.deployment.AspectDeployer32
  |  name=jboss.aop:service=AspectDeployer
  | /mbean
  | 
Best regards,
   Michael


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855930#3855930

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855930


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-22 Thread [EMAIL PROTECTED]
Thanks for your patience!

I've updated the docs in CVS and will be updated with the next release of JBoss 
AOP.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855932#3855932

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855932


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: What is the Javassist version used by JBoss AOP ?

2004-11-22 Thread [EMAIL PROTECTED]
It is a snapshot...apologies, this is my bad.  I was supposed to at least tag 
Javassist's CVS when I released the last AOP, but I didn't.

FYI, you have to use fully-qualified class names with the annotation compiler 
when referencing Enums or classes.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855958#3855958

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855958


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: What is the Javassist version used by JBoss AOP ?

2004-11-22 Thread agilbert
OK.

My problem was that the klass parameter was referring to another class instead 
of the annotation class. I have no NPE anymore.

About the fully-qualified names: Will this limitation be lifted in a future 
release ? As a programmer I would expect AOP to use the same namespace rules as 
the Java compiler. 

Al

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855964#3855964

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855964


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: What is the Javassist version used by JBoss AOP ?

2004-11-22 Thread [EMAIL PROTECTED]
I don't think this will ever be added.  Its not on our TODO list.  By the time 
we'd have the cycles to implement this, 5.0 may already be widely adopted, then 
again, maybe not...

If you were interested in implementing this, please do.  I would grant you CVS 
access if you did implement it.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855967#3855967

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855967


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem starting service AspectDeployer (JBoss 3.2.6 + J

2004-11-21 Thread [EMAIL PROTECTED]
I think AOP exists in the 4.0+ versions, not 3.2.x

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855830#3855830

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855830


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread Ollihak
Hi Kabir,

well, I reinstalled all those things, and I found some mistakes, that's okay.

But unfortunately it does not work completely. I guess it does not make a 
difference, if I use server/default/deploy or server/all/deploy, both produce 
the same output, when I tried to deploy my firstaspect.jar, here it is:


10:44:26,106 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.0/server/d
efault/deploy/firstaspect.jar }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.0/server/default/deploy/firstaspect.jar
  altDD: null
  lastDeployed: 1100771066106
  lastModified: 1100771066106
  mbeans:

Incompletely deployed packages:
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.0/server/d
efault/deploy/firstaspect.jar }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.0/server/default/deploy/firstaspect.jar
  altDD: null
  lastDeployed: 1100771066106
  lastModified: 1100771066106
  mbeans:

I was not sure, maybe my code was wrong.
So I tried the wiki-POJO-example as a standalone project. As before the problem 
is, that jboss-aop-jdk50.jar does not contain a class-file called 
InvocationType, which is also used in an article by Bill Burke. But anyway, 
fixing, compiling and running the code lead to this error-message:

C:\Test3java -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoa
der POJO
java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReade
rHashMap
at org.jboss.aop.AspectManager.(AspectManager.java:88)
at org.jboss.aop.AspectManager.instance(AspectManager.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.standalone.SystemClassLoader.initialize(SystemClassLoad
er.java:452)
at org.jboss.aop.standalone.SystemClassLoader.loadClass(SystemClassLoade
r.java:162)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread main java.lang.Error: Error installing aspect manager
at org.jboss.aop.standalone.SystemClassLoader.initialize(SystemClassLoad
er.java:463)
at org.jboss.aop.standalone.SystemClassLoader.loadClass(SystemClassLoade
r.java:162)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Conc
urrentReaderHashMap
at org.jboss.aop.AspectManager.(AspectManager.java:88)
at org.jboss.aop.AspectManager.instance(AspectManager.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.standalone.SystemClassLoader.initialize(SystemClassLoad
er.java:452)
... 3 more


Of course, I will try to do the tutorial again, but this is strange, isn't it?

OLLI



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855564#3855564

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855564


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread Ollihak
Hi Kabir,

well, I reinstalled all those things, and I found some mistakes, that's okay.

But unfortunately it does not work completely. I guess it does not make a 
difference, if I use server/default/deploy or server/all/deploy, both produce 
the same output, when I tried to deploy my firstaspect.jar, here it is:

10:44:26,106 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.0/server/d
efault/deploy/firstaspect.jar }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.0/server/default/deploy/firstaspect.jar
  altDD: null
  lastDeployed: 1100771066106
  lastModified: 1100771066106
  mbeans:

Incompletely deployed packages:
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.0/server/d
efault/deploy/firstaspect.jar }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.0/server/default/deploy/firstaspect.jar
  altDD: null
  lastDeployed: 1100771066106
  lastModified: 1100771066106
  mbeans:

I was not sure, maybe my code was wrong.
So I tried the wiki-POJO-example as a standalone project. As before the problem 
is, that jboss-aop-jdk50.jar does not contain a class-file called 
InvocationType, which is also used in an article by Bill Burke. But anyway, 
fixing, compiling and running the code lead to this error-message:

C:\Test3java -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoa
der POJO
java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReade
rHashMap
at org.jboss.aop.AspectManager.(AspectManager.java:88)
at org.jboss.aop.AspectManager.instance(AspectManager.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.standalone.SystemClassLoader.initialize(SystemClassLoad
er.java:452)
at org.jboss.aop.standalone.SystemClassLoader.loadClass(SystemClassLoade
r.java:162)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread main java.lang.Error: Error installing aspect manager
at org.jboss.aop.standalone.SystemClassLoader.initialize(SystemClassLoad
er.java:463)
at org.jboss.aop.standalone.SystemClassLoader.loadClass(SystemClassLoade
r.java:162)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Conc
urrentReaderHashMap
at org.jboss.aop.AspectManager.(AspectManager.java:88)
at org.jboss.aop.AspectManager.instance(AspectManager.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.standalone.SystemClassLoader.initialize(SystemClassLoad
er.java:452)
... 3 more


Of course, I will try to do the tutorial again, but this is strange, isn't it?

OLLI



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855565#3855565

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855565


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread kabkhan
The error messages are different now. Previously the problem seemed to be 
theAspectManagerService in JBoss was not  starting. Can you send me your code 
and I'll take a quick look? [EMAIL PROTECTED]

For the standalone stuff, you need to specify the classpaths and path to your 
jboss-aop.xml file as shown in the documentation.

http://docs.jboss.org/aop/aspect-framework/reference/en/html/running.html#d0e2536

Since concurrent jar is NOT on your class path it cannot be found... Also, when 
running with JDK 1.5, you should use the -javaagent switch rather than 
-Djava.system.class.loader. There are some batch files in the bin directory of 
the distribution to help with this. If you have not gone through the tutorial 
already, so so.

Cheers,

Kabir

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855566#3855566

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855566


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread kabkhan
BTW, the batch file if you want to run standalone with loadtime instrumentation 
for JDK 1.5 is:

bin/run-load15.bat

for running a compiletime intrumented standalone app

bin/run-precompiled.bat


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855569#3855569

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855569


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread kabkhan
Can you post the link for the WIKI POJO example you mentioned?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855571#3855571

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855571


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread Ollihak
Okay, I've sent the code to your e-mail-address.

I'll try things out as soon as possible.
Thanks
OLLI

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855615#3855615

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855615


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-18 Thread kabkhan
When deploying your stuff, I get the same error as you. Your packaging is not 
quite there. The jar containing the jboss-aop.xml file must have the suffix 
.aop.  Also, if this is not the same as your main jar file, it is a good idea 
to combine them in an .ear file since loadtime instrumentation takes place at 
deploy time, so that you get both deployed at the same time. Once loaded a 
class cannot be further instrumented. As a starting point for how to package 
your stuff go through the tutorial in 
jboss-aop_1.0.0-FINAL/docs/aspect-framework/examples/injboss folder. Play with 
it and modify it. Section 10.2 of the reference documentation contains some 
information on what is allowed.

The WIKI you mention (from your email: 
http://www.madplanet.com/jboss-docu-wiki/Wiki.jsp?page=40.AOP.Simple.Example) 
is not our WIKI, and it is grossly out of date. We are at: 

http://www.jboss.org/wiki/Wiki.jsp?page=JBossAOP


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855626#3855626

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855626


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Installation problems

2004-11-17 Thread kabkhan
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855541#3855541

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855542#3855542

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855542


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-17 Thread kabkhan
Seeing as there was another thread on this problem, just to make sure I 
downloaded JBoss 4.0 and JBoss AOP and tried it for myself.

Here are the exact steps I took:

1) Download JBoss 4.0 from 
http://prdownloads.sourceforge.net/jboss/jboss-4.0.0.zip?download

2) Download JBoss AOP FINAL 
fromhttp://prdownloads.sourceforge.net/jboss/jboss-aop_1.0.0-FINAL.zip?download

3) Unzip both JBoss and JBoss AOP

The rest is as mentioned in chapter 8.2 of the documentation;

4) Go to the jboss-4.0.0/server/all/deploy folder and remove the 
jboss-aop.deployer file

FOR JDK 1.4

5) copy jboss-aop_1.0.0-FINAL/jboss-40-install/jboss-aop.deployer to the 
jboss-4.0.0/server/all/deploy folder

6) Start up JBoss using 
$ run -c all

FOR JDK 1.5

5) copy jboss-aop_1.0.0-FINAL/jboss-40-install/jboss-aop-jdk50.deployer to the 
jboss-4.0.0/server/all/deploy folder

6) Start up JBoss using 
$ run -c all



Hope this helps,

Kabir

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855541#3855541

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855541


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-16 Thread kabkhan
Strange, I am pretty sure there was a way to turn this off last time I checked 
(months ago), but it does not appear to be there now unless I am missing 
something very obvious. 

In any case, I have added a fix to cvs, to allow you to specify an optimize 
property on the aopc task. Set it to false to turn off optimizations, i.e.:

  |   aopc compilerclasspathref=classpath classpathref=classpath 
verbose=true optimize=false
  |  classpath path=./
  |  src path=./
  |  aoppath path=jboss-aop.xml/
  |   /aopc
  | 

The optimize attribute defaults to true if not specified.

If you are not familiar with building from cvs, the following thread contains 
details (it spans over a few pages):

http://www.jboss.org/index.html?module=bbop=viewtopict=52857

HTH

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855316#3855316

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855316


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread kabkhan
Hi,

Can you please provide some more details? E.g, structure of your packages, 
jboss-aop.xml file, stacktrace etc.

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855332#3855332

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855332


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread Ollihak
Sorry the jboss-aop-file was not sent properly:
Here it is:
?xml version='1.0' encoding='UTF-8' ?






Thanks 
OLLI


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855347#3855347

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855347


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread Ollihak
Okay, I'll try: 

Here is the aspect code:

package aspect;

import org.jboss.aop.advice.Interceptor;
import org.jboss.aop.joinpoint.Invocation;
import org.jboss.aop.joinpoint.InvocationResponse;
public class myAspect implements Interceptor {

public String getName() {
return myAspect;
}


public Object invoke(Invocation invocation) throws Throwable {

System.out.println(Before!);
InvocationResponse r = (InvocationResponse) 
invocation.invokeNext();
System.out.println(After!);
return r;
}

}

The jboss-aop.xml-file is place in the META-INF-directory and looks like this:

?xml version='1.0' encoding='UTF-8' ?






This code could be compiled and I put it into a jar-file called firstaspect.jar

The HelloOliver-class is the remote-interface of my Bean, HelloOliverBean 
(which contains a method work(), that says Helloworld!). It's jared up with 
the HelloOliverHome-interface in HelloOliver.jar, that was successfully 
deployed on JBoss4.0




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855346#3855346

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855346


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread Ollihak
I don't know, why I cannot post the content of that file, maybe I leave out the 
tags:
jboss-aop.xml

aop
bind pointcut=execution(public void HelloOliver-work())
interceptor class=aspect.myAspect
bind
aop

Again, very sorry for that
OLLI

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855349#3855349

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855349


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread Ollihak
Well, I am sure to have used the right jboss-aop-jdk50.deployer-directory. I 
put it into jboss-4.0.0/server/default/deploy.
Where does the file jboss-common.jar have to be placed? It is not contained in 
the .deploy directory, I simply copied it there. Is this wrong?

Anyway, I changed the HelloOliverBean-thing, which obviously was wrong.

But the problem seems to be more fundamental.
When starting up jboss, I get an error message as follows:

19:43:53,608 WARN  [ServiceController] Problem creating service jboss.aop:servic
e=AspectManager
java.lang.NoClassDefFoundError: org/jboss/aop/InterceptorPointcut
at org.jboss.aop.deployment.AspectManagerService.baseAop(AspectManagerSe
rvice.java:103)
at org.jboss.aop.deployment.AspectManagerService.createService(AspectMan
agerService.java:94)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBean
Support.java:237)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:219)

...and so on.

Later when trying to put the firstaspect.jar into the deploy directory the next 
error message follows:

19:45:00,780 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.0/server/d
efault/deploy/firstaspect.jar }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.0/server/default/deploy/firstaspect.jar
  altDD: null
  lastDeployed: 1100630700780
  lastModified: 1100630700780
  mbeans:

Incompletely deployed packages:
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.0/server/d
efault/deploy/firstaspect.jar }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.0/server/default/deploy/firstaspect.jar
  altDD: null
  lastDeployed: 1100630700780
  lastModified: 1100630700780
  mbeans:

MBeans waiting for other MBeans:
ObjectName: jboss.aop:service=AspectManager
 state: FAILED
 I Depend On:
 Depends On Me: java.lang.NoClassDefFoundError: org/jboss/aop/InterceptorPointcu
t

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.aop:service=AspectManager
 state: FAILED
 I Depend On:
 Depends On Me: java.lang.NoClassDefFoundError: org/jboss/aop/InterceptorPointcu
t


Does this help you??? The fact, that this InterceptorPointcut-class is placed 
in the package org.jboss.aop, made me think that it (and it's subclasses, I 
read about them in an article) are missing in jboss-aop.jar. As well as the 
class-file InvocationType, which is used in the tutorial, but not present in 
the jboss-aop.jar.

I also read in the wiki-tutorial, that there might be a bug in jboss-aop.jar, a 
class-file AspectXMLLoader had to be fixed. Well, I tried both versions of the 
jboss-aop.jar (the original and the fixed one), but both did not work.

I am somehow confused...Regards from Germany and thanks a lot for your help...
OLLI


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855412#3855412

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855412


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread kabkhan
OK, now I am confused. I've had a look in our cvs repository, and 
org.jboss.aop.InterceptorPointcut appears to have been deleted about nine 
months ago. So it looks like you have some incompatible versions of stuff 
somewhere? Make sure you are using the latest JBoss release and the final AOP 
release, if you have not done so already, and follow these steps:
http://docs.jboss.org/aop/aspect-framework/reference/en/html_single/index.html#installing-jboss40

jboss-common.jar is part of jboss already, and is not needed as part of the aop 
deployer. You can find it in jboss-4.0/lib



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855421#3855421

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855421


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: problems with aop

2004-11-16 Thread Ollihak
Okay, I will try...
Thank you!! Maybe I can ask again later on :-)

OLLI

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855423#3855423

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855423


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-16 Thread huqiao
It works.

Thanks.

[EMAIL PROTECTED]

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855452#3855452

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855452


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-15 Thread kabkhan
Specify the jboss.aop.optimized system property and set it to false, i.e:

  |  aopc compilerclasspathref=classpath classpathref=classpath 
verbose=true
  | sysproperty key=jboss.aop.optimized value=true/
  | 
  |  classpath path=./bin/
  |  src path=./bin/
  |  aoppath path=jboss-aop.xml/
  |   /aopc
  | 



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855169#3855169

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855169


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: PER_INSTANCE Aspect and serialization

2004-11-15 Thread kabkhan
I will let Bill comment as to whether or not this is a design feature.

Could you use a mixin class for Externaliable and do the serialization there? 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855196#3855196

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855196


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: PER_INSTANCE Aspect and serialization

2004-11-15 Thread Bill Burke
We'll have to add this as a configuration option.

Mixins have the ability to be serialized, but the aspects are not.

The reason for this is that you may be serializing the class across the network 
to a node that does not have an aspectized class or does not have the exact or 
different aspects deployed.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855213#3855213

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855213


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: PER_INSTANCE Aspect and serialization

2004-11-15 Thread neil_g_avery
Thanks for the quick responses guys. I guess that might be the reason, and it 
makes the sense but as a fundamental java concept it might also make the case 
for it. 

I mean conceptually speaking this raises the question of what is an object? The 
more functionality you push to the aspects the more the functionality is 
dispersed - much akin to lateral inheritance semantics. Ill have a lookin into 
mixing functionality and see what I can make of it.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855270#3855270

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855270


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-15 Thread huqiao
the following error message occure:

[aopc] BUILD FAILED: 
The  task doesn't support the nested sysproperty element.

[EMAIL PROTECTED]

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855289#3855289

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855289


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-14 Thread huqiao
hi, 

could you tell me how to turn JBOSS AOP optimization off in the build.xml of 
ant?

  |target name=compile depends=prepare
  |   javac srcdir=.
  |  destdir=./bin
  |  debug=on
  |  deprecation=off
  |  optimize=off
  |  includes=**
  |  classpath refid=classpath/
  |   /javac
  |   aopc compilerclasspathref=classpath classpathref=classpath 
verbose=true
  |  classpath path=./bin/
  |  src path=./bin/
  |  aoppath path=jboss-aop.xml/
  |   /aopc
  |/target
  | 
[EMAIL PROTECTED]

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855138#3855138

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855138


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Annotation error

2004-11-12 Thread kabkhan
Did you mean this page 
http://www.jboss.org/wiki/Wiki.jsp?page=AOPTransactionDemarcation?

annotation has been renamed to metadata, and I have updated the wiki to 
show this. If there are any other occurrences, please let me know.

Sorry for the confusion!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854974#3854974

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854974


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-12 Thread reverbel
It should be possible to change method arguments at call joinpoints. 

Your example works with the call joinpoint if you turn optimization off 
(-Djboss.aop.optimized=false). 

Cheers,

Francisco

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854990#3854990

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854990


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-12 Thread Bill Burke
Looks like there's a bug in optimized CallBy invocations?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854991#3854991

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854991


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-12 Thread reverbel
Yes.

Francisco

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854994#3854994

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854994


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-11 Thread nthx
Hi

It works.

You must use execution joinpoint instead. It won't work with call joinpoint 
as it doesn't make sense. Even if it works with AspectJ, when I think about 
call type it looks strange to change called method's arguments from caller 
context.

Is there some special reason you can't use execution joinpoint?

So your code should use MethodInvocation class instead, and binding should be 
bind poincut=execution(void i$instanceof{SomeInterface}-someMethod())

:)

Tomasz Nazar

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854748#3854748

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854748


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AspectWerkz AOP with JBoss: could not load aspect

2004-11-11 Thread 12Alex34
Michael, ask for AspectWerkz support on AspectWerkz mailing list
(subscribe by browsing there: http://aspectwerkz.codehaus.org)

Alex

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854773#3854773

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854773


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?

2004-11-11 Thread huqiao
hi, 

what i really want to do is try to change the arguments of method for a system 
class by interceptor. so i can only use the call joinpoint. it is possible to 
get the argument of the caller, but i do not know how to set (change) the 
argument of the callee.

[EMAIL PROTECTED] 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854792#3854792

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854792


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Per-thread aspect scope

2004-11-10 Thread skellen
Bill Burke wrote : nope, never got around to implementing it although it would 
be pretty easy to add.
  | 
  | You need it?  Or is it just a checklist for you?
  | 

It is not a must-have feature, but it would help me a little bit. But I think I 
can achieve my goal (per-thread logging across many methods) with Threadbased 
aspect.


Best regards,

Szczepan Kuzniarz

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854565#3854565

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854565


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Asynchronous Aspect for Tomcat

2004-11-10 Thread ravi76
Can we specify timeout for Asynchronous Aspect ? How to do that in weblogic ?

Regards,
Ravi

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854676#3854676

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854676


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Asynchronous Aspect for Tomcat

2004-11-10 Thread claudehussenet
1/Yes.The asynchronous aspects does support timeout value.

With jdk1.4,u have two options to specify the value:
  * In your code,when u flag the method as an asynchronous method
/** @@org.jboss.aspects.asynchronous.aspects.jboss.Asynchronous 
(timeout=5000)*/ 
  public long myProcess(){...}
  * At run-time ,before calling the method flagged as asynchronous
POJO p = new PO JO();
((AsynchronousFacade)pojo).setTimeout(timeoutValueInMilliSec);
long result = myProcess();

With JDK 1.5,the timeout value is mandatory when u specify the 
annotation.However,u can still overwrite the value specified in your annotation 
in your code as described below.

2/
The first configuration proposed in the previous post should work in any WEB 
container .
I tested with WL 8.1 and I didn't encounter any issue.

Let me know..

Claude




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854704#3854704

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854704


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Mixin class at the class level

2004-11-10 Thread claudehussenet
Any plan to support per class scope for Introduction in the near future ?
Thx Claude

FYI.,what Aspectwerkz does in this area :

  introduction-def name=mixin
  interface=examples.introduction.Mixin
  implementation=examples.introduction.MixinImpl
  deployment-model=perJVM | perClass | perInstance | 
perThread /



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854707#3854707

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854707


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Mixin class at the class level

2004-11-10 Thread Bill Burke
Not anytime soon, but come to think of it you could probably implement it with 
the current mechanisms, but you'd have to do it yourself...


  | 
constructionSomeIntroductionFactory.yourPerClassAspect(this.getClass())/construction
  | 
  |   | 
  |   | Get me?
  |   | 
  |   | Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854710#3854710

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854710


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-11-09 Thread iasandcb
I tried it with JBoss EJB 3 and found that jboss-service.xml was missing in 
jboss-aop_1.0.0-FINAL\jboss-40-install\jboss-aop-jdk50.deployer\META-INF. I 
figured the problem out by copying the same file from RC2.

Thanks,

Ias

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854419#3854419

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854419


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBoss AOP 1.0.0 Final Released

2004-11-09 Thread Bill Burke
This should be fixed in the download...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854420#3854420

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854420


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Asynchronous Aspect for Tomcat

2004-11-09 Thread claudehussenet
Running the Asynchronous Aspect or any others aspects outside of JBOSS server 
is quite straitghforward.

They are differents options of deployment based on your requirements (See 
Reference doc Chap 10)

I personally tested two configurations with Tomcat 5.0


JDK 1.4 using the precompiler.
--
Create a war file as follow :
WEB-INF/lib/concurrent.jar
WEB-INF/lib/jboss-aop.jar
WEB-INF/lib/jboss-aspect-library.jar
WEB-INF/lib/jboss-common.jar
WEB-INF/lib/javassist.jar
WEB-INF/lib/trove.jar

WEB-INF/classes/META-INF/jboss-aop.xml
WEB-INF/classes/...

JDK 1.5 (Loadtime)
---
Modify the classpath as follow ( Use the Configure Tomcat dialogbox)
-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader

Create a war file as follow :
WEB-INF/lib/concurrent.jar
WEB-INF/lib/jboss-aop-jdk50.jar
WEB-INF/lib/jboss-aspect-library-jdk50.jar
WEB-INF/lib/jboss-common.jar
WEB-INF/lib/javassist.jar
WEB-INF/lib/trove.jar

WEB-INF/classes/META-INF/jboss-aop.xml
WEB-INF/classes/...


An alternative for both options (JDK 1.4/JDK 1.5) is to install 
the libraries under CATALINA_HOME/common/endorsed and the jboss-aop.xml
under CATALINA_HOME/common/classes so u don't need to package them with the war 
file.


2/The Asynchronous Aspect does catch all exceptions.
So in order to test ,if the asynchronous method raises an exception do the 
following :

For example if the method execute was annotated with the asynchronous 
annotation.
POJO p = new POJO();
long value=p.execute();
AsynchronousFacade facade = (AsynchronousFacade)p;

// Test if the method raised an exception and get the Exception object.
if (p.getResponseCode()==AsynchronousConstants.EXCEPTIONCAUGHT)
{
((Exception)p.getResponseObject()).printStackTrace();
}

The following constants are also available :
 
AsynchronousConstants.OK (Asynchronous method completed succesfully)
AsynchronousConstants.TIMEOUT(Asynchronons method completed but did timeout)
AsynchronousConstants.NOVALUE(Asynchronous method still running)

I hope it helps .

Rgds-Claude

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854421#3854421

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854421


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: AspectWerkz AOP with JBoss: could not load aspect

2004-11-09 Thread [EMAIL PROTECTED]
Use JBossAOP, not AspectWerkz.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854502#3854502

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854502


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Eclipse project - library references?

2004-11-08 Thread kabkhan
Simply check out all of jboss-head, and create a project called thirdparty, 
that points to the jboss-head/thirdparty module, as outlined here:
http://www.jboss.org/developers/guides/eclipse-howto/index (the ordering of the 
projects might be somewhat out of date, but should give you the general idea)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854283#3854283

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854283


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-08 Thread Squeak
Just wanted to respond back to this thread what the problem is and potential 
resolutions, so it is useful to other people.

This problem with redeployment stems from the fact the the AspectManger inside 
of the AOP framework in certain cases can be loaded inside a different 
ClassLoader than the aspected classes it is servicing.

So, in my particular case, my deployment being scoped, causes my classes to be 
loaded, and unloaded on redeployment inside a different classloader than the 
AspectManager.

Now, why is that a problem? The AspectMangager keeps a cache of ClassAdvisors 
that have been inited (sets up invocations chains, interceptors, etc), that is 
keyed off the class name only. So, when the same class from a different 
ClassLoader is presented, the cached version of the ClassAdvisor is returned, 
and none of the initilization code is ran -- hence the NPE if the previous 
version of the class has been unloaded.

It is now a known issue, and hopfully will be fixed soon. As a workaround,  if 
you scope the classloading of your deployment, and include the JBoss AOP jar 
files inside your deployment, this will cause the AspectManager to be scoped to 
your deployment, and hence will hand out accurate ClassAdvisors on redeployment.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854288#3854288

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854288


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re:

2004-11-08 Thread Bill Burke
Is this an anonymous inner class or just an inner class?  I'm pretty sure there 
is a test in the testsuite somewhere for inner classes.

If you send me a testcase, I can try it out.  [EMAIL PROTECTED]

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854359#3854359

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854359


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: How to get 'caller' object in 'call' type of joinpoint?

2004-11-05 Thread nthx
I'd be satisfied with that. That's exactly what I meant.

Tomasz

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854045#3854045

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854045


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-05 Thread Squeak
I will take a look at today.

I do want to give you an update on what I have found. It is definetly a classloading 
issue.

If in my scoped WAR File, I incldue the jboss-aop*.jar's, the issue does not happen. I 
can redeploy all day long. THat makes sense, because at that point I am using my 
scoped versions of the jar files, and a redeploy clears that out.

Doing a non-scoped WAR, regardless of including the jars or not, fails, since it is 
using the classloader for the aop jar files that have been deployed with the 
jboss-aop.deployer.

So, at this point, I am not sure if this is a real bug, or a configuration issue. 
Regadless, I would like to know why the NPE happens.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854073#3854073

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854073


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-11-05 Thread rkadayam
Thanks very much !!

Rajiv

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854072#3854072

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854072


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: How to get 'caller' object in 'call' type of joinpoint?

2004-11-05 Thread Bill Burke
Ok, this is implemented in CVS.  It will be in next release.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854075#3854075

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854075


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Per-thread aspect scope

2004-11-05 Thread Bill Burke
nope, never got around to implementing it although it would be pretty easy to add.

You need it?  Or is it just a checklist for you?

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854085#3854085

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854085


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-05 Thread Squeak
I take that backincluding the aop jar files does not solve the problem.

When incuding the jar files, the intercepted code is, for all purposes ignored.

It looks like when using your own scoped version of those jar files, either the 
aop$classAdvisor$aop or the _instanceAdvisor returns that there are no aspects to be 
run, and so it does not do the method invocation for the TX demarcation.

I am still playing with it, but it looks like you have to use the server's version of 
the classAdvisors, but a redeploy disconnects it.

I am also going to try to see what happens when I don't precompile it, but instead use 
the load time transformation.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854088#3854088

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854088


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread Bill Burke
The console is a little weird...

It will only show bindings for LOADED classes.  If you execute the code, you should 
see the bindings.

If you execute the code, and the aspect is is UNBOUND in the webconsole, then there is 
a bug in the webconsole.


ANOTHER THING:

By default, class load time transformations are turned off, so your aspect may not be 
instrumenting the code.  Either use the precompiler or read this doco:

http://docs.jboss.org/aop/aspect-framework/reference/en/html/running.html#jboss

I suggest using the precompiler because currently, load-time transformation is a HUGE 
memory hog.

Let me know if any of these fix the problem

Regards

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853873#3853873

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853873


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-11-04 Thread rkadayam
Of course, J2EE TCK may not explicitly reference Aspects or AOP instrumentation. I 
even wonder if J2EE will ever talk about AOP as it may sound a little too 
invasive/disruptive to let bean developers to play with.

But does JBoss plan to implement the strict constraints of J2EE constructs especially 
the ones that related to thread manipulation mandated by the TCK and so prevent the 
deployment of J2EE application that may blatantly violate those constraints ? 
Something that both weblogic and websphere try to enfore today. 

Or is it the case that the TCK does not require application servers to be so precise 
in behavior allowing JBoss to be more tolerant as it is right now ? Sorry, I have'nt 
really had time or patience to read through and digest all of the Specs.

This tolerant behavior is a double-edged sword, it definitely helps developers to 
maybe successfully accomplish certain features via a path that J2EE may not completely 
agree with. But it hampers productivity of developers who most commonly use JBoss for 
development but may have unknowingly violated some J2EE constraints only to realize 
much later in the game during the porting stage. I guess the answer could lie in those 
J2EE verfier tools and how diligently it is used and monitored. Also most of the time 
the disparate class-loader architectures end up being the culprits.

Bill - I appreciate your understanding of my problem and will await your resolution 
however soon you or your team would be able to provide a resolution.

thanks again
Rajiv

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853879#3853879

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853879


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread skellen
Bill Burke wrote : It will only show bindings for LOADED classes.  If you execute the 
code, you should see the bindings.
  | 
You are right, my advice is bound when I instantiate a class and everything works as 
expected.

Bill Burke wrote : I suggest using the precompiler because currently, load-time 
transformation is a HUGE memory hog.
  | 
I see. Is this memory used only during transformation and then released? Or once 
allocated is never freed?

BTW: I'm really impressed by JBossAOP / JDK 1.5 / Annotations combination :-)


Best regards,

Szczepan Kuzniarz

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853885#3853885

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853885


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread KevinConner
anonymous wrote : I suggest using the precompiler because currently, load-time 
transformation is a HUGE memory hog. 

I'm nearly finished an alternative load-time which has a much better memory footprint. 
 I've been working on a different version of the classpool that doesn't store the same 
information.

Kev


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853894#3853894

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853894


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: synchronized methods in instrumented class

2004-11-04 Thread Bill Burke
JBoss has passed certification awhile ago now.

The J2EE TCK tests do not test the behavior in question and  there are no plans to 
implement any strict constraints or stricter verifier.

FYI, it seems Chiba has implemented synchronized blocks, so your fix is scheduled for 
the next AOP release.

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853907#3853907

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853907


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Unbound field advice binding

2004-11-04 Thread Bill Burke
The memory is not released.  What is created is Javassist data structures.  I can't 
release the memory because class transformation happens at class load time.  A class 
may be transformed, then another class that references that transformed class may have 
joinpoints affected by that transformation. 

Bill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853925#3853925

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853925


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


  1   2   3   4   5   6   7   >