Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HibernateException - urgent please!

 
manish dani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am looking to solve this problem. Please do relpy its urgent.

i m using JDeveloper 10.1.3 g, the statck trace is as bellow
*************************************************************
C:\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath "C:\jdevstudio1013\jdev\mywork\WebScrappingServer\HTMLScrapper\Classes;C:\jdevstudio1013\Hibernate\hibernate-2.1\hibernate2.jar;C:\jdevstudio1013\Hibernate\hibernate-2.1\tools\hibernate-tools.jar;C:\jdevstudio1013\Hibernate\hibernate-2.1\lib\commons-collections-2.1.1.jar;C:\jdevstudio1013\Hibernate\hibernate-2.1\lib\commons-logging-1.0.4.jar;C:\jdevstudio1013\Hibernate\hibernate-2.1\lib\dom4j-1.4.jar;C:\jdevstudio1013\Hibernate\hibernate-2.1\lib\ehcache-0.9.jar;C:\jdevstudio1013\Hibernate\hibern ate-2.1\lib\jta.jar;C:\jdevstudio1013\Hibernate\hibernate-2.1\lib\cglib-full-2.0.2.jar;C:\jdevstudio1013\jdev\mywork\WebScrappingServer\lib\classes12.jar;C:\jdevstudio1013\jdev\mywork\WebScrappingServer\Classes;C:\jdevstudio1013\jdev\mywork\WebScrappingServer\Properties;C:\jdevstudio1013\j2ee\home\oc4j.jar;C:\jdevstudio1013\j2ee\home\lib\servlet.jar;C:\jdevstudio1013\jsf-ri\jsf-api.jar;C:\jdevstudio1013\jsf-ri\jsf-impl.jar;C:\jdevstudio1013\j2ee\home\lib\ojsp.jar;C:\jdevstudio1013\j2ee\home\jsp\ lib\taglib\ojsputil.jar;C:\jdevstudio1013\j2ee\home\lib\oc4j-internal.jar;C:\jdevstudio1013\jdev\lib\ojc.jar;C:\jdevstudio1013\jakarta-taglibs\jstl-1.1\lib\jstl.jar;C:\jdevstudio1013\Apache\commons-lang-2.1\commons-lang-2.1.jar;D:\Java\Source\HTML Parser\JTidy\JTidy\build\Tidy.jar" StaticInput.InsertRecords
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1.8
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=oracle.jdbc.OracleDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.Oracle9Dialect, hibernate.connection.username=k043603, hibernate.connection.url=jdbc racle:thin:@FTEDB.kingston.ac.uk:1521:TE, hibernate.show_sql=false, hibernate.connection.password=20060313, hibernate.connection.pool_size=0, hibernate.statement_cache.size=0}
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Configuration addClass
INFO: Mapping resource: HibernateOperations/CountryMaster.hbm.xml
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: HibernateOperations.CountryMaster -> COUNTRY_MASTER
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-one association property references
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Sep 19, 2006 7:42:06 AM net.sf.hibernate.dialect.Dialect <init>
INFO: Using dialect: net.sf.hibernate.dialect.Oracle9Dialect
Sep 19, 2006 7:42:06 AM net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Use outer join fetching: true
Sep 19, 2006 7:42:06 AM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Sep 19, 2006 7:42:06 AM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 0
Sep 19, 2006 7:42:06 AM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
SEVERE: JDBC Driver class not found: oracle.jdbc.OracleDriver
net.sf.hibernate.HibernateException: JDBC Driver class not found: oracle.jdbc.OracleDriver
at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:63)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1172)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:803)
at StaticInput.InsertRecords.addData(InsertRecords.java:42)
at StaticInput.InsertRecords.main(InsertRecords.java:73)
Process exited with exit code 0.
**************************************************************************

and my build.xml file is as under
******************************************

<?xml version="1.0"?>
<project name="HTMLScrapper"
default="schemaGenerator" basedir="C:\jdevstudio1013\jdev\mywork\WebScrappingServer\HTMLScrapper">

<property name="src.dir" value="src"/>
<property name="classes.dir" value="classes"/>
<property name="hibernate" value="C:\jdevstudio1013\Hibernate\hibernate-2.1"/>
<property name="hibernate.mappings" value="Mappings"/>
<property name="jdbc" value="C:\jdevstudio1013\jdbc"/>
<property name="hibernate.extensions" value="C:\jdevstudio1013\Hibernate\hibernate-2.1\tools"/>
<property name="hibernate.properties" value="Properties"/>

<path id="project.class.path">
<pathelement location="${classes.dir}" />
<fileset dir="${hibernate}">
<include name="hibernate2.jar"/>
</fileset>
<fileset dir="${hibernate}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${hibernate.extensions}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${hibernate.extensions}">
<include name="hibernate-tools.jar"/>
</fileset>
<fileset dir="${jdbc}/lib">
<include name="classes12.jar"/>
</fileset>
</path>

<target name="init"> <mkdir dir="${src.dir}"/>
<mkdir dir="${classes.dir}"/>
</target>


<taskdef name="javaGen"
classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
classpathref="project.class.path"/>
<target name="javaGenerator" depends="init">
<javaGen output="${src.dir}">
<fileset dir="${hibernate.mappings}">
<include name="CountryMaster.hbm.xml"/>
<include name="RequestMaster.hbm.xml"/>

</fileset>
</javaGen>
</target>

<target name="compile" depends="javaGenerator">
<javac srcdir="${src.dir}"
destdir="${classes.dir}">
<classpath refid="project.class.path"/></javac>
</target>
<taskdef name="schemaGen"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="project.class.path"/>
<target name="schemaGenerator" depends="compile">
<schemaGen properties="${hibernate.properties}/hibernate.properties" quiet="no">
<fileset
dir="${hibernate.mappings}">
<include name="CountryMaster.hbm.xml"/>
<include name="RequestMaster.hbm.xml"/>
</fileset>

</schemaGen>
</target>

</project>

******************************************

All of the files are on the same location as given
Any idea, why its giving me errors?

Thanks in advance.

manish
 
manish dani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey People, I got it.
So, dont bother any more.
Seems there was a change in class path.

Cheers.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, there is a Hibernate forum called Object Relation Mapping or ORM.

Moving this thread to that forum.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic