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?

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...









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...://www.roseindia.net/answers/viewqa/Hibernate/11916-Reply-to-the-mail(import-files-error... 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.ADS_TO_REPLACE_1
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
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one... the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one... the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one... the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one... the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one of my TensorFlow project I am trying to import the absl but it is giving the errror: No module named 'absl' error when I import tensorflowADS_TO_REPLACE_1
No module named 'absl' error when I import tensorflow
No module named 'absl' error when I import tensorflow  Hi, In one... the errror: No module named 'absl' error when I import tensorflow Earlier... to resolve the error: No module named 'absl' error when I import tensorflow
error
error  while iam compiling iam getting expected error
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-   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
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  import java.io.*; public class employee { String name..."+it); } } this is my program i am getting an error saying cannot find symbol class stringADS... code: import java.util.*; public class employee{ String name,address,ss
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  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.ADS_TO_REPLACE_1 This type error also comes
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 file
import file    public void importFile(BlobDomain fileData) { InputStream inStr = fileData.getInputStream(); Workbook workbook = Workbook.getWorkbook(inStr); Sheet sheet = workbook.getSheet(0); int colCount
ModuleNotFoundError: No module named 'import-it'
-it python library, ModuleNotFoundError: No module named 'import-it' error...ModuleNotFoundError: No module named 'import-it'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
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
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
error
error
error
error
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
TensorFlow 2.0 import keras
TensorFlow 2.0 import keras  Hi, How to correctly import keras... have installed TensorFlow 2.0 then you can import it in your project with following code: from __future__ import absolute_import, division, print_function
TensorFlow 2.0 import keras
TensorFlow 2.0 import keras  Hi, How to correctly import keras... have installed TensorFlow 2.0 then you can import it in your project with following code: from __future__ import absolute_import, division, print_function
TensorFlow 2.0 import keras
TensorFlow 2.0 import keras  Hi, How to correctly import keras... have installed TensorFlow 2.0 then you can import it in your project with following code: from __future__ import absolute_import, division, print_function
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
python requests module import
python requests module import  Hi, How to import the requests... the internet for this I have to import this library in my Python code. I want the steps for python requests module import. Thanks   Hi, Python requests
python requests module import
python requests module import  Hi, How to import the requests... the internet for this I have to import this library in my Python code. I want the steps for python requests module import. Thanks   Hi, Python requests
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar

Ads