Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ in WAR files

Hi, thanks everyone for my previous question. 
I changed my pointcut to include the exact exception classes:
pointcut doPrint(): execution(* Person.*(..) throws ModelException,
 ApplicationException );

But now if I call my Person class through JSP I get " 
org/aspect/lang/Signature ..." error.

I tried to do whole loads of other things to solve this error, but nothing 
worked. So I started from the beginning again. 

I created simple Java and aspect classes, tested them using ajc compiler. It 
worked fine. So then I created a WAR file (included my Java and aspect classes) 
and a JSP.

But now when I invoke my Java class, I get NoAspectBoundException error:
"
org.apache.jasper.JasperException: org/aspectj/lang/NoAspectBoundException
	at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:254)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:295)
"

If I can run my aspects properly through console but not in a war file, it must 
mean I am missing something in my WAR file. I have included aspect jars in my 
lib dir. 

Any ideas?
Thanks



Back to the top