Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] StaticWeavingAntTask didn't weave my classes

Could you also include the ant taskdef for your weave task.

You may need to set the classpath of the task and call (include
eclipselink.jar and your classes).

You could also try weaving it as a jar, if that works then we may have an
issue with directories.

Also check you ant log, or use ant -verbose or -debug to see if any other
errors are occurring.

fenrir wrote:
> Hi, everyone, I need your help.
> I tried to use the Static Weaving and somehow it didn't weave my classes.
> The weave taskdef is configured like this:
> <weave source="target/classes" target="bin/weaved"
>                        loglevel="FINEST" />
> all the compiled classes are located in target/classes
> the META-INF/persistence.xml is located in target/classes
> (target/classes/META-INF/persistence.xml)
> My persistence.xml is like this:
> <persistence xmlns="";
>            xmlns:xsi="";
>            xsi:schemaLocation="
>            version="1.0">
>       <persistence-unit name="testJpa" transaction-type="RESOURCE_LOCAL">
>               <class>example.phonebook.model.Person</class>
>       </persistence-unit>
> </persistence>
> Below are the output of the weaving:
> weave:
>   [weave] [EL Finer]: 2008.07.17
> 23:31:42.275--ServerSession(4300037)--Thread(Thread[main,5,main])--Searching
> for default mapping file in file:/C:/my_jpa_project/target/classes/
>   [weave] [EL Finer]: 2008.07.17
> 23:31:43.267--ServerSession(4300037)--Thread(Thread[main,5,main])--Searching
> for default mapping file in file:/C:/my_jpa_project/target/classes/
> Total time: 6 seconds
> There are no messages of my Person.class being weaved. .
> The new Person class in the weaved dir was exactly the same unweaved
> Person.class
> (I compared both through winmerge).
> I don't think I did any mistake in the Entity class because this class
> works nice and
> weaved properly with OpenJPA compiler.
> Look forward to your help!! Thank you very much!!!
> Regards,
> Donny

--- James Sutherland
 EclipseLink ,
Wiki: EclipseLink , TopLink 
Forums: TopLink , EclipseLink 
Book: Java Persistence 
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top