|
|
|
|
Re: @Version and DescriptorException [message #813858 is a reply to message #813716] |
Mon, 05 March 2012 19:49 |
Mauro Flores Messages: 84 Registered: September 2009 Location: Brasil |
Member |
|
|
Quote:This error does not occur if you package both classes in the same jar?
It DOES happen even packaging all classes in the same jar.
I've just checked, the problem happens even if all classes have the same package (qualified name).
Quote:That is odd, please include your persistence.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="XYZ">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>XyzDS</jta-data-source>
<mapping-file>META-INF/orm.xml</mapping-file>
<class>Foo</class>
<class>Boo</class>
<class>Doo</class>
<properties>
<property name="eclipselink.logging.level" value="INFO" />
</properties>
</persistence-unit>
</persistence>
[Updated on: Mon, 05 March 2012 20:12] Report message to a moderator
|
|
|
Re: @Version and DescriptorException [message #825161 is a reply to message #813858] |
Tue, 20 March 2012 14:53 |
|
But you said in your first post,
>> If I package Foo and Boo in the same ejb jar, this exception is not shown.
So, that was false?
Try the latest release, this may have been something that was fixed. Otherwise log a bug, it seems like the version field is not getting initialized correctly.
James : Wiki : Book : Blog : Twitter
|
|
|
Powered by
FUDForum. Page generated in 0.03264 seconds