Feeds:
Posts
Comments

Archive for November, 2014

Deployment error:
JBAS011466: PersistenceProvider ‘org.eclipse.persistence.jpa.PersistenceProvider’ not found

1.
make sure persistence.xml persistence-unit includes <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

2.
Download EclipseLink Installer http://www.eclipse.org/downloads/download.php?file=/rt/eclipselink/releases/2.0.2/eclipselink-2.0.2.v20100323-r6872.zip

Extract the eclipselink.jar from the download jlib directory and include it in wildfly-8.1.0.Final\modules\system\layers\base\org\eclipse\persistence\main

edit wildfly-8.1.0.Final\modules\system\layers\base\org\eclipse\persistence\main\module.xml to add <resource-root path=”eclipselink.jar”/> so this file looks like
<module xmlns=”urn:jboss:module:1.3″ name=”org.eclipse.persistence”>
<resources>
<resource-root path=”jipijapa-eclipselink-1.0.1.Final.jar”/>
<resource-root path=”eclipselink.jar”/>
</resources>

<dependencies>
<module name=”asm.asm”/>
<module name=”javax.api”/>
<module name=”javax.annotation.api”/>
<module name=”javax.enterprise.api”/>
<module name=”javax.persistence.api”/>
<module name=”javax.transaction.api”/>
<module name=”javax.validation.api”/>
<module name=”javax.xml.bind.api”/>
<module name=”org.antlr”/>
<module name=”org.apache.commons.collections”/>
<module name=”org.dom4j”/>
<module name=”org.javassist”/>
<module name=”org.jboss.as.jpa.spi”/>
<module name=”org.jboss.logging”/>
<module name=”org.jboss.vfs”/>
</dependencies>
</module>

Read Full Post »

Problem description:
There is the following error message when integrating Jave with R using JRI:

Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in java.library.path.

java.lang.UnsatisfiedLinkError: C:\Users\rezca\Documents\R\win-library\3.1\rJava\jri\x64\jri.dll: %1 is not a valid Win32 application
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.rosuda.JRI.Rengine.<clinit>(Rengine.java:19)

Solution:
make sure you install and run java x64

In eclipse, right click on your project and select “Run AS” –> “Run Configuration…”, set java.library.path to x64 version, not i386
Capture1

Set R path to x64 version, not i386
Capture2

Read Full Post »