I think I now have managed to connect to my database using the AppFoundation. But when I try to access a table, I get the following error:
javax.servlet.ServletException: <openjpa-2.1.0-r422266:1071316 fatal user error> org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property.
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:973)
etc. etc.
I’m using mysql, and I took the persistence.xml file more or less verbatim from the appfoundation wiki example page. Can someone tell me what is missing or what should be changed here?
It is possible my code is incorrect here too - the relevant statements look like:
try {
FacadeFactory.registerFacade("PUVtest", true);
Logger.debug("33333");
vSgname = (Vector<Sgname>) FacadeFactory.getFacade().list(Sgname.class);
It blows up trying to access the Sgname table.
Persistence.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
org.apache.openjpa.persistence.PersistenceProviderImpl
com.example.vtest.Sgname
false
Thanks very much,
nbc