2012-05-14 32 views
3

我在我们的应用程序中使用某个方面得到错误。AspectJ:错误无法确定缺失类型的超类

我需要什么来解决这个错误或这对我说了什么?

[[email protected]] error can't determine superclass of missing type xxx.yyy.zzz.execution.SystemVersion 
when weaving type xxx.yyy.zzz.execution.DefaultDServerConfigurator 
when weaving classes 
when weaving 
[Xlint:cantFindType] 

回答

5

这意味着编织类型xxx.yyy.zzz.execution.DefaultDServerConfigurator时,类型xxx.yyy.zzz.execution.SystemVersion是必需的,但由于依赖关系丢失或者SystemVersion或它的超类不能被加载。

本质上,这些方面需要额外的类文件/罐子,它们在运行时不在你的类路径中。

+0

谢谢。其实这是maven和Eclipse之间的奇怪行为。但你的回答帮助我找出问题所在。 – Tima

+0

是的,我认为它会是这样的。 :) –

+0

@Mur Votema,你是怎么用Maven + Eclipse解决你的问题的?我看到相同的错误(尽管使用TomcatInstrumentableClassLoader) – herman

6

更改选项cantFindType

{cantFindType = warning} 

在​​文件解决了这个问题对我来说。

您可以指定属性文件-Xlintfile d:\temp\ajc.properties

相关问题