rantav/hector — Issue #319: How to use HOM in EJB package for Glassfish deployment?
Author: hpgisler
Created: 2011-11-01 12:25:10+00:00
State: open

Hi,

Not sure, whether this is a HOM or a glassfish issue; sorry, if this is the wrong place to ask...

I've tried to use HOM within an EJB project which in turn should get deployed on glassfish.

As I didn't find any example on how to configure the **persistence.xml** file, I looked at the hector-object-mapper test files and found the file **javax.persistence.spi.PersistenceProvider** which I copied into the according location in my project.

Note, the file **javax.persistence.spi.PersistenceProvider** contains the following two lines of code only:
```org.apache.openjpa.persistence.PersistenceProviderImpl
me.prettyprint.hom.CassandraPersistenceProvider```

Please note also, that **me.prettyprint.hom.CassandraPersistenceProvider** doesn't exist in current HOM version anywhere.

When I try to deploy the EJB, Glassfish complains:
```SEVERE: Exception while preparing the app : org/apache/openjpa/conf/OpenJPAConfiguration
java.lang.ClassNotFoundException: org.apache.openjpa.conf.OpenJPAConfiguration```

As far is I can tell from this msg, glassfish tries to load the class **org.apache.openjpa.conf.OpenJPAConfiguration** wich is nowhere implemented - only the interface **org.apache.openjpa.conf.OpenJPAConfiguration** exists.

What do I have to do to use HOM out of an EJB module for glassfish deployment?
Is this even possible at the moment?