Thanks a bunch, the <provider> element did it for me. On Jul 2, 8:18 am, FrugoFrog <frugof...@gmail.com> wrote: > You are missing provider definition in your unit. Glassfish is using > default- eclipse > Add > <provider>org.hibernate.ejb.HibernatePersistence</provider> > below > <persistence-unit name="Thriftr" transaction-type="RESOURCE_LOCAL"> > > good luck > > 2011/7/1 chalu <chal...@gmail.com>: > > > > > > > > > I have a working Helios installation on which I have set up GWT 2.3 > > on. I am using Hibernate 3.6 as my JPA provider in a GWT project > > however when I deploy to my Glassfish server and try to use features > > in the app, I get errors complaining about EclipseLink which I not > > even using in my project. > > > Here is my persistence.xml file contents: > > [code] > > <?xml version="1.0" encoding="UTF-8"?> > > <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/ > > persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > >http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> > > <persistence-unit name="Thriftr" transaction-type="RESOURCE_LOCAL"> > > > > <class>com.bitrunk.apps.thriftr.server.model.ClientType</class> > > <class>com.bitrunk.apps.thriftr.server.model.Department</class> > > <class>com.bitrunk.apps.thriftr.server.model.Faculty</class> > > <class>com.bitrunk.apps.thriftr.server.model.Gender</class> > > <class>com.bitrunk.apps.thriftr.server.model.Loan</class> > > <class>com.bitrunk.apps.thriftr.server.model.LoanApplyType</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.LoanCategory</class> > > <class>com.bitrunk.apps.thriftr.server.model.LoanSettlement</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.LoanType</class> > > <class>com.bitrunk.apps.thriftr.server.model.SsaClient</class> > > <class>com.bitrunk.apps.thriftr.server.model.User</class> > > <class>com.bitrunk.apps.thriftr.server.model.DeductionEntry</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.SettlementStatus</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.DeductionSummary</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.VariationEntry</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.VariationSummary</ > > class> > > <class>com.bitrunk.apps.thriftr.server.model.LoanTenure</class> > > <class>com.bitrunk.apps.thriftr.server.model.ImportItem</class> > > > <exclude-unlisted-classes>true</exclude-unlisted-classes> > > <properties> > > <property name="javax.persistence.jdbc.url" > > value="jdbc:mysql:// > > localhost:3306/thriftrdb"/> > > <property name="javax.persistence.jdbc.user" > > value="root"/> > > <property name="javax.persistence.jdbc.driver" > > value="com.mysql.jdbc.Driver"/> > > <property name="javax.persistence.jdbc.password" > > value="asAdm1n"/> > > </properties> > > </persistence-unit> > > </persistence> > > [/code] > > > And here is my hibernate.cfg.xml file contents : > > [code] > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate > > Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate- > > configuration-3.0.dtd"> > > <hibernate-configuration> > > <session-factory> > > <property > > name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> > > <property > > name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</ > > property> > > <property name="hibernate.connection.url">jdbc:mysql://localhost: > > 3306/thriftrdb</property> > > <property name="hibernate.connection.username">root</property> > > <property name="hibernate.connection.password">asAdm1n</property> > > </session-factory> > > </hibernate-configuration> > > [/code] > > > As you can see I am using Hibernate and not EclipseLink, secondly > > every works in GWT dev-mode until I deploy the app. Please is there > > something I am missing ?? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-web-toolkit?hl=en.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.