Quantcast
Channel: SCN : Popular Discussions - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 1318

Maven + EclipseLink + Static Weaving

$
0
0

Hi all,

as seen on HCP help, static weaving must be enabled for SDK 2.x in order to fully leverage EclipseLink persistence service.

Since I am using maven, I added the following element to my pom.xml

 

<plugin>  <artifactId>maven-antrun-plugin</artifactId>  <executions>  <execution>  <phase>process-classes</phase>  <configuration>  <tasks>  <java classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeave"  classpathref="maven.runtime.classpath" fork="true">  <arg  line="-loglevel FINE -persistenceinfo ./src/main/resources target/classes target/classes" />  </java>  </tasks>  </configuration>  <goals>  <goal>run</goal>  </goals>  </execution>  </executions>  </plugin>

The build completes ok, but at runtime I get any kind of fatal errors:

 

Exception [EclipseLink-7042] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.ValidationException|
Exception Description: Database platform class [com.sap.persistence.platform.database.HDBPlatform] not found.|nternal Exception:
java.lang.ClassCastException: com.sap.persistence.platform.database.HDBPlatform cannot be cast to org.eclipse.persistence.internal.databaseaccess.Platform|
at org.eclipse.persistence.exceptions.ValidationException.platformClassNotFound(ValidationException.java:1549)|

Is there any major step I'm missing?

Thanks, regards

Vincenzo


Viewing all articles
Browse latest Browse all 1318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>