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 7798217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:56:17+00:00 2026-06-01T23:56:17+00:00

I have a pretty complex web-application where the whole DAO has been outsourced to

  • 0

I have a pretty complex web-application where the whole DAO has been outsourced to an @Aspect class which will load database entities whenever methods are accessed which need those.

This whole approach is working wonderfully when the web app is launched from netbeans. However, when I try to deploy the same .war to a standalone tomcat (same version of tomcat, same version of java), I get the following exception upon startup:

Caused by: java.lang.IllegalArgumentException: Advice precedence circularity error

And I just can’t figure out what is causing the problem and why the application runs fine when starting through netbeans.

Maven config:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <fork>false</fork>
                <meminitial>256m</meminitial>
                <maxmem>768m</maxmem>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>${project.build.sourceEncoding}</encoding>
                <showWarnings>true</showWarnings>
                <showDeprecation>false</showDeprecation>
                <debug>true</debug>
                <debuglevel>lines,vars,source</debuglevel>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <archive>
                    <manifest>
                        <addClasspath>true</addClasspath>
                    </manifest>
                </archive>
                <webXml>src\main\webapp\WEB-INF\web.xml</webXml>
            </configuration>
        </plugin>

Spring: 3.1.0.RELEASE:

<context:annotation-config />
<context:component-scan base-package="my.package" />
<mvc:annotation-driven />
<mvc:resources mapping="/resources/**" location="/resources/" />
<aop:aspectj-autoproxy />

Java version:

java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

I honestly don’t know what info I should include in this post as I don’t even know where to start… Feel free to ask for more information if needed.

  • 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-01T23:56:21+00:00Added an answer on June 1, 2026 at 11:56 pm

    This isn’t necessarily a complete answer but the links should be helpful:

    It sounds as if the difference here is that your machines are returning the order of declared methods, of a particular class, differently, which changes how Aspect advices are run:

    Spring uses getDeclaredMethods to determine the order of the advices,
    but getDeclaredMethods returns methods in unspecified order. (see more)

    There is also a Spring ticket for an issue that sounds very similar to yours:
    SPR-5314

    Hope that’s a little helpful. Good luck.

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

Sidebar

Related Questions

We are developing a web app that will have a pretty complex user and
I have a pretty complex criteria, which I use to retrieve, sort and page
I have a PHP based web application which is currently only using one webserver
I have a web service method, this calls functionality that's pretty complex in a
I have a pretty complex java class with over 60 small helper methods used
I have a pretty complex JSF page (we use JSF2 with facelet) in which
Context I am working on a pretty complex web site framework which includes a
I have a pretty complex object graph G with an object o1 in G
I have a pretty complex database schema and would like to know if there
I have a pretty complex linq statement I need to access for different methods.

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.