Esempio

public class BeanClass implements javax.ejb.EntityBean {
public void load(){
//..
System.load("path to native library");
}
//other methods that must implement the interface
}

Soluzione
Non caricare librerie native.