Skip to main content

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

The error seems to be caused, because it cannot find the persistence.xml
file.  I think it needs to be in a META-INF directory under your info path,
"/src/conf", is it there?  You could also try just putting it in META-INF
under the source.  You might get some more info if you set logging to
finest.



Heberton Santos 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>
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/Problem-with-Weaving-tp19798582p19839303.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top