_PersistenceException: Failed to open file



I am experiencing a problem:

JBWEB000309: type JBWEB000066: Exception report

JBWEB000068: message com.objectdb.o._PersistenceException: Failed to open file '/Users/username/JBossSoftware/jboss-eap-6.2/bin/$objectdb:/localhost:8080/db/guests.odb'

the path in persistence.xml is :

<property name="javax.persistence.jdbc.url" value="$objectdb://localhost:8080/db/guests.odb"/>

What could be the problem?


my best regards


The url that you were trying to use is invalid.

Please notice the difference between "objectdb" to "$objectdb":

  • objectdb is the name of the protocol for accessing ObjectDB, mainly used in client-server mode.
  • $objectdb is the local ObjectDB home directory.

Your url should be: "objectdb://localhost:8080/db/guests.odb"

and not "$objectdb://localhost:8080/db/guests.odb"

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

Post Reply

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