Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners import org.hibernate.Session error

Have Programming Question? Ask it here!
 
 
 


prajula kottai
import org.hibernate.Session error
5 Answer(s)      3 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?


Advertisement
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...-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
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
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
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
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
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
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
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
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  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.
about static import - Java Beginners
i compile B.class it is showing the compile time error on variable i. i want to ask that "static import" syntax is correct or not package mypackage1... A { protected static int i=5; } package mypackage2; import static mypackage1.A.
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
JSP import
JSP import         An import is the attribute of the page directive in JSP that imports... packagename.classname or import all classes of the package by using packagename
error
error
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  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
Java Import Statement Cleanup - Java Tutorials
Java Import Statement Cleanup 2002-06-18 The Java Specialists' Newsletter [Issue 051] - Java Import Statement Cleanup Author: Dr. Cay S. Horstmann... created for cleaning up import statements. Seeing that I am an amateur writer, I
In netbean jdk, it does not import the file,"java.nio.file.Paths". why?.
In netbean jdk, it does not import the file,"java.nio.file.Paths". why?.  it shows error file does not exist
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
The import keyword
The import keyword       The import statement make available one or all the classes in a package... is the syntax to import a package in a class. import java.io.File
Packages and Import
classes. import FAQ Q: Does importing all classes in a package make my object... for symbols. Q: Is it less efficient to import all classes than only... difference. Q: Doesn't it provide better documentation to import each class
Import My Own Package (Automatically)
Import My Own Package (Automatically)   How can I import my own package in every java program ( automatically )....? For example :- java.lang.String... automatically imported, we need not to import
Import MYSQL file in PHP - PHP
Import MYSQL file in PHP  i wanted to import the mysql file in PHP5 on button click. is it possible to do it? Is there any possibility of data security
Import Data to SQL database in Java
Import Data to SQL database in Java  Hi, I'm a beginner and I'm wondering how to Import Data to SQL database in Java? Thanks (Platform: Eclipse/SQL
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
Page Directive attribute - import
Page Directive attribute - import This tutorial  contains description of import attribute of page Directive. import  Attribute : This attribute... and classes . For multiple import you can use comma(,) for separation. By default
import user-define package - Applet
import user-define package  how to import user-define package to the frame/graphic of the applet. could i create a new frame or not ?? please help me ...  Hi friend, import java.io.*; import java.awt.*; import
Import java IO - Java Beginners
Import java IO  for example i know java IO is for input and output. I am using Netbeans5.5.1. How can i see all the classes related to java IO for example; stream reader, buffer reader
swing application to import a object in a excel
swing application to import a object in a excel  Hi sir, I want to make a swing application where I can import a object in a cell of a excel by clicking a button. I am using Apache POI for this. after a long try I am not able
Local Variable ,Package & import
Local Variable ,Package & import A local variable has a local scope.Such...; System.out.print(classVariable); } } Package & import Java classes can... libraries in an import statement. For More Details Click Below : Package
missing some import class(may be) - Java Beginners
missing some import class(may be)  Hi,Experts,I am a new one. I have made class in java,using netbeans 6.0.1 this getting error if i mouse over on the class name"class shape is public,should be declared in a file named
php import data from excel to mysql
php import data from excel to mysql  php import data from excel to mysql
Advertisements
 

 

 

DMCA.com