Issue deploying EJB project to Jboss/Glassfish

#1

I have been trying to deploy an EJB project created in Eclipse/Juno to both JBOSS and Glassfish.  The error I get with Glassfish is

cannot Deploy HappyThought
Deployment Error for module: HappyThought: Error occurred during deployment: Exception while preparing the app : java.lang.ClassNotFoundException: com.objectdb.jpa.Provider. Please see server.log for more details.
Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method : java.lang.RuntimeException: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider
java.lang.ClassNotFoundException: com.objectdb.jpa.Provider

 

I get a similar error on JBOSS.  I am guessing that there is some issue with the way I have added the objectdb.jar to the classpath or something.  But I'm not sure where to go from here.  Any suggestions?

 

#2

Using ObjectDB with GlassFish should be easy. Please follow this tutorial (you may also use the Maven version). 

Using ObjectDB with JBoss requires:

  • Adding ObjectDB as a module to JBoss (instead of putting objectdb.jar in the web application lib directory).
  • Adding to the persistence.xml file a request to load the ObjectDB module.

See this forum thread for more details.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login