AspectJ with time overload + Spring 3.0.5.RELEASE + Tomcat 7 not working

I am trying to understand why binding time is not working for my web application yet. For my regular application (not webapp) it works.

The test project can be found on github (github / peterbollen / helloLtw): helloLtwAspect

When I launch the application, the logs show that the loader weaver ( browsing log ) is working. But when I run EchoServlet, EchoAspect is not gossip in ( view log ).

Does anyone have any ideas? Feel free to check the code and try it yourself (I tested README :)) Thanks for any advice;)

UPDATE 1

Boot time training works when using javaagent aspectjweaver instead of spring-tool.

Why? Do a search for "Time and Time Differences" between aspectj-weaver and spring -weaver. I can’t insert the link (not enough credits :-)).

UPDATE 2

Updated github code.

+4
source share
1 answer

There is a bug in how tomcat 7 supports servlets 3.0, which force Time Weaving to load completely with its beak, details and work around are located at the URL below.

https://jira.springsource.org/browse/SPR-7440 https://issues.apache.org/bugzilla/show_bug.cgi?id=52549 https://issues.apache.org/bugzilla/show_bug.cgi? id = 52444

+1
source

Source: https://habr.com/ru/post/1384351/


All Articles