Fri Oct 17 11:15:58 PDT 2008 info AspectJ Weaver Version 1.6.1 built on
Thursday Jul 3, 2008 at 18:35:41 GMT
Fri Oct 17 11:15:58 PDT 2008 info register classloader
java.net.URLClassLoader@c260c5
Fri Oct 17 11:15:58 PDT 2008 info using configuration
file:/C:/JavaCAPS6/appserver/domains/domain1/lib/aopjbi.jar!/META-INF/aop.xml
Fri Oct 17 11:15:58 PDT 2008 info register aspect
com.sun.esb.console.jbi.aspects.FilterAspect
Fri Oct 17 11:15:59 PDT 2008 debug weaving
'com.sun.soabi.capsverifier.AppVerifierLifeCycleListener'
Fri Oct 17 11:15:59 PDT 2008 error can't determine modifiers of
missing type com.sun.jbi.framework.ServiceUnitFramework
when processing type mungers
com.sun.soabi.capsverifier.AppVerifierLifeCycleListener
when processing type mungers
when weaving
[Xlint:cantFindType]
Fri Oct 17 11:15:59 PDT 2008 error can't determine modifiers of missing
type com.sun.jbi.framework.ServiceUnit
when processing type mungers
com.sun.soabi.capsverifier.AppVerifierLifeCycleListener
when processing type mungers
when weaving
[Xlint:cantFindType]
Assuming this is a classloading issue, how does one write an aspect
using LTW where the aspect is brought into memory before the actual
impl jars are?
I had been intercepting objects in the jar file containing
com.sun.jbi.framework with other pointcuts but hadn't been referencing
specific classes before.
Now that i have to reference specific classes it is no longer working.
import com.sun.jbi.framework.ServiceUnit;
import com.sun.jbi.framework.ServiceUnitFramework;
public aspect FilterAspect {
...
public pointcut startServiceUnitJoinPoint(
ServiceUnitFramework framework,
Component component,
ServiceUnitManager manager,
ServiceUnit unit) :
withinFramework() &&
execution(private void startServiceUnit(Component,
ServiceUnitManager, ServiceUnit)) &&
this(framework) &&
args(component, manager, unit);
Can i change ServiceUnit and ServiceUnitFramework above to Object or
something more general so i don't reference them at the time the aspect
is loaded? What is best practice here? Note this is occuring in an app
server.
|