AspectJ: Error can't determine superclass of missing type
Changing the option cantFindType
to
{cantFindType = warning}
in the ajc.properties
file solved the problem to me.
You can specify the property file with -Xlintfile d:\temp\ajc.properties
This means that when weaving type xxx.yyy.zzz.execution.DefaultDServerConfigurator
, the type xxx.yyy.zzz.execution.SystemVersion
is required, but either SystemVersion or its superclass cannot be loaded because dependencies are missing.
Essentially, the aspects require extra class files/jars that are not on your classpath at runtime.
Had the same issue with oracle and kamon-jdbc, adding the following resources/META-INF/aop.xml
file helped:
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
<weaver options="-Xlint:ignore">
<include within="oracle.jdbc..*"/>
</weaver>
</aspectj>