Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Question configuring static weaving ant task

Odd.

Can you trying using the eclipselink.jar instead of the OSGi jars?

Also ensure your JobStatus is on the classpath.



NBW wrote:
> 
> Hi folks,
> 
> I am trying to configure a static weaving ANT task. I am using Eclipselink
> 2.2.0v20110202-r8913 which is packaged with Glassfish 3.1. 
> 
> I have my task setup and added the following JARs to my ANT classpath to
> support the task:
> 
> org.eclipse.persistence.jpa.jar
> org.eclipse.persistence.core.jar
> org.eclipse.persistence.asm.jar
> javax.persistence.jar
> 
> When I run the weaving task I get the following error:
> 
> org.eclipse.persistence.exceptions.ValidationException
> The type [ class com.foo.jobs.JobStatus] for the attribute [status] on the
> entity class [class com.foo.AJob] is not a valid type for an enumerated
> mapping. The attribute must be defined as a Java enum.
> 
> This error doesn't make sense because the attribute in question looks like
> this:
> 
> @Column(name="STATUS")
> @Enumerated(EnumType.STRING)
> private JobStatus status
> 
> and JobStatus is an enum class:
> 
> public enum JobStatus {
> 	CREATED,
> 	RUNNING,
> 	FINISHED,
> 	ERROR
> }
> 
> Thanks,
> 
> -Noah
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 


-----
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 
Blog:  http://java-persistence-performance.blogspot.com/ Java Persistence
Performance 
-- 
View this message in context: http://old.nabble.com/Question-configuring-static-weaving-ant-task-tp32448799p32463465.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top