[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Is dump file is required?

No sure which line you mean is 'in red' as it is all black and white for me :)

> [AppClassLoader@7af77af7] *info weaver operating in reweavable mode.  Need to verify any required types exist.*

that line just means the weaver is in reweavable mode and for anything
you attempt to reweave it will be trying to locate any original
aspects used in addition to your new ones (reweaving is the process of
weaving something that was already woven previously - if you aren't
loading classes that have previously been woven then it won't make any
difference to you).

aop.xml looks OK.  Perhaps switch from -verbose to -debug to see which
types are actually being loaded by that loader.  Also add
'-showWeaveInfo' so you will get information about any weaving that is
occurring.  Right now I can only assume that AppClassLoader is not the
one loading your app, otherwise it would get woven.  Are you actually
driving the application to cause it to be loaded (and so woven?)


On 26 September 2011 20:38, zjtian <tzj163@xxxxxxx> wrote:
> hi,
> Thank you ! I modified the java.policy file and WAS can be started
> successfully. But I think that weaving opeation is failure, for the
> information in the
> %WAS_HOME%\AppServer\profiles\AppSrv01\logs\server1\native_stderr.log, the
> information is the following:
> Log file started at: [10-9-27 10:22:25:890 CST]
> ************* End Display Current Environment *************
> [AppClassLoader@7af77af7] info AspectJ Weaver Version 1.6.11 built on
> Tuesday Mar 15, 2011 at 15:31:04 GMT
> [AppClassLoader@7af77af7] info register classloader
> sun.misc.Launcher$AppClassLoader@7af77af7
> [AppClassLoader@7af77af7] info using configuration
> file:/D:/Program%20Files/IBM/WebSphere/AppServer/lib/myaspect.jar!/META-INF/aop.xml
> [AppClassLoader@7af77af7] info register aspect xib.mdb.aspect.MyAspect
> [AppClassLoader@7af77af7] *info weaver operating in reweavable mode.  Need
> to verify any required types exist.*
> the red line means the target class not be found,doesn't it?
> My aop.xml is the following:
>  <aspectj>
>        <weaver options="-verbose -Xreweavable">
>        <include within="com.temenos.tocf.delivery.mdb.DeliveryMDB"/>
>        <include within="com.temenos.tocf.listener.mdb.TOCFListenerMDB"/>
>        <include within="com.temenos.tocf.ofsmessage.mdbOFSMessageMDB"/>
>    </weaver>
>    <aspects>
>        <aspect name="xib.mdb.aspect.MyAspect"/>
>    </aspects>
> </aspectj>
> My aspect class is the following:
> package xib.mdb.aspect;
> public aspect MyAspect {
> private pointcut myMessage() : execution(* *onMessage(*));
>        before () : myMessage() {
>                System.out.println("hello, this is a test to intercepter mdb");
>        }
> }
> Target class DeliveryMDB,TOCFListenerMDB and OFSMessageMDB are three Message
> Driver Bean.
> Are there some wrong in aop.xml ,aspect class or other wrong?
> --
> View this message in context: http://aspectj.2085585.n4.nabble.com/Is-dump-file-is-required-tp3842934p3846079.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users