Thanks for your answers. I'm afraid that the problems may come from Google
Eclipse Plugin and Maven compatibility. I didn't try neither of the
solutions (checking the jars and appending the username to persistence.xml),
but I'm rather sceptic about that, since the persistence.xml had worked
earlier. I will try both tomorrow, as I will have the access to the code
again.

If none of them will work, I'll try converting the project to Ant, and I
will let you know whether it helped.

Best regards,
mh

2011/4/10 Brian Lough <[email protected]>

> Verify that you have *all* of the required jars for your persistence
> implementation.
>
>
> On Fri, Apr 8, 2011 at 1:11 AM, opn <[email protected]> wrote:
>
>> Could you post the persistence.xml?
>> I faced the same when i had a persistence.xml with a container
>> specific datasource.
>> When i specified the connection with
>> <properties>
>>    <property name="hibernate.connection.username" value="username"/>
>>    ...
>> </properties>
>>
>> the error disappeared.
>>
>> On Apr 7, 7:41 am, mh <[email protected]> wrote:
>> > Hi,
>> > I'm trying to use Google Guice in project that uses GWT and Hibernate.
>> > Before incorporating Guice, everything worked fine, i.e. unit tests
>> > using database worked fine. First, I tried to run a unit test using
>> > database, and it worked fine. Then I modified the web.xml file and
>> > created two classes: context listener, that initialises the
>> > application, and Guice filter.
>> >
>> > The problem seems to be in application initialisation. In the module,
>> > I'm installig the JPA Guice module, with the argument of the
>> > persistence unit, just like in the persistence.xml. When I'm trying to
>> > run the GWT application, I'm getting No persistence for Entity Manager
>> > provider for "persdb" (or something like that, where persdb is the
>> > name of the persistence unit).
>> >
>> > This happens wherever I put my persistence.xml file. Have someone had
>> > such situation? What is the solution?
>> >
>> > Regards,
>> > Mateusz
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "google-guice" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-guice?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to