Java – spring 3.0 when AspectJ is loaded 5. Release Tomcat 7 cannot work normally
I'm trying to find out why load - time weaving hasn't worked on my web application yet For my normal application (not webapp), it's running
The test project can be found on GitHub (GitHub / peterbollen / helloltw): helloltwaspect
When I start the application, the log shows that the weaver was working (view log) when it was loaded But when I trigger the echoservlet, echoaspect is not programmed into the view log
Does anyone have an idea? Feel free to check the code and try yourself (I tested the readme:):) thank you for any suggestions; -)
Update 1
When using Java agent aspectjweaver instead of spring instrument, weaving works normally when loading
Why? Search for "loading time – difference between AspectJ weaver and spring Weaver" I can't paste the link (not enough credit: -)
Update 2
The GitHub code has also been updated
Solution
There is an error in how Tomcat 7 supports servlet 3.0, which causes the load time to weave completely. The details and solutions are located in URLs 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