- This topic has 3 replies, 3 voices, and was last updated 19 years, 10 months ago by support-jeff.
-
AuthorPosts
-
alexstevensonMemberThe 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?
GregMemberCould 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
alexstevensonMember– 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
support-jeffMemberI 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?
-
AuthorPosts