Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Problem with Weaving

We had that MalformedURL problem, but not with weaving. It actually
came up in osgi when we manually added the location of the
persistence.xml (/src/META-INF/) to the classpath. You're better off
just putting your persistence.xml in src/META-INF/ and letting
eclipselink go find it itself.

I'm not sure if that's your problem, but I thought I'd reply just in
case it was since it took us many weeks to track it down.

./tch



On Fri, Oct 3, 2008 at 10:12 AM, Heberton Santos
<heberton.java@xxxxxxxxx> wrote:
> Anybody knows that:
>
> /home/halves/desenv/optmize/equipamento/teste.xml:14: Exception
> [EclipseLink-40007] (Eclipse Persistence Services - 1.0.1 (Build 20080905)):
> org.eclipse.persistence.exceptions.StaticWeaveException
> Exception Description: An exception was thrown while weaving:
> /home/halves/desenv/optmize/equipamento/src/java/br/gov/mct/equipamento/jpa
> Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence
> Services - 1.0.1 (Build 20080905)):
> org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
> Exception Description: An exception was thrown while processing
> persistence.xml from URL:
> file:/home/halves/desenv/optmize/equipamento/src/conf/
> Internal Exception: java.net.MalformedURLException
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="equipamento" default="all" basedir=".">
>     <target name="define.task" description="New task definition for toplink
> static weaving">
>         <taskdef name="weave"
> classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask">
>             <classpath
> path="/home/halves/desenv/eclipselink-1.0.1/eclipselink/jlib/eclipselink.jar"
> />
>         </taskdef>
>
>     </target>
>
>     <target name="weaving" description="perform weaving"
> depends="define.task">
>
>         <weave  source="${basedir}/src/java/br/gov/mct/equipamento/jpa"
>                 target="${basedir}/web/WEB-INF/lib/woven.jar"
>                 persistenceinfo="${basedir}/src/conf">
>
>         </weave>
>     </target>
>
> </project>
>
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>


Back to the top