Do not put the file anywhere inside WEB-INF directory.
Put it inside the root directory of your class path. i.e. say you are
modifying the sample Guestbook application. then put it just inside
the src directory like.
src
hibernate.cfg.xml
GuestBook
GuestBook.client
GuestBook.server
war
WEB-INF
classes
lib
web.xml
GuestBook.css
GuestBook.html
The compilation unit automatically place it under war/WEB-INF
directory wherever it would need to be.
Raul
On May 26, 8:44 pm, nico <[email protected]> wrote:
> Hi all,
>
> I'm developing an application with Hibernate3, I encountered the
> following error :
>
> I manually copied the hibernate xml mapping files in WEB-INF/classes/
> com/model. However the problem is that GWT automatically deletes the
> xml files under this path therefore prevents hibernate from working
> afterwards at init time:
>
> ---------------------------------------------------
> Initial SessionFactory creation
> failed.org.hibernate.MappingNotFoundException: resource: com/commons/
> model/Credit.hbm.xml not found
> ---------------------------------------------------
>
> Where can I put the hibernate xml mapping files under the GWT project
> so that they are found by hibernate at run time?
>
> Your help is very much appreciated
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---