Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:

Posted by

This happens because you define set in factory session as just like below. To ward off the issue delete the name definition.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
		"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory name="KYSSessionFactory">
        <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
        <property name="hibernate.connection.password">xxxx</property>
        <property name="hibernate.connection.url">jdbc:Oracle:thin:@exap-scan.xxx:1525/xxxx</property>
        <property name="hibernate.connection.username">xxxx</property>
        <property name="hibernate.default_schema">xxxx</property>
        <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
        <mapping class="com.xxx"/>
    </session-factory>
</hibernate-configuration>

Leave a Reply

Your email address will not be published. Required fields are marked *