Results 1 to 3 of 3

Thread: weaver option '-Xset:weaveJavaxPackages=true' has not been specified

  1. #1

    Default weaver option '-Xset:weaveJavaxPackages=true' has not been specified

    Hi,

    I try to define a spring 3 aop pointcut at the jpa EntityManger.persist() . So I start my tomcat with the spring agent and set the the loaderClass to TomcatInstrumentableClassLoader in the meta-inf/context.xml. and in springs applicationContext.xml I add the <load-time-weaver> tag.
    If I got it right to enable the weaving in javax.persitence.EntityManger I have to set "-Xset:weaveJavaxPackages=true" in the meta-inf/aop.xml. So I have in this file
    HTML Code:
    <aspectj>
    	<weaver options="-Xset:weaveJavaxPackages=true">		
    		<include within="my.app.*"/>
    		<include within="javax.persistence.*"/>
    	</weaver>
    	<aspects>
    		<aspect name="my.app.MyAspect" />
    	</aspects>
    </aspectj>

    but still when I start my tomcat I get the message:

    HTML Code:
    [TomcatInstrumentableClassLoader@1b83048] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified

    Any Ideas?

    thanks in advance
    max

  2. #2
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    What happens if you use -javaagent:/path/to/aspectjweaver.jar as a way of enabling LTW?

    -Ramnivas
    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

  3. #3

    Default

    Quote Originally Posted by ramnivas View Post
    What happens if you use -javaagent:/path/to/aspectjweaver.jar as a way of enabling LTW?

    -Ramnivas

    I got the same warning message in my log even when using -javaagent:/path/spring-instrument.jar. I simply ignore it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •