Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Aspects are not working in oc4j 10.1.2

Hello,
I am trying to deploy my application to OC4J 10.1.2. The application was fully functional on my development OC4J 10.1.3, but does not work (correctly) on a 10.1.2.
I get no exception, application just behaves like there were no aspects - the functionality they provide is missing - it seems like the classes were never actually woven.
The 10.1.2 machine is running Java 1.4 and has an aspectjrt.jar in the shared library folder.The application is compiled using ant (and aspectjtools.jar 1.5.3). According to build logs the classes are compiled and woven (what I find strange is, that according to logs _all_ classes are woven - even the classes which have no pointcut defined. Is this normal?). I am overriding the shared aspectjrt.jar (version 1.2.1) with 1.5.3 from my application's WEB-INF/lib. I know that OC4J does not do the overrirding by default, but I have set this in orion-web.xml.

I was getting warnings:
[iajc] warning bad version number found in /opt/oracle/101/j2ee_deploy/j2ee_app/MyApp/core.sdk/lib/aspectjrt.jar expected 1.5.3 found 1.2.1
but I resolved this by modifing the classpath in ant's build.xml so that the proper version is put on the classpath.

So the question is, why aren't my aspects still working?

Thank you in advance.

--
Regards
Tomas Kramar

Back to the top