Error al guardar registro en hiberntae

La clase de prueba

package com.hibernate.empaque.dominio;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.classic.Session;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class TestClient {

        /**
         * @param args
         */

        public static void main(String[] args) {
                // TODO Auto-generated method stub
                AnnotationConfiguration config = new AnnotationConfiguration();
                config.addAnnotatedClass(Client.class);
                config.configure("hibernate.cfg.xml");
                //new SchemaExport(config).create(true, true);
                SessionFactory factory = config.buildSessionFactory();
                Session session =  factory.getCurrentSession();
               
                session.beginTransaction();
               
                Client jamil = new Client();
                jamil.setCliCodigo(3);
                jamil.setCliNombre("PEDRO ENRIQUEZ");
               
                session.save(jamil);
                session.beginTransaction().commit();

        }

}

Error, al guardar, aunque si alamcena el registro correctamente.

108 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
115 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.6.7.Final
116 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
120 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
123 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
177 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: hibernate.cfg.xml
177 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: hibernate.cfg.xml
255 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: foo
305 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.hibernate.empaque.dominio.Client
344 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity com.hibernate.empaque.dominio.Client on table Client
386 [main] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
390 [main] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
395 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
395 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 2
395 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
400 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/empaque
400 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=****}
652 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
663 [main] INFO org.hibernate.engine.jdbc.JdbcSupportLoader - Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
664 [main] INFO org.hibernate.cfg.SettingsFactory - Database ->
       name : MySQL
    version : 5.1.49-3
      major : 5
      minor : 1
664 [main] INFO org.hibernate.cfg.SettingsFactory - Driver ->
       name : MySQL-AB JDBC Driver
    version : mysql-connector-java-5.1.10 ( Revision: ${svn.Revision} )
      major : 5
      minor : 1
665 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
666 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
666 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
666 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
666 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
666 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
666 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
666 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
667 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
667 [main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
667 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
667 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
667 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
667 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
667 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
669 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
669 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
669 [main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
669 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
669 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
669 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
672 [main] INFO org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge - Cache provider: org.hibernate.cache.NoCacheProvider
672 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
672 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
675 [main] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
675 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
675 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
676 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
676 [main] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
676 [main] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
696 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@44cbbe
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@9c2715
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@1c9e67a
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [blob] overrides previous : org.hibernate.type.BlobType@3a5794
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@3a5794
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@4be2cc
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [clob] overrides previous : org.hibernate.type.ClobType@16ef71
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@16ef71
701 [main] INFO org.hibernate.type.BasicTypeRegistry - Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@1c208b0
897 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Factory name: foo
898 [main] INFO org.hibernate.util.NamingHelper - JNDI InitialContext properties:{}
900 [main] WARN org.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:342)
        at javax.naming.InitialContext.getNameParser(InitialContext.java:497)
        at org.hibernate.util.NamingHelper.bind(NamingHelper.java:75)
        at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:113)
        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:367)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
        at com.hibernate.empaque.dominio.TestClient.main(TestClient.java:19)

Saludos Espero sus comentarios