Spring: nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice

后端 未结 6 1438
栀梦
栀梦 2020-12-31 13:03

Stack trace:

Oct 24, 2014 8:12:04 AM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org.         


        
6条回答
  •  青春惊慌失措
    2020-12-31 13:20

    It looks like you only add the aopalliance jar to the build classpath of your IDE (Eclipse ?). That explains that the IDE shows no error and accepts to build the application. But in fact, you must also add it to the run classpath.

    Depending on the IDE you use, another menu may allow to configure it. But if you want to run it outside the IDE, you must put the jar in your normal classpath, either by putting it along with other existing jars, or (would be better) by changing you user or system classpath to include the folder that contains the jar.

    I could elaborate on that if you need and if I know your system ...

提交回复
热议问题