Issue Details (XML | Word | Printable)

Key: IDE-705
Type: Bug Bug
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Christian Dupuis
Reporter: Imported
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring IDE

context:component-scan dependency problem

Created: 21/Sep/07 08:16 PM   Updated: 16/Dec/07 06:53 PM
Component/s: beans.core
Affects Version/s: 3.0
Fix Version/s: 2.0.3

Time Tracking:
Not Specified

File Attachments: 1. Text File aop.trace.txt (8 kB)
2. Text File config.details.txt (199 kB)

Image Attachments:

1. 2007-09-21_202102.png
(77 kB)
Environment: Windows XP, Eclipse 3.3


 Description  « Hide
in the application context:
<context:component-scan base-package="hu" />

The error:
Unexpected exception parsing XML document from file [M:/workspaces/web/helpdesk.service.force-x.hu/WebContent/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/AnnotationVisitor

The project build path contain User Library which contain the asm-util-2.2.3, asm-2.2.3 and asm-commons-2.2.3 libraries...



 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Christian Dupuis added a comment - 21/Sep/07 08:21 PM
Can you please attach the configuration details of your Eclipse instance (Help -> About Eclipse SDK -> Configuration Details). Thanks.

Janos Haber added a comment - 21/Sep/07 09:07 PM
Moment, I attach, before I found another erro in error log:

java.lang.LinkageError: org/objectweb/asm/ClassReader
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder.validateAspect(AnnotationAspectDefinitionBuilder.java:225)
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder.access$0(AnnotationAspectDefinitionBuilder.java:218)
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder$1.doWithActiveProjectClassLoader(AnnotationAspectDefinitionBuilder.java:203)
at org.springframework.ide.eclipse.core.java.JdtUtils$DefaultProjectClassLoaderSupport.executeCallback(JdtUtils.java:91)
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder.parseAnnotationAspectFromSingleBean(AnnotationAspectDefinitionBuilder.java:199)
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder.parseAnnotationAspects(AnnotationAspectDefinitionBuilder.java:167)
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AnnotationAspectDefinitionBuilder.doBuildAspectDefinitions(AnnotationAspectDefinitionBuilder.java:90)
at org.springframework.ide.eclipse.aop.core.internal.model.builder.AbstractAspectDefinitionBuilder.buildAspectDefinitions(AbstractAspectDefinitionBuilder.java:113)
at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopReferencesFromFile(AopReferenceModelBuilder.java:338)
at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.buildAopModel(AopReferenceModelBuilder.java:108)
at org.springframework.ide.eclipse.aop.core.model.builder.AopReferenceModelBuilder.run(AopReferenceModelBuilder.java:418)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.build(AopReferenceModelProjectBuilder.java:69)
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:624)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Janos Haber added a comment - 21/Sep/07 09:15 PM
Config details

Christian Dupuis added a comment - 22/Sep/07 11:20 AM
Strange, I just tested with a SVN trunk build and with the nightly build you are using. I can't reproduce any problem with having asm libs on the project class path.

Can you attach the output of the Spring AOP Event Trace View for a build you observe the error? Thanks


Janos Haber added a comment - 22/Sep/07 07:44 PM
Here is the aop trace view. The error only exists if the component-scan base-package is exists.

Christian Dupuis added a comment - 24/Nov/07 01:57 PM
Janos, can you please test this against latest Spring 2.5 final release and a Spring IDE 2.0.2 RC1. With the 2.5 release of Spring the jar files contains a repackaged ASM. This might solve the problem.