facebook

Newbie: problem with Hibernate tutorial

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #221961 Reply

    The import “net.sf.hibernate.HibernateException” and two other imports from the same package are missing from the generated SessionManger.java specification (hibernate.cfg.xml generates without error display). Nothing is added by the Wizard execution to the Java Build Path Libraries for the HibernateDemo project except the jar for MySQL Connector/J. How do I overcome the problem of the missing imports?

    #221966 Reply

    Greg
    Member

    Could you post all of the information requested in the Posting Guidelines. You can get a template for this by pressing the “Insert” button on the post reply page.

    Have you read the quickstart for Hibernate development in MyEclipse? Hibernate Quickstart

    #221984 Reply

    – System Setup ——————————-
    Operating System and version: Windows XP, SP1
    Eclipse version: 3.0.1
    Eclipse build id: 2004091161125
    Fresh Eclipse install (y/n): y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: Bocaloco Software LLC com.objfac.xmleditor; Eclipse Book [O’Reilly] org.eclipsebook.ch12.Ch12_01; Eclipse Book org.eclipsebook.ch12.Ch12_02; steve org.eclipsebook.first; http://www.bje.org de.bb.bje.eclipse; Solarmetric kodo; SYSDEO com.sysdeo.eclipse.tomcat.
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
    MyEclipse version: 3.8.3
    Eclipse JDK version: 1.4.2_06
    Application Server JDK version: 1.4.2_06
    Are there any exceptions in the Eclipse log file? y org.eclipse.swt.SWTError: no more handles.

    – Message Body ——————————-
    I apologise for the omissions.
    I have followed the MyEclipse Quickstart Hibernate tutorial steps successfully up to the stage of clicking the finish button represented in Figure 5. My Figure 6 differs from that in the tutorial. An error is flagged in package org.genuitec.hibernate but no error is flagged for hibernate.cfg.xml. the error is in SessionManager.java as detailed in my original post.
    regards, Alex Stevenson, Edinburgh, Scotland

    #222134 Reply

    support-jeff
    Member

    I assume from your description that you mean that the import statements are present in your SessionFactory class, but that you get compile-time errors because of missing libraries in your project. Is this correct?

    If so, the problem would seem to be that the appropriate libraries were not copied into your project when you added the MyEclipse Hibernate Capabilities to the project. DId you deselect the option on the first page of the wizard to copy libraries?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Newbie: problem with Hibernate tutorial

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