Checking my EMF code made me realize I was missing the persistence.xml file.
Once I put that in everything worked!
--
-Pav
-- On Wed, Jun 1, 2011 at 3:46 PM, A. Stevko <andy.stevko@gmail.com> wrote:
Not sure this is the best forum (server side issue vs client side forum) for your question but I'll give it a go...Not much detail to go on so I'll assume that the code you are trying to execute is server side and em is your entity manager.You may want to proof everything else is working by returning a static list instead of executing a query.Then look at the initializer for EMF. Something is going wrong there.--On Wed, Jun 1, 2011 at 1:35 PM, Pavel Byles <pavelbyles@gmail.com> wrote:
--Anyone?On Tue, May 31, 2011 at 10:33 PM, Pavel Byles <pavelbyles@gmail.com> wrote:Trying to get RequestFactory to work but I am getting:Server Error: Could not initialize class myproject.com.server.domain.EMF
at the line that contains this code:List<Country> list = em.createQuery("select c from Country c").getResultList();
Anyone have any ideas?--
-Pav
--
-Pav
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
-- A. Stevko==========="If everything seems under control, you're just not going fast enough." M. Andretti
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
-Pav
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment