Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:09:34+00:00 2026-06-07T13:09:34+00:00

i wrote a very simple Aspect with Spring AOP. It works, but i have

  • 0

i wrote a very simple Aspect with Spring AOP. It works, but i have some problems understanding what is really going on. I don’t understand why i have to add the aspectjweaver.jar? The Spring-AOP documentation clearly states that i don’t need aspectj compiler or weaver as long as i just use Spring-AOP:

The AOP runtime is still pure Spring AOP though, and there is no dependency on the AspectJ compiler or weaver.

My configuration looks like this:

<aop:aspectj-autoproxy />

@Aspect
@Service
public class RemoteInvocationAspect {

    @Before("execution(* at.test.mypackage.*.*(..))")
    public void test() {
        System.out.println("test");
    }
    ...

I also tried XML configuration, didn’t change anything though. Maybe i could just let it go, but i really would like to understand why aspectj-weaver is used? If i don’t add the dependency in maven i get java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:09:37+00:00Added an answer on June 7, 2026 at 1:09 pm

    Spring AOP implementation I think is reusing some classes from the aspectj-weaver. It still uses dynamic proxies – doesn’t do byte code modification.

    The following comment from the spring forum might clarify.

    Spring isn’t using the AspectJ weaver in this case. It is simply
    reusing some of the classes from aspectjweaver.jar.

    -Ramnivas

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wrote some very simple tests (I know, they are not 'conclusive', but
I have wrote a very simple php upload. But I want to insert image
I have a very simple little piece of Lua code, which I wrote while
I just wrote a very simple Expect script for wrapping around rsync, but it
I have been trying PyMC these days, and I wrote a very simple mcmceasy.py.
I want to have a very simple editor for my website that i wrote
I wrote very simple code to understand how columnstretch and calllater work but I
I wrote this - very simple - function, and then wondered does VB have
I wrote some very simple code since I'm just starting C++ and I want
I have some very simple sample code like this: $.ajax({ url: 'demo2.htm', success: function(loadeddata){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.