facebook

JSF and Hibernate

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #249404

    Brian Fernandes
    Moderator

    The version mismatch does not seem to be the cause of your duplicate import error, but it certainly is a problem that must be dealt with as the mapping process is slightly different for Hibernate 2 and Hibernate 3 projects. The mapping files created will also have Hibernate 2 DTDs.

    Are you sure you selected Hibernate 3 when adding support, do you see this problem with both your original project and the new project? Can you try creating a dummy project with only Hibernate 3 and mapping just a couple of tables so that your test set is smaller?

    Can you answer all the relevant questions asked here which you haven’t already answered: Posting Guidelines

    Best,
    Brian.

    #249483

    David Larkin
    Member

    I’m taking a different tact in order to isolate this problem. I’ve created my hibernate connections first, (tested ok) and adding my jsf capabilites last. I’ve added log4j, which has helped. I’m at the point of trying to use the hibernate classes in my jsf application in order to get to my goal of extending the jsf quickstart login tutorial. I’ve been scanning the forums for any hints on how to do this, but so far unsuccessful.

    Thanks for the continued help.

    #249511

    Haris Peco
    Member

    snpe – as this is a web project (jsf), how should I run the main method you suggested?

    This is simple application for testing hibernate mappings (out of container) -you can do it first and if it work other is container’s settings

    and check for hibernate.cfg.xml in web deployment directory

    best

    #249644

    David Larkin
    Member

    Creating the hibernate portion and then adding JSF worked. I can now write and query the db. Thanks!

    #249650

    Haris Peco
    Member

    delta.echo,

    It’s great.I’m glad because of your success

Viewing 5 posts - 16 through 20 (of 20 total)
Reply To: JSF and Hibernate

You must be logged in to post in the forum log in