Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

import org.hibernate.Session error

Ads

 
 

Share on Google+Share on Google+

prajula kottai
import org.hibernate.Session error
5 Answer(s)      6 years and 10 months ago
Posted in : Java Beginners

I am new to hibernate. I have followed the given steps but it could not recognize hibernate.session and other imports. what i need to do?

Ads
View Answers

October 19, 2010 at 1:16 PM


Hi,

Are you using Eclipse? Please let's know what steps you are following.

I will try to help you.

Thanks



October 19, 2010 at 2:04 PM


Hi! Im using Eclipse. Steps : 1. Downloaded the example code and library from rose india and extracted the content in a directory. 2. Downloaded file contains the Eclipse project. 3. Started the Eclipse project and selected Java Project. 4. Created a new project browsing the file. 5. Copied contact.hbm.xml, and hibernate.cfg.xml in the bin directory of the project using windows explorer.

As im using Oracle 10G i changed the dialect and given user name and password. Used my sample database table.

Thanks



October 19, 2010 at 2:33 PM


Hi,

I think libraries are not included in the your project.

Go to project properties-->Java Build Path --> Libraries --> Click on Add JAR's button and then add the library to your project.

Thanks



October 19, 2010 at 3:21 PM


Hi,

Download the code from Download Source Code Example of tutorial

Take the jar and code from the zip file. You will have to add the following jar files into your project.

ant-1.6.2.jar
ant-antlr-1.6.2.jar
ant-junit-1.6.2.jar
ant-launcher-1.6.2.jar
ant-swing-1.6.2.jar
antlr-2.7.4.jar
c3p0-0.8.5.jar
cglib-full-2.0.2.jar
cleanimports.jar
commons-collections-2.1.1.jar
commons-logging-1.0.4.jar
concurrent-1.3.2.jar
connector.jar
dom4j-1.5.2.jar
ehcache-1.1.jar
hibernate3.jar
jaas.jar
jacc-1_0-fr.jar
jaxen-1.1-beta-4.jar
jboss-cache.jar
jboss-common.jar
jboss-jmx.jar
jboss-remoting.jar
jboss-system.jar
jdbc2_0-stdext.jar
jta.jar
junit-3.8.1.jar
log4j-1.2.9.jar
mysql-connector-java-3.0.16-ga-bin.jar
mysql-connector-java-3.1.6-bin.jar
oscache-2.1.jar
proxool-0.8.3.jar
swarmcache-1.0rc2.jar
versioncheck.jar
xerces-2.6.2.jar
xml-apis.jar

Read Hibernate tutorial at http://www.roseindia.net/hibernate/ Regards Deepak Kumar



August 24, 2012 at 6:57 PM


thank u for helping...


Ads









Related Tutorials/Questions & Answers:
import org.hibernate.Session error
import org.hibernate.Session error  I am new to hibernate. I have followed the given steps but it could not recognize hibernate.session and other imports. what i need to do?   Hi, Are you using Eclipse? Please let's
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi! Thank you. That error has...-to-the-mail(import-files-error).html Thanks... as org.hibernate.MappingException: Error reading resource: contact.hbm.xml
Advertisements
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi Its already there in the bin. If its class path should be set , how can i do dat?   Hi, Wait for 20 minutes. I will send you link to download new project file. You should
why i'm getting this error?The import javax.servlet.http cannot be resolved
why i'm getting this error?The import javax.servlet.http cannot...-quick-tip-resolving-error-the-import-javaxservlet-cannot-be-resolved/ ** any... getting this error, why i'm getting this error and how to solve this error., Have
import file
import file    public void importFile(BlobDomain fileData) { InputStream inStr = fileData.getInputStream(); Workbook workbook = Workbook.getWorkbook(inStr); Sheet sheet = workbook.getSheet(0); int colCount
The import javax.validation cannot be resolved
The import javax.validation cannot be resolved  Hi, I have a web application and due to missing maven dependency it is giving following error in Eclipse: The import javax.validation cannot be resolved. What maven dependency
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
import package.subpackage.* does not work
import package.subpackage.* does not work  I have 3 class files...("funA"); } } C.java:- import com.test.*; class C { public static...(); } } When i am compiling the above 3 class, i am getting an error message like
unable to import class com.opensymphony.xwork2.ActionContext not found
unable to import class com.opensymphony.xwork2.ActionContext not found  Imported class com.opensymphony.xwork2.ActionContext not found gettin the above error
error
error  import java.io.*; public class employee { String name..."+it); } } this is my program i am getting an error saying cannot find symbol class string... inside the method 'accept()'. Here is your modified code: import java.util.
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner.... Try the code below : package roseindia.net; import java.util.Scanner; public
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version. This type error also comes when java file
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error
error  import java.io.*; public class sereies { public static void main(String args[])throws IOException { BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in)); int n; double sum
Import attribute of page directive
Import attribute of page directive   How use import attribute of page directive ?   The import attribute is used to import all the classes... that the JSP page wants to import, the programmer can use import more than once
Problem of Import JWorkbook
Problem of Import JWorkbook  Hi... i can't use the jworkbook in my project.what types of library files in import
Java static import
Java static import  What is the use of static import
import package - JSP-Servlet
import package  how to import a package into a jsp page...pls reply with an example..  Hi friend, To import a package in Jsp use the import Attribute of page Directive In JSP The package name folder is putted