Skip to main content

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

You need to make sure that aspectjrt.jar is on the classpath.

> -----Original Message-----
> From: aspectj-users-admin@xxxxxxxxxxx
> [mailto:aspectj-users-admin@xxxxxxxxxxx]On Behalf Of
> qqasim@xxxxxxxxxxxxxx
> Sent: Saturday, August 23, 2003 8:15 AM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [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
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>



Back to the top