java.lang.ClassNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The following config raises an exception when building the AOP reference model: {code} <aop:config> <aop:pointcut id="securityPointcut" expression="execution(* de.secpod.acegi.simplexfire.*Service+.*(..))" /> <aop:advisor pointcut-ref="securityPointcut" advice-ref="securityInterceptor" /> </aop:config> {code} {code} The Exception is: java.lang.ClassNotFoundException: org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:121) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.parseAdvisors(XmlAspectDefinitionBuilder.java:93) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.parseXmlAspects(XmlAspectDefinitionBuilder.java:332) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.doBuildAspectDefinitions(XmlAspectDefinitionBuilder.java:60) at org.springframework.ide.eclipse.aop.core.internal.model.builder.AbstractAspectDefinitionBuilder.buildAspectDefinitions(AbstractAspectDefinitionBuilder.java:106) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopReferencesFromFile(AopReferenceModelBuilder.java:375) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopModel(AopReferenceModelBuilder.java:152) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.run(AopReferenceModelBuilder.java:450) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.build(AopReferenceModelProjectBuilder.java:68) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager####1.run(SpringProjectContributionManager.java:91) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runBuilder(SpringProjectContributionManager.java:99) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:66) at org.eclipse.core.internal.events.BuildManager####2.run(BuildManager.java:603) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager####1.run(BuildManager.java:230) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:217) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) {code} The MethodSecurityInterceptor is in the Classpath.
    via by Imported,
  • The following config raises an exception when building the AOP reference model: {code} <aop:config> <aop:pointcut id="securityPointcut" expression="execution(* de.secpod.acegi.simplexfire.*Service+.*(..))" /> <aop:advisor pointcut-ref="securityPointcut" advice-ref="securityInterceptor" /> </aop:config> {code} {code} The Exception is: java.lang.ClassNotFoundException: org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:121) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.parseAdvisors(XmlAspectDefinitionBuilder.java:93) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.parseXmlAspects(XmlAspectDefinitionBuilder.java:332) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.doBuildAspectDefinitions(XmlAspectDefinitionBuilder.java:60) at org.springframework.ide.eclipse.aop.core.internal.model.builder.AbstractAspectDefinitionBuilder.buildAspectDefinitions(AbstractAspectDefinitionBuilder.java:106) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopReferencesFromFile(AopReferenceModelBuilder.java:375) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopModel(AopReferenceModelBuilder.java:152) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.run(AopReferenceModelBuilder.java:450) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.build(AopReferenceModelProjectBuilder.java:68) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager####1.run(SpringProjectContributionManager.java:91) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runBuilder(SpringProjectContributionManager.java:99) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:66) at org.eclipse.core.internal.events.BuildManager####2.run(BuildManager.java:603) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager####1.run(BuildManager.java:230) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:217) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) {code} The MethodSecurityInterceptor is in the Classpath.
    via by Imported,
    • java.lang.ClassNotFoundException: org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:121) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.parseAdvisors(XmlAspectDefinitionBuilder.java:93) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.parseXmlAspects(XmlAspectDefinitionBuilder.java:332) at org.springframework.ide.eclipse.aop.core.internal.model.builder.XmlAspectDefinitionBuilder.doBuildAspectDefinitions(XmlAspectDefinitionBuilder.java:60) at org.springframework.ide.eclipse.aop.core.internal.model.builder.AbstractAspectDefinitionBuilder.buildAspectDefinitions(AbstractAspectDefinitionBuilder.java:106) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopReferencesFromFile(AopReferenceModelBuilder.java:375) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopModel(AopReferenceModelBuilder.java:152) at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.run(AopReferenceModelBuilder.java:450) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.build(AopReferenceModelProjectBuilder.java:68)
    No Bugmate found.