-
1. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
pjhavariotis Feb 3, 2017 6:16 AM (in response to francogar82)Have you created the appropriate custom module org.eclipse.persistence ?
-
2. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
francogar82 Feb 3, 2017 6:20 AM (in response to pjhavariotis)yes. the eager relation works properly
Il 03/Feb/2017 12:17, "pjhavariotis" <do-not-reply@jboss.com> ha scritto:
JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>
JBoss EAP 6.4.0 - EclipseLink 2.6.2
reply from Panagiotis Chavariotis
<https://developer.jboss.org/people/pjhavariotis?et=watches.email.thread>
in JBoss AS - View the full discussion
<https://developer.jboss.org/message/968254?et=watches.email.thread#968254>
-
3. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
pjhavariotis Feb 3, 2017 6:23 AM (in response to francogar82)Can you share the persistence.xml ?
-
4. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
francogar82 Feb 3, 2017 6:34 AM (in response to francogar82)Sure,
this is the persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
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_2_0.xsd">
<persistence-unit transaction-type="JTA" name="NAME">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>it.xxx.yyy.zzz.entities.Evento</class>
<class>it.xxx.yyy.zzz.entities.EventoPK</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="javax.persistence.jtaDataSource" value="java:/NameDS" />
<property name="eclipselink.target-server" value="JBoss" />
<property name="eclipselink.logging.level" value="FINEST"/>
<property name="eclipselink.weaving" value="dynamic" />
<property name="eclipselink.weaving.lazy" value="true"/>
<property name="eclipselink.logging.file" value="output.log"/>
</properties>
</persistence-unit>
</persistence>
-
5. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
pjhavariotis Feb 3, 2017 6:57 AM (in response to francogar82)It seems OK, though I had used the "static" value for the "eclipselink.weaving" property.
Can you check also if there any system properties in your standalone.xml starting with "eclipselink." ? If yes, you must remove them.
-
6. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
francogar82 Feb 3, 2017 7:00 AM (in response to pjhavariotis)No nothing in standalone.xml
-
7. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
andey Feb 8, 2017 9:23 AM (in response to francogar82)I think you have missing below dependencies:
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.core</artifactId>
<version>2.6.0</version>
</dependency>
-
8. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
francogar82 Feb 22, 2017 6:12 AM (in response to andey)There is this dependencies also
-
9. Re: JBoss EAP 6.4.0 - EclipseLink 2.6.2
andey Feb 26, 2017 1:59 AM (in response to francogar82)To resolve the exception:
You may need to add this declaration to your project file to resolve the dependency for this class.
~~~
<repositories>
<repository>
<id>osssonatype</id>
<name>OSS Sonatype</name>
<url>https://repo1.maven.org/maven2/</url>
<layout>default</layout>
</repository>
<repositories/>
~~~
1.Download this package(org.eclipse.persistence.core-2.6.0.jar) from OSS Sonatype
Or
If you're using a dependency manager (Maven, SBT, Ivy, Gradle, etc.) copy and paste the respective snippet above into your project file. If you're using a dependency manager, that's all there is to resolving this exception.
2.Include the downloaded package in your classpath when running Java. For example, if you're starting your program on the command line like so:
java -jar my-jar.jar foo.bar.MainClass
, you would add this package to the classpath like so:
java -cp /path/to/downloaded/file/org.eclipse.persistence.core-2.6.0.jar -jar my-jar.jar foo.bar.MainClass