Try setting the RetentionPolicy on your method annotation.
@Target({ElementType.METHOD})
| @Retention(RetentionPolicy.RUNTIME)
| public @interface MyAnnotation {}
This solved the problem for me.
View the original post :
I have humble pie to eat.
The real problem was due to packaging of the application incorrectly. The
aspected object classes created by the aopc compiler were not included in the
.aop archive.
Jeremy
View the original post :
Hi,
I also am trying to implement pointcuts using annotated methods. Also seeing
the same problem of no aspect invocation.
Jeremy
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4247756#4247756
Reply to the post :
BTW, the version of AOP I am using is 2.1.1.GA. The one bundled in AS 5.1.0.GA
Jeremy
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4247776#4247776
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247776
Hi,
I am having problems getting my pointcuts to execute when deployed to AS
5.1.0.GA. The aspected objects are precompiled and use declarative
configuration.
The same aspected objects are being invoked using JUnit tests and these work.
My application is organised identically to the
Further update to my last post which was slightly misleading.
Examining again the MANIFEST there was is a control character x0f before the
carriage return and line feed which will explain things. Was a typo.
Trying the manifest again with Class-Path: but without the control
character and
Removed Class-Path: and still the same error is reported at server startup.
Jeremy
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244678#4244678
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244678
Yes that was the problem. Removed the Class-Path: entry from the manifest
and it is working.
Thank you for your help.
Jeremy
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244707#4244707
Reply to the post :
jar -tf MVCCSampleEJB.jar
| META-INF/
| META-INF/MANIFEST.MF
| uk/
| uk/ac/
| uk/ac/xxx/
| uk/ac/xxx//
| uk/ac/xxx//mvcc/
| uk/ac/xxx//mvcc/ejb/
| uk/ac/xxx//mvcc/ejb/servicelocator/
| uk/ac/xxx//mvcc/impl/
| uk/ac/xxx//mvcc/model/
|
Manifest-Version: 1.0
| Class-Path:
|
Jeremy
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244601#4244601
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244601
___
Here is a directory listing of the exploded EAR
[whitin...@localhost ear]$ ls -R
| .:
| META-INF MVCCSampleEJB.jar
|
| ./META-INF:
| application.xml jboss-app.xml MANIFEST.MF
|
and this is the jboss-app.xml contents.
?xml version=1.0 encoding=UTF-8 ?
| !DOCTYPE jboss-app
|
' in
abstractvfsdeploymentcont...@12556446{vfszip:/home/whitingjr/java/jboss-5.1.0.GA/server/default/deploy/MVCCSampleEAR.ear/}
My application is an EAR module with a child EJB module. A very simple setup
for the research project I am working on. This module has worked on JBoss AS
4.2.2. I have
12 matches
Mail list logo